I am trying to display some data from mySQL, the db details are correct but I get this.
*Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource*
What is the error with my code below?
<?php
$con = mysql_connect("localhost"," "," ");
mysql_select_db(" ", $con);
mysql_query('set names utf8');
$query = "SELECT * FROM products WHERE id = '13' LIMIT 1";
$row = mysql_fetch_array(mysql_query($query));
echo $row['name'];
?>
UPDATE
I found my error it was a typo. This is what you get if you still use notepad...