Tell the syntax to insert a value into the table.
simple table
you need to insert the value of the variable
$sql = " INSERT INTO Pcontent ([Ptittle])VALUES('$Ptittle')" ; echo "<br>"; but nothing is entered in the table
here is the listing:
$sql = " INSERT INTO dbo.Pcontent ([Ptittle])VALUES('$Ptittle')" ; echo "<br>"; $result = sql_query($sql)or die('Error querying MSSQL database'); when sql query error appears:
PHP Fatal error: Uncaught Error: Call to undefined function sql_query() in C:\inetpub\wwwroot\technet\admin\scripts\gen_page.php:51 Stack trace: #0 {main} thrown in C:\inetpub\wwwroot\technet\admin\scripts\gen_page.php on line 51
echo "<br>";? - Alex