OriginalBoy Posted June 15, 2008 Share Posted June 15, 2008 Hey, I am trying to display my results in a page. Here is what I got so far what needs adding? <?php include("../config.inc.php"); $querycol = "select * columns from `credit_customers`"; $queryresult = mysql_query($querycol) or die("Query failed due to: " . mysql_error()); ?> Link to comment https://forums.phpfreaks.com/topic/110317-solved-dispalying-database-results/ Share on other sites More sharing options...
grlayouts Posted June 15, 2008 Share Posted June 15, 2008 try this $querycol = mysql_fetch_array(mysql_query("SELECT * FROM credit_customers;")); $queryresult = mysql_query($querycol) or die("Query failed due to: " . mysql_error()); Link to comment https://forums.phpfreaks.com/topic/110317-solved-dispalying-database-results/#findComment-565998 Share on other sites More sharing options...
OriginalBoy Posted June 15, 2008 Author Share Posted June 15, 2008 Don't I need to print something? Link to comment https://forums.phpfreaks.com/topic/110317-solved-dispalying-database-results/#findComment-566000 Share on other sites More sharing options...
grlayouts Posted June 15, 2008 Share Posted June 15, 2008 i dont know.. what do you want to print. print"$querycol[printsomething]"; Link to comment https://forums.phpfreaks.com/topic/110317-solved-dispalying-database-results/#findComment-566003 Share on other sites More sharing options...
OriginalBoy Posted June 15, 2008 Author Share Posted June 15, 2008 I want to show the results from the database Link to comment https://forums.phpfreaks.com/topic/110317-solved-dispalying-database-results/#findComment-566004 Share on other sites More sharing options...
grlayouts Posted June 15, 2008 Share Posted June 15, 2008 it will.. change the printsomething to what you want to show. to what field you want to show. Link to comment https://forums.phpfreaks.com/topic/110317-solved-dispalying-database-results/#findComment-566007 Share on other sites More sharing options...
webbiedave Posted June 15, 2008 Share Posted June 15, 2008 This page contains examples on querying a mysql database and then displaying the results: http://us.php.net/manual/en/function.mysql-query.php Link to comment https://forums.phpfreaks.com/topic/110317-solved-dispalying-database-results/#findComment-566008 Share on other sites More sharing options...
OriginalBoy Posted June 15, 2008 Author Share Posted June 15, 2008 Thanks all Link to comment https://forums.phpfreaks.com/topic/110317-solved-dispalying-database-results/#findComment-566018 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.