I don't know where I went wrong but the query isn't taking place:
PHP Code:<?php
$con = mysql_connect("","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("boti_book", $con);
$sql = "SELECT content FROM boti_pages WHERE content LIKE 'Fritz'";
$result = mysql_query($sql);
echo $sql;
while($row = mysql_fetch_array($result))
{
echo $row['content']."<br />\n";
}
mysql_close($con);
?>




Reply With Quote