Hi,
I’m trying to connect to my database in a php file, with this code:
<?php $con = mysql_connect('epiz_(all numbers)_oil', 'root', ''); ?>
To test that this works, I’m using this code:
<?php $query = mysql_query("SELECT * FROM search_product"); $num_rows = mysql_num_rows($query); echo $num_rows; ?>Do anyone know why this doesn’t work and how to fix it?
Thanks!