DIGIT-ARC read-only archive · snapshot: July 23, 2026

need html help

6 posts · originally from https://geek.digit.in/community/threads/need-html-help.62208/

S
SMARTLUBANA Original post #1
Jul 5, 2007 at 8:46 PM
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
Jul 5, 2007 at 9:23 PM
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);
?>
S
Jul 5, 2007 at 9:48 PM
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
Jul 6, 2007 at 9:53 AM
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.
T
Jul 9, 2007 at 2:52 PM
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
T
Jul 13, 2007 at 7:50 PM
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..