Re: [PHP-DB] SQL File Import problem (Was: HELP!!!)

2004-02-26 Thread Erwin Kerk
. That should work. And in the futue, try putting a more descriptive text in youre subject. Erwin Kerk Web Developer -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] What's wrong with this query?

2004-02-26 Thread Erwin Kerk
this syntax all the time, and always without any trouble. @Axel: try this: $logit = mysql_query(INSERT INTO log SET term='$search', returns='$arrayword', time=CURTIME(), date=CURDATE(), ip='$ip') or die(mysql_error()); to see what is going wrong... Erwin Kerk Web Developer -- PHP Database

Re: [PHP-DB] Using printer in Php code

2004-02-27 Thread Erwin Kerk
/php.ini file. The error is Fatal error: Call to undefined function: printer_open() in pclab1printer.php on line 57. Help me please Did you restart Apache?? Erwin Kerk Web Developer -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] User Authentication

2004-02-27 Thread Erwin Kerk
Craig Hoffman wrote: $result = (select user_id password FROM users WHERE username='$username' AND password=md5('$password')); password is a reserved word. try this instead: $result = (select user_id password FROM users WHERE username='$username' AND `password`=md5('$password')); Erwin Kerk

Re: [PHP-DB] User Authentication

2004-02-27 Thread Erwin Kerk
Peter Beckman wrote: Try fixing your SQL: $result = (select user_id, password FROM users WHERE username='$username'... You forgot a comma between user_id and password. Yup, that too. Oops, missed it too. Erwin Kerk Web Developer -- PHP Database Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP-DB] User Authentication

2004-02-27 Thread Erwin Kerk
Jason Wong wrote: You aren't actually performing any queries -- you're missing a mysql_query(). Ah. Did i mis that too? Unbelievable Erwin Kerk Web Developer -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Using printer in Php code

2004-02-27 Thread Erwin Kerk
this is possible. Perhaps you could install Apache + PHP on the machine where the printer is connected to? By the way, please keep the discussion ON the list, other might benefit from it. So, choose Reply All when replying to a message. -- Erwin Kerk Web Developer GPG: http://www.infofeed.nl/~gpg

Re: [PHP-DB] ways of making access and visib compat with 4 and 5

2005-03-14 Thread Erwin Kerk
tony yau wrote: hi all, I'm trying to make my classes compat with php4 and php5 is there a way of doing something like this: if( version== 4) define( VISIBILITY, ); else if (version==5) define( VISIBILITY, protected ); class Flex { VISIBILITY function CompatFunc(); } No, seems to me