Hi,

Is there anything wrong with this code below?
Any help or fix to this code would be very much appreciated.



The file to get the data out (gif file):
--------------------------------
<?php

/* data_out.php3 */

$db = mysql_connect("www.server.com", "root", "password");
mysql_select_db("db_name", $db);
$sql = "select * from table_name order by 'date'";
$sql = "select * from table_name";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
print("<tr><td bgcolor=\"#003399\">");
printf("<img src=\"$indice_url\">%s</td></tr>\n",
$row["indice_url"]);
}
?>




Here's the "tiny" table that feeds it:
--------------------------------
CREATE TABLE indice (
    id int(11) DEFAULT '0' NOT NULL auto_increment,
    date text,
    indice text,
    indice_url varchar(255),
    PRIMARY KEY (id)
);
--------------------------------



Merci,

Yves
--


------------------------
Malouin Design Graphique
http://www.malouin.qc.ca

Québec (Québec)  CANADA


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to