Saturday, May 18, 2013

How to use mysql_connect() example

<?php
$link
= mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!
$link) {
    die(
'Could not connect: ' . mysql_error());
}
echo
'Connected successfully';mysql_close($link);?>

No comments:

Post a Comment