hi
$title="select * from kind";
$description="This is sample4";
$result = mssql_query("INSERT INTO mynote(title, description) VALUES($title, $description)"
; //line 8
echo "action=add&success=1";
error:
Warning: mssql_query() [function.mssql-query]: message: Incorrect syntax near the keyword 'select'. (severity 15) in F:\PHP\notpad\add.php on line 8
Warning: mssql_query() [function.mssql-query]: message: Incorrect syntax near the keyword 'is'. (severity 15) in F:\PHP\notpad\add.php on line 8
Warning: mssql_query() [function.mssql-query]: Query failed in F:\PHP\notpad\add.php on line 8
what error of them!?
thanks for help
$title="select * from kind";
$description="This is sample4";
$result = mssql_query("INSERT INTO mynote(title, description) VALUES($title, $description)"

echo "action=add&success=1";
error:
Warning: mssql_query() [function.mssql-query]: message: Incorrect syntax near the keyword 'select'. (severity 15) in F:\PHP\notpad\add.php on line 8
Warning: mssql_query() [function.mssql-query]: message: Incorrect syntax near the keyword 'is'. (severity 15) in F:\PHP\notpad\add.php on line 8
Warning: mssql_query() [function.mssql-query]: Query failed in F:\PHP\notpad\add.php on line 8
what error of them!?
thanks for help