Hi i was making this code so I could connect to my server and run a database:
<?php
mysql_connect("localhost","root", "samiscool");
mysql_select_db("test_db");
$sql = mysql_query("SELECT * FROM test_table");
while ($rows = mysql_fetch_assoc($sq1)) (
var_dump ($rows)
)
?>
and this eror message came up "supplied argument is not a valid MySQL result resource"
Whats Wrong?