Jump to content

[SOLVED] Update field help please


lewisstevens1

Recommended Posts

Ah found what was wrong

$con = mysql_connect("localhost","stonersg_dfadmin","password");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }mysql_select_db("stonersg_darkfamily", $con);

mysql_query("UPDATE available SET deathknight='Available' WHERE id = '1'", $con) or die(mysql_error($con));
echo "<br/>UPDATED ". mysql_affected_rows($con)." rows<br/>";
mysql_close($con);

 

another script which i tried before didnt seem to make a difference but changed it from not available to available, so when i was trying to run that script, it couldnt make any further changes.

Its working now, and thanks for all who tried to help :) and thanks Ratcateme for pointing that out lol.

 

thanks all.

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.