(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-26-24 06:06 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - forum.php woes!
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
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
but what is strange is that I made no changes to forum.php at all.
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?)
Acmlm's Board - I3 Archive - Programming - forum.php woes!


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.011 seconds; used 351.40 kB (max 396.06 kB)