Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_GET['buildCity'])) {
- $delimiter = ",";
- list($cityID, $buildingType, $row, $col) =
- split($delimiter, ($_POST['buildCity']), 4);
- echo $col;
- $cityID = mysql_real_escape_string($cityID);
- $buildingType = mysql_real_escape_string($buildingType);
- $row = mysql_real_escape_string($row);
- $col = mysql_real_escape_string($col);
- // Add this into the database now
- $sql = mysql_query("INSERT INTO cities (cityID, buildingType, row, col)
- VALUES('$cityID','$buildingType','$row','$col',now() )") or die (mysql_error());
- $pid = mysql_insert_id();
- exit();
- }
Add Comment
Please, Sign In to add comment