Jump to content

updating a mysql row


Imad

Recommended Posts

Sorry for the harshness of the above post :)

 

$q = "UPDATE `table` SET `col` = 'data' WHERE `id` = " . (int)$id .";

if ( mysql_query($q) == FALSE ) {
    echo 'Could not update row...';
    # Debug
    # echo '<br>' . mysql_error();
    # echo '<br>' . $q;
}

Link to comment
https://forums.phpfreaks.com/topic/109641-updating-a-mysql-row/#findComment-562493
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.