Jump to content

apache stopped working while adding data data into a table


sarathy_1116

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.