/    Sign up×
Community /Pin to ProfileBookmark

Need help asap

i am a student of website development

i just wana ask if anyone knows how to make search engine in javescript and how can i connect that to php to retrieve data from sql.

thanks alot

to post a comment
JavaScript

9 Comments(s)

Copy linkTweet thisAlerts:
@DokOct 14.2006 — Use forms to submit user data to your php script which will inturn run the sql query.
Copy linkTweet thisAlerts:
@konithomimoOct 14.2006 — you can use the google prototype search box, or you can create one on your own using a textbox and select object.
Copy linkTweet thisAlerts:
@shehzadauthorOct 14.2006 — wht abt javascript then,

i have been asked to make a search form in javascript...and m design a website in php and all my data is in sql.....i wana know if there is anywa y when i click submit button which is in javascript and php rteives the data from sql and brings the data up from sql
Copy linkTweet thisAlerts:
@thechasboiOct 14.2006 — shehzad

If I understand this correctly is that you need to get data from the DB using PHP and Javascript. You could use AJAX to solve this problem or if this is to advanced you could set up the sql statement using javascript then send this to the php for excution and retrieval. Hope this helps.

two great sites for ajax ph examples

http://www.ajaxtoolbox.com/request/examples.php

http://www.clearnova.com/ajax/
Copy linkTweet thisAlerts:
@shehzadauthorOct 14.2006 — yah u almost got me .....i wana retivre db from sql using php and javascript......my search form is in javascript only and rest is in php.......its a drop down form....act i am design a website for house search

and m not allowed to use anyother langage at the moment

thanks alot
Copy linkTweet thisAlerts:
@shehzadauthorOct 14.2006 — if u can recommend any website or code i can try up.....

like a code how to connect sql with php and a code when i press a search button which is in java and php retives a data for me
Copy linkTweet thisAlerts:
@ZnupiOct 14.2006 — ...not allowed to use anyother langage at the moment...[/QUOTE]
Ajax is not another language. Its Javascript.
Copy linkTweet thisAlerts:
@shehzadauthorOct 14.2006 — thanks alot...

i will check that too...
Copy linkTweet thisAlerts:
@ZnupiOct 15.2006 — www.w3schools.com/ajax ... that should get you started ?
×

Success!

Help @shehzad spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...