[REPU] Board Post Reply: ERROR IN PHOTO GALLERY

From: forum@mazdarepu.com
Date: Wed Nov 27 2002 - 11:32:10 PST


A New Post has Been made to the thread [ERROR IN PHOTO GALLERY]
User From: admin
The Reply was:

-----------------------------------------------------------
I fixed one error... In galleries who's names contained a (') character, the database statement would get messed up.

for those of you that care:
[i]select * from photos where album='$album'[/i]

where $album is the variable that is passed in from the previous page... If that contained a ' ... there would be one too many in the statemnt statement... it would become:

[i]select * from photos where album='REPU's Photos'[/i]

and the result would be 0...

If there are any more errors, post a reply here!

-----------------------------------------------------------
DO NOT REPLY TO THIS EMAIL!!

  Log into http://http://www.mazdarepu.com/board
Go Here to Reply: http://www.mazdarepu.com/board/viewthread.php3?FID=1&TID=315
 
-----------------------------------------------------------
Mazda Rotary Engine Pickup List http://mazdarepu.com
To get off the list send an email to majordomo@mazdarepu.com
-----------------------------------------------------------



This archive was generated by hypermail 2.1.1 : Mon Jan 27 2003 - 00:00:17 PST