|  | Posted by Shaffer on 03/03/07 08:57 
Hello,you can also use MySQL for this, which is probably better for you,
 since you might not want to handle so many arrays.
 
 * This is not a raw MySQL command, just the structure of the table for
 YOU to make on your own, using a manual, perhaps. :P
 
 1) Create the thimbnails table:
 table thumbnails: id, alt, src, name, sub ;
 If you are not sure about creating the table, then I will show you how
 to.
 
 2) Then, back in php, fetch a query and load the results onto an
 array, as shimmyshack, basically.
 
 $result = mysql_query(/* please */"SELECT id AS ID,alt AS ALT,src AS
 SRC,name AS NAME, sub AS SUB FROM thumbnails");
 while($row = mysql_fetch_array($result)) {
 if($row[SUB] == 0) {
 $thumbs[$row[ID]] = ("<img alt='$row[ALT]' src='$row[SRC]'
 name='$row[NAME]'/>" => "main");
 }
 elseif($row[SUB] == 1) {
 $thumbs[$row[ID]]
 }
 elseif($row[SUB] == 2) {
 
 }
 }
 
 Dunno, it's un-finished, bugged, and it's way too annoying to continue
 with it...
 I really don't know how the heck you came-up with it, and why in the
 form you have suggested.
 If you still insist that all you wanted is a pre-made script then
 please read the following.
 a) GO TO HELL, I HAD TO GET MY MOMMY UPSET FOR MAKING THIS, SINCE SHE
 MADE LUNCH.
 b) GO TO HELL, WHY DID YOU POST IT ON GOOGLE GROUPS AND WHY DIDN'T YOU
 MENTION THAT ALL YOU WANTED IS A SCRIPT BEFORE SHIIMMYSHACK HAS POSTED
 LIKE 200 LINES OF POST!
 c) Anyways, Steve: hear, hear!!
 
 
 Dearly,
 Shaffer.
  Navigation: [Reply to this message] |