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, seem
27;t think 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.infofe
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
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://w
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
r = "PCLAB1"in the c:/windows/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
p]
I use 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 g
nd import them all
separately. 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