RE: Newbie: Images refs not loading (Broken Icons) How to?

From: Date: Tue, 13 Feb 2001 13:19:09 +0000
Subject: RE: Newbie: Images refs not loading (Broken Icons) How to?
Groups: php.general 
Request: Send a blank email to php-general+get-39406@lists.php.net to get a copy of this message
> -----Original Message----- > From: Malouin Design Graphique [mailto:lists@malouin.qc.ca] > Sent: 13 February 2001 03:26 > To: php-general@lists.php.net > 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

« previous php.general (#39406) next »