jkewlo Posted March 20, 2008 Share Posted March 20, 2008 have u figured it out? Link to comment https://forums.phpfreaks.com/topic/96769-autofill-drop-down-list/page/2/#findComment-496448 Share on other sites More sharing options...
mikebyrne Posted March 20, 2008 Author Share Posted March 20, 2008 Not a clue, its driving me mad Link to comment https://forums.phpfreaks.com/topic/96769-autofill-drop-down-list/page/2/#findComment-496450 Share on other sites More sharing options...
mikebyrne Posted March 20, 2008 Author Share Posted March 20, 2008 Still cant get the box to autofill with my data, cant figure out why as Im getting no error and the code looks ok to me Link to comment https://forums.phpfreaks.com/topic/96769-autofill-drop-down-list/page/2/#findComment-496693 Share on other sites More sharing options...
BlueSkyIS Posted March 20, 2008 Share Posted March 20, 2008 the code as posted works perfectly for me. that leaves only a few possibilities: 1. Your connection to the database is failing 2. There is no table Products and/or no column ProductName 3. There are no records in the table Products and/or no values inserted for ProductName I suggest that you first ensure error_reporting is on by creating an error (try dividing something by zero). If you can verify that error_reporting is on, then check your HTML output using View Source, as the error may be embedded in the <SELECT> and not displayed on the page. Link to comment https://forums.phpfreaks.com/topic/96769-autofill-drop-down-list/page/2/#findComment-496736 Share on other sites More sharing options...
mikebyrne Posted March 20, 2008 Author Share Posted March 20, 2008 I viewd the html page source and noticed this Table 'admin.products' doesn't exist UNBELIVABLE!!! 2 days pulling my hair out and my SQL was $query = "SELECT ProductName FROM Products"; instead of $query = "SELECT ProductName FROM Product"; Thanks for the help guys Link to comment https://forums.phpfreaks.com/topic/96769-autofill-drop-down-list/page/2/#findComment-496749 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.