> -----Original Message-----
> From: Malouin Design Graphique [mailto:[EMAIL PROTECTED]]
> Sent: 13 February 2001 03:26
> To: [EMAIL PROTECTED]
> Subject: Newbie: Images refs not loading (Broken Icons) How to?
> 
> 
> 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"]);

printf("<img src=\"%s\">%s</td></tr>\n", $row["indice_url"],
$row["indice_url"]);

although not sure of the use of printf. I would do 

echo("<img src='" . $row["indice_url"] . "'>" . $row["indice_url"] .
"</td></tr>\n");

> }
> ?>
> 
> 
> 
> 
> 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
> 
> 


        Tim Ward
        Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html

--
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