View Full Version : need html help
SMARTLUBANA
05-07-2007, 08: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
05-07-2007, 09: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);
?>
SMARTLUBANA
05-07-2007, 09: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
06-07-2007, 09: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.
tanvi chaturvedi
09-07-2007, 02: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
@SMARTLUBANA ......... things u r learning r just BASIC HTML ......
& 1`s u want is ADVANCE HTML ..........
try learning these lang from : http://www.w3schools.com/default.asp ......
hope it helps u ..........
tanvi chaturvedi
13-07-2007, 07: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..
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.