Jump to content

Coding help


RON_ron

Recommended Posts

Try:

 

$sql = "UPDATE c_applicants SET streetz='" . $cts . "' WHERE username = '" . $SomeVar . "'";
$query = mysql_query($sql) or trigger_error('MySQL Error: ' . mysql_error(), E_USER_ERROR);

 

Also remove the second mysql_query() call. If you don't get any errors, echo out $sql and make sure the values are valid. If they appear valid, it's still possible they're incorrect.. which you can verify with mysql_affected_rows, or by running the SQL in a MySQL administrator (i.e. PHPMyAdmin) to find the number of rows affected.

Link to comment
https://forums.phpfreaks.com/topic/218373-coding-help/#findComment-1132978
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.