i am trying to create a function.. but i don't know how to use it.. a procedure(as in VB) but how?
I don't want it to be in a different file...
a sample of function and procedure and how to use it will be excellent.. sorry just started PHP yesterday.. hope you guys can help me..PHP Code:<html>
<head>sample</head>
<body>
*********** how will i use dbconnect in here **********
</body>
</html>
<?php function dbconnect($host,$user,$password)
$conn = mysql_connect($host, $user, $password)
or die ("Could Not Connect to DB");
?>




Reply With Quote