Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL unknown column error? Need help please!
 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:
paste bin of section.php source:

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

8781 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  
 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.02 seconds. Powered By: Snitz Forums 2000