Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Design, Coding & Programming Forum

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 08-06-2007, 06:20 AM   #1 (permalink)
Junior Googler
 
stream's Avatar
 
Join Date: Jun 2007
Location: Java
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
stream is on a distinguished road
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!
Attached Files To view attachments your post count must be 10 or greater. Your post count is 0 momentarily.
stream is offline   Reply With Quote
 
Sponsored Links
Old 08-06-2007, 06:30 AM   #2 (permalink)
Elite Googler
 
alex-party's Avatar
 
Join Date: Oct 2006
Location: Ireland
Posts: 1,084
Thanks: 0
Thanked 2 Times in 2 Posts
alex-party is an unknown quantity at this point
$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
alex-party is offline   Reply With Quote
Old 08-07-2007, 10:59 PM   #3 (permalink)
Junior Googler
 
stream's Avatar
 
Join Date: Jun 2007
Location: Java
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
stream is on a distinguished road
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.
stream is offline   Reply With Quote
Old 08-08-2007, 03:03 AM   #4 (permalink)
Elite Googler
 
alex-party's Avatar
 
Join Date: Oct 2006
Location: Ireland
Posts: 1,084
Thanks: 0
Thanked 2 Times in 2 Posts
alex-party is an unknown quantity at this point
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'"
alex-party is offline   Reply With Quote
Old 08-08-2007, 08:38 PM   #5 (permalink)
Junior Googler
 
stream's Avatar
 
Join Date: Jun 2007
Location: Java
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
stream is on a distinguished road
big thanks again for your advice alex. I think "stuck" on my head now is gradually released
stream is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -8. The time now is 02:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community