Hi everyone,
Is there something wrong with this query? it will not update the table, even though all the variables are fine.
mysql_query('UPDATE Blog
SET Title="$title", Post="$post"
WHERE id="$entry"');
thanks.
Hi everyone,
Is there something wrong with this query? it will not update the table, even though all the variables are fine.
mysql_query('UPDATE Blog
SET Title="$title", Post="$post"
WHERE id="$entry"');
thanks.
Try switching the single and double quotes around.
thanks, i ended up doing that and just separating it like this:
$updateQuery = "UPDATE Blog
SET
Title = '$title',
Post = '$post'
WHERE id = '$entry'";
$update = mysql_query($updateQuery, $con);
and it worked.