Guest User

Untitled

a guest
Oct 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. if (isset($_GET['buildCity'])) {
  2. $delimiter = ",";
  3. list($cityID, $buildingType, $row, $col) =
  4. split($delimiter, ($_POST['buildCity']), 4);
  5. echo $col;
  6. $cityID = mysql_real_escape_string($cityID);
  7. $buildingType = mysql_real_escape_string($buildingType);
  8. $row = mysql_real_escape_string($row);
  9. $col = mysql_real_escape_string($col);
  10. // Add this into the database now
  11. $sql = mysql_query("INSERT INTO cities (cityID, buildingType, row, col)
  12. VALUES('$cityID','$buildingType','$row','$col',now() )") or die (mysql_error());
  13. $pid = mysql_insert_id();
  14.  
  15. exit();
  16. }
Add Comment
Please, Sign In to add comment