All pastes #355411 Raw Edit

Someone

public php v1 · immutable
·published 2007-02-14 13:43 UTC
rendered paste body
$sectionname=mysql_real_escape_string($_POST['ns_section']);$notes=mysql_real_escape_string($_POST['ns_notes']);$query="INSERT INTO Sections (id,Name,Notes) VALUES ('','$sectionname','$notes')"mysql_query($query,$con) or die(mysql_error());$query="SELECT * FROM Sections";$result = mysql_query($query,$con) or die(mysql_error());while($row = mysql_fetch_array($result)){        // Here i get yntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';	echo $row['id'] . " - ". $row['Name'] "  : " . $row['Notes'];	echo "<br />";}