Click here to Skip to main content
15,894,106 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
how can i connect html page with database using javascript ?i dont want to use php ...PLEASE HELP
Posted

1 solution

JavaScript is for client side scripting only and you should use some other server side scripting language to connect to database other than php unless you don't want to use it.

JavaScript sends the user input to the server and request a file to process and handle the databases in the server and then the server responds accordingly to the client browser.

Mostly Databases are in server whether it is in local or remote server and if you want to store some data to web browser then you should take a look at HTML5 features(web storage,etc..) that will help you and it is based on JavaScript.
 
Share this answer
 
Comments
Member 11823521 9-Jul-15 1:30am    
thank you.

how can HTML5 be used for the same ?
can i use jquery ? if yes how ? what's difference in jquery and javascript?
g888s 9-Jul-15 6:31am    
For Web Storage : refer http://www.w3schools.com/html/html5_webstorage.asp
For Jquery : refer : http://www.w3schools.com/jquery/
Jquery is simply a library file created using JavaScript.It contains useful functions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900