use php connect to your localhost databases,
here is the code:
<?php
mysql_connect(“localhost”, “admin”, “password”) or die(mysql_error());
echo “Connected to MySQL
“;
?>
use php connect to your localhost databases,
here is the code:
<?php
mysql_connect(“localhost”, “admin”, “password”) or die(mysql_error());
echo “Connected to MySQL
“;
?>
$result = mysql_query(“SELECT * FROM example”)
That line of code is valid PHP, but it also contains valid MySQL. The text that appears between the quotations “SELECT * FROM example”, is the MySQL code.