I have no error message coming but the following code does not enter the trialentry into my table tblsug. The code is the following:
[code=php]
<?php
ob_start();
include ('../common/connecttodb.php ');
echo "Connection Successful!";
$sql = 'INSERT INTO tblsug(`2ma`) VALUES (\'trialentry\' );';
mysql_query('$s ql');
header('Locatio n:../index.php');
ob_end_flush();
?>
[/code]
I have even changed the $sql statement into the following and tried.
[code=php]
$sql = 'INSERT INTO tblsug(`2ma`) VALUES (\'trialentry\' )';
[/code]
Nothing worked without even poping up error message.
Please help. I spend considerabel time on this.
[code=php]
<?php
ob_start();
include ('../common/connecttodb.php ');
echo "Connection Successful!";
$sql = 'INSERT INTO tblsug(`2ma`) VALUES (\'trialentry\' );';
mysql_query('$s ql');
header('Locatio n:../index.php');
ob_end_flush();
?>
[/code]
I have even changed the $sql statement into the following and tried.
[code=php]
$sql = 'INSERT INTO tblsug(`2ma`) VALUES (\'trialentry\' )';
[/code]
Nothing worked without even poping up error message.
Please help. I spend considerabel time on this.
Comment