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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.