Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. <?php
  2.  
  3. $mycon = mysql_connect("localhost","abc","abc");
  4.  
  5. if (!$mycon) {
  6. die('Could not connect: ' . mysql_error());
  7. }
  8.  
  9. mysql_select_db("abc",$mycon);
  10.  
  11. $page = $_GET['page'];
  12. $name = $_GET['name'];
  13.  
  14. $beachResult = mysql_query("UPDATE query where I update the name based on the page",$mycon);
  15. mysql_query($beachResult) or die('Error, could not insert.');
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement