SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL unknown column error? Need help please!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

New Zealand
1 Posts

Posted - 10/04/2012 :  07:19:10  Show Profile  Reply with Quote

So basically i'm getting this error,

"Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/l8/public_html/forum/section.php on line 46
Unknown column 'section_id' in 'where clause'"

It happens when i click on one of my sections for my forum i tried googling this error with no luck, i figured you guys could help me.

picture of my tables: http://i.imgur.com/G0M3z.png
paste bin of section.php source: http://pastebin.com/R0gpjGmN


Here is the main page for my website i followed a tutorial online and uploaded the files.


Please help me somebody, i'm trying to get a better understanding of SQL & i really need to make this site =(

Any help is appreciated thanks so much! =)

Flowing Fount of Yak Knowledge

8780 Posts

Posted - 10/04/2012 :  08:37:04  Show Profile  Visit webfred's Homepage  Reply with Quote
1. Have a look if column section_id exists in table forum_posts
2. To get better help you should ask your question in PHP and MySQL forums because we are on MS SQL Server only here

Too old to Rock'n'Roll too young to die.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000