Syntax help SOLVED

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
BigAbe
Forum Commoner
Posts: 66
Joined: Fri Mar 31, 2006 7:41 pm

Syntax help SOLVED

Post 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 --
BigAbe
Forum Commoner
Posts: 66
Joined: Fri Mar 31, 2006 7:41 pm

Post by BigAbe »

sorry - had the wrong debugging turned on.

please ignore
Post Reply