chowlee Posted August 14, 2011 Share Posted August 14, 2011 the below code worked until recently . It works now but with the below messages? Notice: Use of undefined constant php - assumed 'php' in C:\xampp\htdocs\hofiles\waitlist.php on line 1 W Notice: Use of undefined constant localhost - assumed 'localhost' in C:\xampp\htdocs\hofiles\waitlist.php on line 4 Notice: Use of undefined constant root - assumed 'root' in C:\xampp\htdocs\hofiles\waitlist.php on line 4 Notice: Use of undefined constant hoappsdb - assumed 'hoappsdb' in C:\xampp\htdocs\hofiles\waitlist.php on line 5 Waiting List Appl . . . Race & Ethnic- . Displ. Income B/r s Movein Removal . . # Date Time Name Gender City LH % Y/N Level Needed Date Code Comments ==================================================================================== 09-58 9/9/2009 3PM Rochester, Davis WM N X N L 3 x 3/4/2010 4 phone <?php?> <html><body><center>W</center></body></html> <?php mysql_connect("localhost","root",""); mysql_select_db('hoappsdb') or die( "Unable to select database"); $query="SELECT * FROM waitlist Where entrytype='W'"; $result=mysql_query($query); $num=mysql_numrows($result); Link to comment https://forums.phpfreaks.com/topic/244798-why-the-messages/ Share on other sites More sharing options...
MasterACE14 Posted August 14, 2011 Share Posted August 14, 2011 this... $num=mysql_numrows($result); should be this... $num=mysql_num_rows($result); As for your code, that's not the whole script is it? what you've shown should work, with the adjustment I just mentioned. Link to comment https://forums.phpfreaks.com/topic/244798-why-the-messages/#findComment-1257446 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.