PHP ~ MySQL

I have created a simple test page which works when i test from my computer in DW8 live data view.
when i load it to my site i get this message:


Connected successfully
Warning: mysql_select_db() expects parameter 2 to be resource, null given in /home/industri/public_html/dbtest.php on line 3

Warning: mysql_query() expects parameter 2 to be resource, null given in /home/industri/public_html/dbtest.php on line 5


here is the code for the page:

<?php include('Connections/mysqlconn.php'); ?> <?php mysql_select_db($database_mysqlconn, $mysqlconn); $query_Recordset1 = "SELECT * FROM resumeinfo"; $Recordset1 = mysql_query($query_Recordset1, $mysqlconn) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); ?> Untitled Document

<?php echo $row_Recordset1['FirstName']; ?> <?php echo $row_Recordset1['MiddleInitial']; ?> <?php echo $row_Recordset1['LastName']; ?>

 

 

<?php mysql_free_result($Recordset1); ?> _________________________________________________________________

It works and shows the DB record in my DW8 live data view, but when uploaded i get the error…any help appreciated.

Thanks

Sponsor our Newsletter | Privacy Policy | Terms of Service