Jump to content

[SOLVED] Table not updating - Code Included


j152

Recommended Posts

Hi all ...

 

I have been fighting with a database and losing....  I get no error messages, but my database table will not update...

 

// count rows & divide

$result = mysql_query("SELECT * FROM sample");

$num_row = mysql_num_rows($result);

$adjustment = $old_total / $num_row;

 

 

//update databse

$query = "UPDATE sample SET total = $adjustment WHERE boxes=9";

 

 

Any help would be greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/110969-solved-table-not-updating-code-included/
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.