|
||||||||||
|
|||||||
| GoogleCommunity Sponsor |
Use coupon "forum" for 50% Off! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Junior Googler
![]() Join Date: Jun 2007
Location: Java
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
search mysql php script
hi guys....
I've been days to learn phpscript and now would like to insert search script into my website. the idea is I'd like the visitors to just click letter of a, b, c, etc in order to look up band names showing up their own songs (order by group of letter) from my song database (mysql). I've done trial n error so far (with phptriad) but it still showed error n sometime just blank just today I got one script from internet (full script as attached), but again it showed "....parse error in C:\apache\htdocs\search.php on line 22.." I tried to modify to get rid of the errors, but still unlucky! please anyone can advise me why? - assumed that I've created correctly database, tables in mysql (username n passwrd too)- thank u good people! |
|
|
|
|
Sponsored Links
|
|
|
|
#2 (permalink) |
|
Elite Googler
![]() Join Date: Oct 2006
Location: Ireland
Posts: 1,084
Thanks: 0
Thanked 2 Times in 2 Posts
![]() |
$trimmed = trim($var) //trim whitespace from the stored variable
should have ; at the end, like this: $trimmed = trim($var); //trim whitespace from the stored variable |
|
|
|
|
|
#3 (permalink) |
|
Junior Googler
![]() Join Date: Jun 2007
Location: Java
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
thank alex, error now is gone. but overall the script result is not what I wanted. so I try to create another, but still get stuck anyway
may i ask u another thing? what is "sql statement" in order to retrieve certain fields from more than 1 table? (for instance, field1 from table1 and field2 from table2). thank in advance alex or anybody who gives me help, very appreciated. |
|
|
|
|
|
#4 (permalink) |
|
Elite Googler
![]() Join Date: Oct 2006
Location: Ireland
Posts: 1,084
Thanks: 0
Thanked 2 Times in 2 Posts
![]() |
you're welcome.
sql statement is a simple string that sent to the database from a programming language, like php in your case. here is examples: a) "select * from users_table where username='blabla' and password='blabla'" |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Php Mysql | apg1985 | Web Design, Coding & Programming Forum | 1 | 07-31-2007 05:43 AM |
| Need help with php/mysql for accounts | xxzzangxx | Web Design, Coding & Programming Forum | 1 | 07-24-2005 07:48 PM |
| Google API Search Engine Script | puccavn | Web Design, Coding & Programming Forum | 0 | 05-05-2005 11:53 PM |
| Make search engine With PHP and mySQL, for your site | puccavn | Web Design, Coding & Programming Forum | 0 | 05-05-2005 11:40 PM |