I'm starting to program a php script to extract thread titles.
I am new to PHP but I'm learning ...
PHP Code:
<?php
$connect=mysql_connect('localhost', 'root', 'xxxxx') 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 <br />";
}
?>
The output of this is:
Code:
Connected to MySQL
Connected to Database
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/mysql.php on line 8