| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jun 2005 Location: Pennsylvania
Posts: 1,839
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | php/mysql help -----SOLVED--------- I am in the middle of creating a search by letter script, except, i have ran into some trouble.. i want the user to be able to click a letter and it show all the results with that letter. no problem.. already done using.. PHP Code: this is what i believe it would have to look like but, we no its not going to work.. lol PHP Code:
__________________ Poker News, articles, discussion LIKE THIS Its an iPod, a phone, and an internet communications device.
Last edited by -Ray-; 06-20-2008 at 11:07 AM.
|
| |
| | #2 (permalink) |
| Traveller Join Date: Mar 2007 Location: Yet another city
Posts: 1,419
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | select title where LEFT(title,1) = $yourletter http://dev.mysql.com/doc/refman/5.0/...#function_left
__________________ NameCooler.com |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Jun 2005 Location: Pennsylvania
Posts: 1,839
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | thanks.. ill try that...
__________________ Poker News, articles, discussion LIKE THIS Its an iPod, a phone, and an internet communications device. |
| |
| | #4 (permalink) |
| Traveller Join Date: Mar 2007 Location: Yet another city
Posts: 1,419
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | no problem, glad it worked, you could also use where title LIKE '$yourletter%' http://dev.mysql.com/doc/refman/5.0/...functions.html not sure which one is more efficient... edit: hey! you edited your post, did it not work after all?
__________________ NameCooler.com |
| |
| | THREAD STARTER #5 (permalink) |
| Senior Member Join Date: Jun 2005 Location: Pennsylvania
Posts: 1,839
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | i trying it on function one... it worked... im trying it on function 2 now final code... works... thanks PHP Code:
__________________ Poker News, articles, discussion LIKE THIS Its an iPod, a phone, and an internet communications device.
Last edited by -Ray-; 06-20-2008 at 11:06 AM.
|
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |