FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Gallery Search

Feed 8 posts, 3 voices

Avatar
79 posts

Hey I dont know if this requires a lot of work or not,
but when you add stuff to the gallery area, is the gallery organization based on MySQL?
If it is, is there a way to easily pop in a search form to look for individual gallery name titles?

 
Avatar
343 posts

What gallery are you referring at? Please be more specific.

 
Avatar
79 posts

Woops I should have mentioned that, my bad lol!

BD Gallery: info | author | 2008-08-19
http://frog.bebliuc.ro/articles/2008/08/18/bd-gallery.html

That one is a very nice gallery, so I wondered if it posted titles in MySQL — that way I could try to do some kind of a search page result for the gallery.

 
Avatar
343 posts

This can be easily done. I think I’ll add an Addon for for the gallery, which will provide search.

 
Avatar
79 posts

Here is what I have at the moment that Im trying to work into it soon:

<?php

if ($title == “”) { $title = ‘%’;
}

$query = (“SELECT * FROM gallery WHERE title LIKE ‘$title%’”);
$result = mysql_query($query);

if (!$result) { print ‘No Results’;
}

while ($row = mysql_fetch_row($result)) {

$number = mysql_numrows($result);

if (!$number) { print ‘’; }

$i = 0; print ‘There are’. $number .‘matches’;

while ($i < $number): $galleryName = mysql_result ($result,$i,“title”);

if ($i%2 == 0) { print ‘<a href=’?’.$title.’.php’.$title.’</a> <br />’; } $i++;

endwhile;
?>

 
Avatar
79 posts

Woops those quotes arent UTF-8 fyi

 
Avatar
44 posts

Hello Dear,
my name is peace i saw your profile and i
found
pleasure
to write you as my my friend so that we can communicate to each
othere,please mail me through my email address
(peacelove_khalifa@yahoo.com )
that i will send you my pic for you to know who i am for the love and
pleasure i have develpoed in your lovely profile i awaits your lovely
reply
as soon as you get this mail.
peace
please please please contact this email directly
peacelove_khalifa@yahoo.com