RE: [PHP-DB] Parse error: syntax error, unexpected T_ELSE

2008-04-15 Thread Gary Wardell
Hi, I suggest you echo $del_str to see exactly what your query is. There may be something unexpected in $_GET['Id']. Echo the whole query so you can see everything in context. Gary > -Original Message- > From: Javier Viegas [mailto:[EMAIL PROTECTED] > Sent: Tue, April 15, 2008 5:56 PM

Re: [PHP-DB] Parse error: syntax error, unexpected T_ELSE

2008-04-15 Thread Javier Viegas
Thanks Daniel i ´ve removed the unexpected else secction. Now it works but it tells me that there might be a syntax error on the query, this is good news because now i know i´m having connection with the database but also there must be something wrong with the query. $del_str = "DELETE FROM libros

Re: [PHP-DB] Parse error: syntax error, unexpected T_ELSE

2008-04-15 Thread Daniel Brown
On Tue, Apr 15, 2008 at 4:49 PM, Javier Viegas <[EMAIL PROTECTED]> wrote: > Hi, i have this script wich basically connects to a database and delete a > record according to the Id parameter given. The problem is that when i test > it i get this error: > > *Parse error*: syntax error, unexpected T

[PHP-DB] Parse error: syntax error, unexpected T_ELSE

2008-04-15 Thread Javier Viegas
Hi, i have this script wich basically connects to a database and delete a record according to the Id parameter given. The problem is that when i test it i get this error: *Parse error*: syntax error, unexpected T_ELSE in * /var/www/biblio/scripts/delete.php* on line *31 This is the script: * Wh

[PHP-DB] Re: [Stored Procedure] - Error handling

2008-04-15 Thread Daniel Brown
Ratheesh, There's a specific list for PHP database functions, "Databases and PHP" (PHP-DB), which you can find at http://php.net/mailinglists . I'm forwarding your message over to there, and recommend that you subscribe to that list. You'll probably get more direct responses by narrowing-