Gallery Search
|
79 posts
|
Hey I dont know if this requires a lot of work or not, |
|
343 posts
|
What gallery are you referring at? Please be more specific. |
|
79 posts
|
Woops I should have mentioned that, my bad lol! BD Gallery: info | author | 2008-08-19 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. |
|
343 posts
|
This can be easily done. I think I’ll add an Addon for for the gallery, which will provide search. |
|
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%’”); 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; |
|
79 posts
|
Woops those quotes arent UTF-8 fyi |
|
44 posts
|
Hello Dear, |