Re: [PHP-DB] Going bonkers again ...

2001-03-23 Thread JJeffman
ariable, if integer get the " ' " off and the query will run ok. HTH. Jayme. -Mensagem Original- De: Martin Skjöldebrand <[EMAIL PROTECTED]> Para: <[EMAIL PROTECTED]> Enviada em: sexta-feira, 23 de março de 2001 16:15 Assunto: [PHP-DB] Going bonkers aga

Re: [PHP-DB] Going bonkers again ...

2001-03-23 Thread Martin Skjöldebrand
olinux wrote: > You have to escape your "" > >> $query = "SELECT m_sender, m_date, m_subject FROM messages WHERE m_id = >> '$m_id'"; > > try this > $query = "SELECT m_sender, m_date, m_subject FROM messages WHERE m_id = > \"$m_id\" > "; No that isn't the problem. It is valid to change qu

Re: [PHP-DB] Going bonkers again ...

2001-03-23 Thread olinux
- From: "Martin Skjöldebrand" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 23, 2001 11:15 AM Subject: [PHP-DB] Going bonkers again ... > Going bonkers again ... > I have this in a script. > > include("../includes/connect.inc.php");

[PHP-DB] Going bonkers again ...

2001-03-23 Thread Martin Skjöldebrand
Going bonkers again ... I have this in a script. Where m_id is passed to the page and connect.inc.php is my database connection script which works nicely with all other pages. Still I get: Warning: Supplied argument is not a valid MySQL-Link resource in /chroot/htdocs/helpdesk/scripts/viewme