Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Acmlmboard support?.
Acmlm's Board - I2 Archive - Acmlmboard support? - Edituser.php error in 1.A3. | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Reno

Level: 13

Posts: 43/48
EXP: 8122
For next: 2145

Since: 03-15-04
From: Ireland

Since last post: 9 days
Last activity: 9 days
Posted on 08-28-05 08:21 PM Link | Quote
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'birthday=0,minipic='',homepagename='',scheme=0,threadsperpage=5

Depending on what I do to the file, it gives me a similar error, but a different string of code. I have modified the file, but that doesn't seem to be causing the error—I reverted to the original code, and even tried the code from 1.A2, and still got similar errors.

Any ideas, anyone?
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 470/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 08-28-05 11:44 PM Link | Quote
Originally posted by Reno
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'birthday=0,minipic='',homepagename='',scheme=0,threadsperpage=5

Depending on what I do to the file, it gives me a similar error, but a different string of code. I have modified the file, but that doesn't seem to be causing the error—I reverted to the original code, and even tried the code from 1.A2, and still got similar errors.

Any ideas, anyone?
Looks like the 's are in the wrong palces. It should look like this:
birthday=$birthday,minipic='".addslashes($minipic)."',homepagename='".addslashes($pagename)."',scheme=$sscheme,threadsperpage=$threadsperpage

Also, while you're at it, you need to fix the $vsig var, which should be near Line 37. The last part of that var says $radio=viewsig value=2 $checked2[1]>Auto-Updating";. It should be $checked2[2]. Otherwise, it forces anyone who has layouts set to auto-update to just have them enabled.
Reno

Level: 13

Posts: 44/48
EXP: 8122
For next: 2145

Since: 03-15-04
From: Ireland

Since last post: 9 days
Last activity: 9 days
Posted on 08-30-05 12:32 AM Link | Quote
Gah.

Thanks for the reply, Elric, but that's already working correctly. The only thing I can think of is the extra field to the user table I added. Hmm. The field is called "layoutallow", and I added an option to modify it via edituser.php. However, even when I reverted the whole file (as I said) it still didn't work. This is the only thing I can think of that might be causing the problem.
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 484/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 08-30-05 01:16 AM Link | Quote
Hmm... if you just re-extracted the edituser.php file from the archive, then I don't see why it's not working...

Have you tried deleting edituser.php from your server, then uploading it? Also, have you tried a refresh? A lot of times, when you change a file, and then go to it in your browser, it's loading the cached version, so you need to F5 to get the latest version...
Reno

Level: 13

Posts: 45/48
EXP: 8122
For next: 2145

Since: 03-15-04
From: Ireland

Since last post: 9 days
Last activity: 9 days
Posted on 09-10-05 05:31 PM Link | Quote
Hmm. I've tried all of it, and I still get the same error. I even tried using version 1.A2, and I get the same error.

Because I used the exact same copy of 1.A2 that had worked for me on another sever, I'm starting to think that maybe it's a different version of MySQL on this new server. Any idea how I should format the syntax to make it work?

And thanks Elric, I appreciate the help.
Book Keeper
♫♫♫ n00blet ♫♫♫

Level: 21

Posts: 144/160
EXP: 49435
For next: 508

Since: 03-15-04
From: Wired

Bookworm eat fresh!

Since last post: 20 hours
Last activity: 8 hours
Posted on 09-11-05 04:58 AM Link | Quote
The problem is its leaving something blank, or unsigned. You need to set a defalt for that varable(in the php file), and you need to make sure that it checks the DB for the varable.
Reno

Level: 13

Posts: 46/48
EXP: 8122
For next: 2145

Since: 03-15-04
From: Ireland

Since last post: 9 days
Last activity: 9 days
Posted on 09-11-05 06:26 PM Link | Quote
Okay, I've been looking at the problem again, and I can't seem to find its source.

Which variable could it be leaving blank, and where and how should I set the default?

And thanks for the feedback.
Book Keeper
♫♫♫ n00blet ♫♫♫

Level: 21

Posts: 145/160
EXP: 49435
For next: 508

Since: 03-15-04
From: Wired

Bookworm eat fresh!

Since last post: 20 hours
Last activity: 8 hours
Posted on 09-11-05 11:10 PM Link | Quote
The file needs the check the correct DB varable, I sometimes have this problem when a tinyint like a radio button doesn't find the varable. it needs something like $loguser[sex] to get it working properly.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Acmlmboard support? - Edituser.php error in 1.A3. | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.010 seconds.