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
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
-
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");
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