Re: [PHP-DB] HTML question
On Sun, 19 Sep 2004, David Orlovich wrote: I think you're just missing some double quotes (which you have to escape). How about something like this: echo tda href=\mailto:;, $row['Email'], \, $row['Email'], /a/td; Cheers, David. Perfect!!! Many thanks. Pete -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] HTML question
I have a database that has an email field. I would like the web page that is created dynamically from this database to have a mailto:; link for each email address but I don't know what to put in the email field. I tried replacing echo td{$row['Email']}/td\n; with echo tda href=mailto:{$row['Email']}{$row['Email']}/a/td\n; but that didn't work. Thanks. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] HTML question
I think you're just missing some double quotes (which you have to escape). How about something like this: echo tda href=\mailto:;, $row['Email'], \, $row['Email'], /a/td; Cheers, David. On 19/09/2004, at 3:31 PM, Pete Holsberg wrote: I have a database that has an email field. I would like the web page that is created dynamically from this database to have a mailto:; link for each email address but I don't know what to put in the email field. I tried replacing echo td{$row['Email']}/td\n; with echo tda href=mailto:{$row['Email']}{$row['Email']}/a/td\n; but that didn't work. Thanks. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Dr David Orlovich, Department of Botany, University of Otago, P.O. Box 56, Dunedin, New Zealand. Phone: +643 479 9060 Fax: +643 479 7583 www: http://www.botany.otago.ac.nz/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] HTML question
Hello, pure HTML server question: images like (backgroundimage.jpg) stored on server at: /htdocs/www/img util.showpic.html is stored at : /htdocs/util/ How to use backgroundimage.jpg as background in util.showpic.html ? body background=/www/img/backgroundimage.jpg does not work.. what if anything will work? Thnaks Ken -- PHP Database 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]
Re: [PHP-DB] HTML question
Is /htdocs/ your web root? If it isn't the browser loading up the page would not have access to /www/img/backgroundimage.jpg. If it is - try removing the space after the .jpg in your body tag. Tom At 15:51 10/07/2001 -0700, you wrote: Hello, pure HTML server question: images like (backgroundimage.jpg) stored on server at: /htdocs/www/img util.showpic.html is stored at : /htdocs/util/ How to use backgroundimage.jpg as background in util.showpic.html ? body background=/www/img/backgroundimage.jpg does not work.. what if anything will work? Thnaks Ken -- PHP Database 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] -- PHP Database 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]
Re: [PHP-DB] HTML question
HI, thanks not sure what the web root is. first dir I see on FTP is / so is that the root? and it contains a whole bunch of dirs including htdocs htdocs contains dirs: img (pics) util (utility html pages) www (main html pages) is there a way to refer to images in imgfrom html pages in util AND www I have things like ../img/ not sure what that means. thanks, ken - Original Message - From: Tom Peck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 4:00 PM Subject: Re: [PHP-DB] HTML question Is /htdocs/ your web root? If it isn't the browser loading up the page would not have access to /www/img/backgroundimage.jpg. If it is - try removing the space after the .jpg in your body tag. Tom At 15:51 10/07/2001 -0700, you wrote: Hello, pure HTML server question: images like (backgroundimage.jpg) stored on server at: /htdocs/www/img util.showpic.html is stored at : /htdocs/util/ How to use backgroundimage.jpg as background in util.showpic.html ? body background=/www/img/backgroundimage.jpg does not work.. what if anything will work? Thnaks Ken -- PHP Database 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] -- PHP Database 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] -- PHP Database 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]
Re: [PHP-DB] HTML question
when you load up your web page in your browser, what folder do you see? It is most likely the contents of the www/ folder. If this is the case, then all of your files which you want accessible to the web (ie html and images) need to be somewhere under this. Try putting both the background image and the html file in the www folder, then change your body tag to: body background=backgroundimage.jpg then load up the page. If that works fine, and you want the images in a different folder, create a dir (eg. img ) coming off the www/ folder, then put the background image in there, and change your body tag to: body background=/img/backgroundimage.jpg or body background=img/backgroundimage.jpg If your html file was in the img/ directory, and the image was in the www/ folder, so it looks like this: /www/img/file.html /www/backgroundimage.jpg then your body tag could be: body background=../backgroundimage.jpg the ../ just traverses down a directory. If none of this makes sense to you, you should probably do some basic html tutorials or something :-) Tom At 16:19 10/07/2001 -0700, you wrote: HI, thanks not sure what the web root is. first dir I see on FTP is / so is that the root? and it contains a whole bunch of dirs including htdocs htdocs contains dirs: img (pics) util (utility html pages) www (main html pages) is there a way to refer to images in imgfrom html pages in util AND www I have things like ../img/ not sure what that means. thanks, ken - Original Message - From: Tom Peck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 4:00 PM Subject: Re: [PHP-DB] HTML question Is /htdocs/ your web root? If it isn't the browser loading up the page would not have access to /www/img/backgroundimage.jpg. If it is - try removing the space after the .jpg in your body tag. Tom At 15:51 10/07/2001 -0700, you wrote: Hello, pure HTML server question: images like (backgroundimage.jpg) stored on server at: /htdocs/www/img util.showpic.html is stored at : /htdocs/util/ How to use backgroundimage.jpg as background in util.showpic.html ? body background=/www/img/backgroundimage.jpg does not work.. what if anything will work? Thnaks Ken -- PHP Database 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] -- PHP Database 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] -- PHP Database 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] -- PHP Database 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]
Re: [PHP-DB] HTML question
I Looked up the root..sorry it is DOCUMENT_ROOT .. /htdocs/www so I guess browsers think they are starting out at /htdocs/www and can't go below to get anything? so if I have phtml pages at /htdocs/util/ like www.util.consumergrapevine.org/showdatabases.php and images at /htdocs/www/img can I use an image in /htdocs/www/img as sa background imge in a page located in dir /htdocs/util/ ?? if so,what would be the body tag look like? body background=/img/backgroundimage.jpg ? or should I move my /img/ dir somewhere else like maybe throw 'em in with all the pages in /htdocs/www ? thanks again, Ken - Original Message - From: Tom Peck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 4:00 PM Subject: Re: [PHP-DB] HTML question Is /htdocs/ your web root? If it isn't the browser loading up the page would not have access to /www/img/backgroundimage.jpg. If it is - try removing the space after the .jpg in your body tag look like? body background=/www/img/backgroundimage.jpg Tom At 15:51 10/07/2001 -0700, you wrote: Hello, pure HTML server question: images like (backgroundimage.jpg) stored on server at: /htdocs/www/img util.showpic.html is stored at : /htdocs/util/ How to use backgroundimage.jpg as background in util.showpic.html ? body background=/www/img/backgroundimage.jpg does not work.. what if anything will work? Thnaks Ken -- PHP Database 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] -- PHP Database 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] -- PHP Database 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]
Re: [PHP-DB] HTML question
The php file placed in your /util/ directory will not be accessible by the web.. everything you want accessible to the web has to be placed in the /www/ folder.. so place the php file in the /www/ folder (or /www/util/ if you like) and the images in the /www/img/ folder, and use the body tag: body background=img/backgroundimage.jpg (for /www/) or body background=/img/backgroundimage.jpg (for /www/ and /www/util/) or body background=../img/backgroundimage.jpg (for /www/util/) Tom At 16:38 10/07/2001 -0700, you wrote: I Looked up the root..sorry it is DOCUMENT_ROOT .. /htdocs/www so I guess browsers think they are starting out at /htdocs/www and can't go below to get anything? so if I have phtml pages at /htdocs/util/ like www.util.consumergrapevine.org/showdatabases.php and images at /htdocs/www/img can I use an image in /htdocs/www/img as sa background imge in a page located in dir /htdocs/util/ ?? if so,what would be the body tag look like? body background=/img/backgroundimage.jpg ? or should I move my /img/ dir somewhere else like maybe throw 'em in with all the pages in /htdocs/www ? thanks again, Ken - Original Message - From: Tom Peck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 4:00 PM Subject: Re: [PHP-DB] HTML question Is /htdocs/ your web root? If it isn't the browser loading up the page would not have access to /www/img/backgroundimage.jpg. If it is - try removing the space after the .jpg in your body tag look like? body background=/www/img/backgroundimage.jpg Tom At 15:51 10/07/2001 -0700, you wrote: Hello, pure HTML server question: images like (backgroundimage.jpg) stored on server at: /htdocs/www/img util.showpic.html is stored at : /htdocs/util/ How to use backgroundimage.jpg as background in util.showpic.html ? body background=/www/img/backgroundimage.jpg does not work.. what if anything will work? Thnaks Ken -- PHP Database 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] -- PHP Database 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] -- PHP Database 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] -- PHP Database 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]
Re: [PHP-DB] HTML question
to get to the img directory you need to go up one directory ( ../ ) and then into the img directory body background=../img/backgroundimage.jpg hope that helps nick At 04:38 10/07/01 -0700, Ken Sommers wrote: I Looked up the root..sorry it is DOCUMENT_ROOT .. /htdocs/www so I guess browsers think they are starting out at /htdocs/www and can't go below to get anything? so if I have phtml pages at /htdocs/util/ like www.util.consumergrapevine.org/showdatabases.php and images at /htdocs/www/img can I use an image in /htdocs/www/img as sa background imge in a page located in dir /htdocs/util/ ?? if so,what would be the body tag look like? body background=/img/backgroundimage.jpg ? or should I move my /img/ dir somewhere else like maybe throw 'em in with all the pages in /htdocs/www ? thanks again, Ken - Original Message - From: Tom Peck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 10, 2001 4:00 PM Subject: Re: [PHP-DB] HTML question Is /htdocs/ your web root? If it isn't the browser loading up the page would not have access to /www/img/backgroundimage.jpg. If it is - try removing the space after the .jpg in your body tag look like? body background=/www/img/backgroundimage.jpg Tom At 15:51 10/07/2001 -0700, you wrote: Hello, pure HTML server question: images like (backgroundimage.jpg) stored on server at: /htdocs/www/img util.showpic.html is stored at : /htdocs/util/ How to use backgroundimage.jpg as background in util.showpic.html ? body background=/www/img/backgroundimage.jpg does not work.. what if anything will work? Thnaks Ken -- PHP Database 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] -- PHP Database 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] -- PHP Database 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] Also the attempt to make PHP the egg-laying woolly milch sow is not my opinion after the actual target for PHP. --Zeev Suraski ( bablefish) -- PHP Database 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]