Posted by Caonex Tue 13th Mar 2007 16:05 - Syntax is PHP - 42 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported no syntax errors in this post!
Description:
Code to delete Id from database.

  1.  
  2.     $link = mysql_connect('mysql283.secureserver.net', 'caonex', 'caonex2007') or die('Could not connect: ' . mysql_error());
  3.     mysql_select_db('caonex') or die('Could not select database');
  4.     $query = "Update `Conference` SET Paid='Yes' Where Id = '".$_GET['Id']."'";
  5.     $result = mysql_query($query) or die('Query failed: ' . mysql_error());
  6.     mysql_free_result($result);
  7.     mysql_close($link);
  8.     echo "The user with Id: ".$_GET['Id']." has been marked with the paid status.";
  9.  
  10. ?>
  11.  

PermaLink to this entry https://pastebin.co.uk/11823
Posted by Caonex Tue 13th Mar 2007 16:05 - Syntax is PHP - 42 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers

 

Comments: 0