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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SQL unknown column error? Need help please!

Author  Topic 

f8era
Starting Member

1 Post

Posted - 2012-10-04 : 07:19:10
http://wakeuptonight.com/forum/section.php?id=1

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

http://wakeuptonight.com/forum



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

http://wakeuptonight.com/


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! =)

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2012-10-04 : 08:37:04
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
   

- Advertisement -