sarathy_1116 Posted November 8, 2009 Share Posted November 8, 2009 Hi people, I tried to add data in to a table through a php script. But vn i run it, it says apache stopped working. But but the apache is still running in the system. This is the piece of PHP script which i try to run if (isset($_POST['firstname'])) { $name = mysqli_real_escape_string($link, $_POST['firstname']); $sql = 'INSERT INTO sample SET firstname="' . $name . '", lastname="Sir"'; Can anyone please let me know as wat exactly is the problem??? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/180807-apache-stopped-working-while-adding-data-data-into-a-table/ Share on other sites More sharing options...
MadTechie Posted November 9, 2009 Share Posted November 9, 2009 nothing wrong with that code.. i assume the next command is mysqli_query(); What exactly says Apache is not running ? sounds like a server issue instead of a coding one, but your being too vague Link to comment https://forums.phpfreaks.com/topic/180807-apache-stopped-working-while-adding-data-data-into-a-table/#findComment-953893 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.