RE: [PHP] Sorry, PHP & HTML

From: Date: Sun, 12 Jan 2003 02:05:34 +0000
Subject: RE: [PHP] Sorry, PHP & HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131294@lists.php.net to get a copy of this message
I don't see the problem I can run the script with one issue that the comments are outside of PHP parsing. The other issue is that you are closing off for PHP but not opening up in the second block!! ** what are you errors exactly!! are they notices about variables??? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: tim@hitcho.com.au > -----Original Message----- > From: Denis L. Menezes [mailto:menezesd@singnet.com.sg] > Sent: Sunday, 12 January 2003 11:32 AM > To: PHP general list > Subject: [PHP] Sorry, PHP & HTML > > > Hello friends. > > I have a database from which I take 2 variables as follows : > $CompanyWebsite > $CompanyLogo > > I want to dynamically show two GIFs and when the user clicks > on these, they should go to > http://www.hotmail.com and > http://www.yahoo.com > respectively. I have problem only with > the displaying(the error is parse error on the lines > containing <a> tags), for which I use the folowing code. > Please tell me where I am wrong. > > <?php > Print " Organisation address : > ".$row[CompanyAddress]." <br>\n".""; > Print " Organisation website : > ".$row[CompanyWebsite]."<br>\n"." "; // I am > displaying this when testing only. > Print " Organisation logo : > ".$row[CompanyLogo]."<br>\n"." ";?> > > // I am displaying this when testing only. > > Print "<a > href="http://www.hotmail.com"><img > src="logos/constr12.gif" width="100" height="100" > border="0"></a>"; Print "<a > href="http://www.yahoo.com"><img > src="logos/constr12.gif" width="100" height="100" > border="0"></a>"; ?> > > Thanks > Denis >

« previous php.general (#131294) next »