Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 24. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Errors on webpage

phpMyEdit Configuration     Errors on webpage
Odoslať novú tému   Odpovedať na tému    
 
skink     Založený: 20.03.2004   Príspevky: 7  
Príspevok Zaslal: 2004-03-20 01:57
Návrat hore  Odpovedať s citátom     

Hi

I've just started learning about PHP but have reasonable level of SQL knowledge.
I would like to know if this phpMyEdit program works on windows because I am receiving the following error:
Notice: Undefined index: options in d:\inetpub\wwwroot\php\phpMyEdit.class.php on line 200
(Also for lines 199-202)

I had to copy and paste the output into a new php file as it failed to automatically put it into ./$contentfile (this obviously means nothing to Windows)

The query seems to work as I get a resultset on the webpage but here there is also an error on top of each record which says:
Notice: Undefined index: trimlen in d:\inetpub\wwwroot\php\phpMyEdit.class.php on line 1259

As you might have guessed I am using IIS (version 6 on Windows 2003 server).

Any thoughts??

Regards

Skink

 
ajh     Založený: 17.12.2003   Príspevky: 236  
Príspevok Zaslal: 2004-03-20 22:19
Návrat hore  Odpovedať s citátom     

Yes - works fine with windows. It will work with any set up that supports PHP with MySQL (which includes Windows). Never tried it with IIS though, only Apache.

 
skink     Založený: 20.03.2004   Príspevky: 7  
Príspevok Zaslal: 2004-03-21 02:34
Návrat hore  Odpovedať s citátom     

Thanks,

I've now tried it with Apache as well and I am still getting the same errors.

I thought it must be something to do with the table itself so I tried it with another basic MYSQL database and it's still the same.

I was expecting a nice clean looking table what's happened???

Skink

 
skink     Založený: 20.03.2004   Príspevky: 7  
Príspevok Zaslal: 2004-03-25 16:15
Návrat hore  Odpovedať s citátom     

Thanks Doug,

That works very nicely.

What I now need to know is..

How do I filter the query so that I only get for example the records that begin with the letter a?

Any ideas?

Cheers

Skink

 
skink     Založený: 20.03.2004   Príspevky: 7  
Príspevok Zaslal: 2004-03-26 01:01
Návrat hore  Odpovedať s citátom     

Fantastic. I guess I will have to have a link for each letter in the alphabet though. Is there a way of passing this value via a form on the webpage?

Also I was hoping to use a joined query which references 5 different tables to output to the webpage. It won't need to be used for editing data just to view records. Is this possible or is the program really just designed to view a single table?

If not would you please point me in the right direction as to where I could find out how to do it.

Thanks for all your time

Best regards

Skink

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-03-26 06:30
Návrat hore  Odpovedať s citátom     

skink Napísal:
Also I was hoping to use a joined query which references 5 different tables to output to the webpage. It won't need to be used for editing data just to view records. Is this possible or is the program really just designed to view a single table?


you have to look in documentation about table lookup restriction.

http://opensource.platon.sk/projects/doc.php/phpMyEdit/html/configuration.input-restrictions.html

If you have in your main table :
city_id (int)

and you have another table (city) with
id
city_name

then

$opts['fdd']['city_id]['values']['table'] = 'city';
$opts['fdd']['city_id']['values']['column'] = 'id';
$opts['fdd']['city_id']['values']['description'] = 'city_name';

will do what you want.
does it ?

_________________
hbernard - phpMyEdit updater.
 
skink     Založený: 20.03.2004   Príspevky: 7  
Príspevok Zaslal: 2004-03-30 16:16
Návrat hore  Odpovedať s citátom     

Thanks. I have now managed to get the job done a different way.

May I ask HBernard, is this code specific to phpMyEdit or can I place it into any php script?

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-03-30 16:23
Návrat hore  Odpovedať s citátom     

skink Napísal:
Thanks. I have now managed to get the job done a different way.

May I ask HBernard, is this code specific to phpMyEdit or can I place it into any php script?


specific , of course

_________________
hbernard - phpMyEdit updater.
 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-04-17 12:43
Návrat hore  Odpovedať s citátom     

Doug Hockinson Napísal:
Insert this in your PHP code, near the top of your forms and see if the problem goes away:
Kód:
error_reporting(E_ALL & ~E_NOTICE);


phpMyEdit has been fixed. (cvs version 1.135)

This is now useless.

_________________
hbernard - phpMyEdit updater.
 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov