Menu
Hello guys,
I am new to DBs and PHP, I’m working on a web application that will be storing the data on a database and I have all the HTML form created, I am using WAMP on my computer and my problem right now is that I don’t know where to put the “mysql_connect()” code which (if I’m not wrong) looks like this:
<?php
$con = mysql_connect(“localhost”,”username”,”pass”);
if (!$con)
{
die(‘Could not connect: ‘ . mysql_error());
}
?>
Is this supposed to be on an external php file or where should I put it? Thanks in advance everybody.