need html help

Status
Not open for further replies.

SMARTLUBANA

Right off the assembly line
Joined
Nov 21, 2006
Messages
6
hi i m doing pgdca
and these days i m learing html
but acc to our sylabus, my sir only teach bout how to design webpages
but nevet told, how to connect these webpages to the databases.

like i have done vb, and i knw how to connect to the database

so can anybody tell me wats the procedure to connect the html files to the databases..

thanks
 

nithinks

True Techie
Joined
Apr 22, 2005
Messages
259
WRONG SECTION
You can connect HTML pages to databases, provided you are using ASP,PHP,JSP,JAVA ....etc, for designing, with HTML. Using these languages you can connect to the databases such as MySql,MS access,MSSql etc.

Connecting to MySql database in PHP is something like this

<?php
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'password';

$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');

$dbname = 'petstore';
mysql_select_db($dbname);
?>
 
Last edited:
OP
S

SMARTLUBANA

Right off the assembly line
Joined
Nov 21, 2006
Messages
6
thanks

but i dont know wat is asp, php, jsp

and i also dont know how to connect ms access database using these asp,php,jslp with the html
 

nithinks

True Techie
Joined
Apr 22, 2005
Messages
259
the above code will connect PHP page to MySql, and you can learn jsp,PHP. easily by studying some online books , programs.Just go through some PHP projects online, you will get an idea.
 

tanvi chaturvedi

Broken In
Joined
Apr 24, 2007
Messages
21
hy u can learn ASP (buk name ASP.net)as it is more or less similar to VB...
as u r learnin html so u can merge both .dunno worry ASP is easy!!


:p
 

tanvi chaturvedi

Broken In
Joined
Apr 24, 2007
Messages
21
i suppose connectivity to db is not advanced HTML... its just core of eithr ASP,php,java.... html has nothing to do with connectivity !!!

@ax3..
 
Status
Not open for further replies.
Top