Jump to content

[SOLVED] PHP + SQL


rhyspaterson

Recommended Posts

Warning: pg_query() [function.pg-query]: Query failed: ERROR: syntax error at end of input LINE 1: SELECT * FROM usr WHERE regno = ^ in /var/www/menu/client/form/process.php on line 11

Query failed: ERROR: syntax error at end of input LINE 1: SELECT * FROM usr WHERE regno = ^

Link to comment
https://forums.phpfreaks.com/topic/58352-solved-php-sql/#findComment-289341
Share on other sites

Thanks for the reply. I have tried that above code previously as well. However i receive a different error message:

 

Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /var/www/menu/client/form/process.php on line 11

Query failed: ERROR: invalid input syntax for integer: ""

 

I do checks to ensure $registrationID is not NULL and is only numbers. Any suggestions?

Link to comment
https://forums.phpfreaks.com/topic/58352-solved-php-sql/#findComment-289364
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.