PHP Code:
<?php
$connect=mysql_connect('localhost', 'root', 'xxxx') or die(mysql_error());
echo "Connected to MySQL<br />";
mysql_select_db("vb") or die(mysql_error());
echo "Connected to Database";
$sql="SELECT `title` FROM `thread` WHERE `dateline` BETWEEN 1315958401 AND 1318723199";
$result=mysql_query($sql);
while($row = mysql_fetch_array($result))
{
echo "$row['title']";
}
?>
That's what it looks like -- and it appears to have proper quotes.