Hi,
I badly need some help. I already got some ideas from you but none of them worked.
I just want to display the result of some complicated queries using COUNT,MIN,MAX.
Eg.: SELECT MIN(COLUMN1-COLUMN2) FROM TABLE ;
That's OK. It works in MySQL but now I want it to appear on my page.
I used the following code:
<?
$dbhost = MYHOST ;
$dbuser = MYUSER ;
$dbpass = MYPASSWORD ;
$db = mysql_connect($dbhost,$dbuser,$dbpass) or die("Error while connecting!") ;
$dbname = MYDBASE ;
mysql_select_db($dbname,$db) ;
$query = "select min(COLUMN1) from TABLE" ;
$result = mysql_query($query,$db) ;
list(count) = mysql_fetch_row($result) ;
echo $count ;
?>
It doesn't work and I don't have an idea. Can you please help me?
Thanks, Akos