Page 1 of 1

Syntax help SOLVED

Posted: Thu Jun 22, 2006 6:21 pm
by BigAbe

Code: Select all

$unactivate2 = mysql_query("UPDATE ads SET adActive = 0 WHERE (adTitle = '$title') AND (adUser = $testuserID)") or die("unactivate2 -- " . mysql_error());
$title = 'security test' & $testuserID = 29

I plug in

Code: Select all

UPDATE ads SET adActive =0 WHERE adTitle = 'security test' AND adUser =29
directly, and that works.

Any clues?

-- Abe --

Posted: Thu Jun 22, 2006 6:27 pm
by BigAbe
sorry - had the wrong debugging turned on.

please ignore