Re: Broken icon?

From: Date: Tue, 13 Feb 2001 06:22:06 +0000
Subject: Re: Broken icon?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39364@lists.php.net to get a copy of this message
try this printf("<img src=\"%s\">%s</td></tr>\n",$row["indice_url"],$row["indice_url"]); regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India ----- Original Message ----- From: "Malouin Design Graphique" <lists@malouin.qc.ca> To: <php-general@lists.php.net> Sent: Tuesday, February 13, 2001 3:05 AM Subject: [PHP] Broken icon? > Hello, > > My problem is that I have in the table below an URL (see $indice_url) > that points to the graphic (.gif) that has to be use by the the > "$indice" variable. The graphics ( five different ones) located in > the same folder as the script " data_out.php3" > > Any Guru out here could shred me the "Blue Light" on how to make the > images to show? > > Thanks in advance, > > Best regards, > > Yves > > > > This is the table that feeds: > -------------------------------- > CREATE TABLE indice ( > id int(11) DEFAULT '0' NOT NULL auto_increment, > date text, > indice text, > indice_url varchar(255), > PRIMARY KEY (id) > ); > -------------------------------- > > > The file to get the data out: > -------------------------------- > <?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"]); > } > ?> > -------------------------------- > > > The output that it gives me (in source mode): > -------------------------------- > <table border="1" cellpadding="3" width="130"> > <tr><td bgcolor="#003399"><img > src="">image_f03.gif</td></tr> > <tr><td bgcolor="#003399"><img > src="">image_f05.gif</td></tr> > <tr><td bgcolor="#003399"><img > src="">image_f01.gif</td></tr> > </table> > -------------------------------- > -- > > > ------------------------ > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#39364) next »