building basic blog and getting errors
Posted: Wed Jul 22, 2009 9:57 pm
I went through tutorial on this site...
http://net.tutsplus.com/tutorials/php/h ... ment-83258
It doesn't work for me I get errors.
I get errors…..
Warning: mysqli_query() expects at least 2 parameters, 1 given in /home/a6964267/public_html/Template/SimpleBlog/includes/includes.php on line 20
line 20 is…….
$query = mysqli_query(”SELECT * FROM blog_posts ORDER BY id DESC”);
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /home/a6964267/public_html/Template/SimpleBlog/includes/includes.php on line 24
line 24 isss….
while ($row = mysqli_fetch_assoc($query))
any help or suggestions?
Also another question posted.....link here...
viewtopic.php?f=1&t=103526
http://net.tutsplus.com/tutorials/php/h ... ment-83258
It doesn't work for me I get errors.
I get errors…..
Warning: mysqli_query() expects at least 2 parameters, 1 given in /home/a6964267/public_html/Template/SimpleBlog/includes/includes.php on line 20
line 20 is…….
$query = mysqli_query(”SELECT * FROM blog_posts ORDER BY id DESC”);
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /home/a6964267/public_html/Template/SimpleBlog/includes/includes.php on line 24
line 24 isss….
while ($row = mysqli_fetch_assoc($query))
any help or suggestions?
Also another question posted.....link here...
viewtopic.php?f=1&t=103526