Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
User | Post |
cpubasic13 Posts: 130/1193 |
It was problem 1, VGFreak. Somehow it didn't create the table for announcements when I ran install.sql. Well, now it works.
Thanks for your help, though. Really appreciate it. |
VGFreak877 Posts: 7/60 |
Okay, the brackets have nothing to do with the error at hand here. I may know what the problem is. Check to make sure that the variable $anncs is calling for fields that are actually in the announcements table in PMA. Those errors came up for a reason, as it would likely be one of these three possibilities: (1) The setup was done wrong. (2) The announcements table is misspelled. (3) Or one of the fields that is being called in that query line is missing. |
cpubasic13 Posts: 110/1193 |
Apparently, there is.
I would paste the code here, but it messes up... eh... but it does have a closing bracket. |
Randy53215 Posts: 68/726 |
Is there a closing bracket like so....
}? |
cpubasic13 Posts: 107/1193 |
Reuploaded. Same error.
I changed nothing other than what I was supposed to edit, which was config.php for access to MySQL and such. I am obviously using Funpic for hosting, but seeing as how others were able to make 1.92 boards on it successfully, I don't see why my board is not working right. Link: http://cpubasic1337.cp.funpic.org/ EDIT: Apparently, there is an error with announcement.php. Line 24. while($annc=mysql_fetch_array($anncs)){ ...this is the problem, I believe. The forums work fine, but now this... I reuploaded it and it didn't work... Hmmm... and yet I made no changes to this... |
drizzt do'urden Posts: 41/57 |
Well, when I went to his board and went to general, I get this one
Parse error: parse error, unexpected '}' in /usr/export/www/hosting/cpubasic1337/forum.php on line 59 So yea, probobly have to re upload a new Forum.php |
Ice Man Posts: 137/348 |
I know, Randy, just wanted to be sure. Anyway, try uploading a fresh copy of forum.php. |
Randy53215 Posts: 67/726 |
Originally posted by cpubasic13 |
Ice Man Posts: 136/348 |
Did you change something with the query above it? Or is something wrong with the announcements code? |
Randy53215 Posts: 66/726 |
Any errors anywhere else? |
cpubasic13 Posts: 105/1193 |
Umm... so I have decided to try and make an Acmlmboard based off of 1.92. I got it all set up and made the first catergory and forum. However, when I click the forum, I get this error message.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/export/www/hosting/cpubasic1337/forum.php on line 58 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/export/www/hosting/cpubasic1337/forum.php on line 66 Looking into it, lines 58-60 and 66-68 are: if($annc=mysql_fetch_array($anncs)){ $namecolor=getnamecolor($annc[sex],$annc[powerlevel]); print " Now I know what that might mean (get the namecolor from the sex and powerlevel settings) but what is strange is that I made no changes to forum.php at all. Got any idea how to fix and an explanation why? (If I am going to learn PHP, best be from mistakes, right?) |