Re: Insert JPG created with information from a DB in HTML
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Insert JPG created with information from a DB in HTML

From: Alvaro G Vicario <alvaro_QUITAR_REMOVE@telecomputeronline.com>
Date: Mon Jun 27 2005 - 12:23:17 CEST

*** bettina@coaster.ch wrote/escribió (26 Jun 2005 12:58:53 -0700):
> <img src="../Fotos/<? $posavaso?> width="215" height="108">
>
> any tips???

Two troubleshooting techniques that will help you in the future:

* PHP is not everything: do check the generated HTML!

        IE: View-> Source
        Mozilla: View-> Page Source (or Ctrl+U)

* Use the W3C Validator to test the validity of your HTML and CSS:

        http://validator.w3.org
        
This way you would have found that

        <img src="../Fotos/ width="215"
        
is invalid HTML, thus noticing the missing equal and quote :)

-- 
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Received on Mon Oct 24 02:08:33 2005