----- Original Message -----
To: Eve Atley
Sent: Tuesday, February 24, 2004 2:15 AM
Subject: Re: MySql and php thanx alot for ur reply , i think better to send my
script to u .In third collom , there is two different status . I want to
highlight those with two different colors.There is to be satisfied some simple
condition , plz help
thanx
curlys
<?php /* Connecting, selecting database */ $link = mysql_connect("localhost", "root", "*****") or die("Could not connect"); /*print "Connected successfully";*/ mysql_select_db("smsc") or die("Could not select database"); /* Performing SQL query */ $query = "SELECT * FROM ServiceStatus"; $result = mysql_query($query) or die("Query failed"); /* Printing results in HTML */ print "<table>\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { print "\t<tr>\n"; foreach ($line as $col_value) { print "\t\t<td>$col_value</td>\n"; } print "\t</tr>\n"; } print "</table>\n"; /* Free resultset */ mysql_free_result($result); /* Closing connection */ mysql_close($link); ?>
|
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]