//connect to mysql
    $mysql_link = mysql_connect("localhost", "mysql_user", "mysql_password")
        or die("Could not connect: " . mysql_error());

//get all columns for the selected rows

$query = 'SELECT *
            FROM table_name
            WHERE Column_name = "some_value"';

//execute query
$mysql_result = mysql_query($query, $mysql_link);

$retval.='<table width="95%">';

while($row = mysql_fetch_array($mysql_result))
{// enter display code here

}// end while


//output results
print $retval ;

//close mysql link


-----Original Message-----
From: Mike Delorme [mailto:[EMAIL PROTECTED]
Sent: 23 March 2003 21:11
To: MySQL PHP Database Help
Subject: [PHP-DB] DB CODEING HELP!!!!!

this is bugging me. I have tried everything and I cant develop the code
without an error. Can someone plese write me simple code that will go
through a table and print 3 collums of that table? I cant figure it out

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to