Imad Posted June 10, 2008 Share Posted June 10, 2008 Hi guys, I forgot how to update a mysql row. E.G: editing text that has already been inserted into the MySQL database. Best Regards. EDIT: Just remembered. Link to comment https://forums.phpfreaks.com/topic/109641-updating-a-mysql-row/ Share on other sites More sharing options...
discomatt Posted June 10, 2008 Share Posted June 10, 2008 Google. Link to comment https://forums.phpfreaks.com/topic/109641-updating-a-mysql-row/#findComment-562476 Share on other sites More sharing options...
revraz Posted June 10, 2008 Share Posted June 10, 2008 Google "UPDATE mysql" Link to comment https://forums.phpfreaks.com/topic/109641-updating-a-mysql-row/#findComment-562486 Share on other sites More sharing options...
discomatt Posted June 10, 2008 Share Posted June 10, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.