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]
Fwd: Re: [PHP-DB] I think the code looks fine... my server doesnt agree
the problem is that your query is not returning a result i would start by changing $Link = mysql_connect ($Host, $User, $Password); AND $Result = mysql_db_query ($DBName, $Query, $Link); To $Link = mysql_connect ($Host, $User, $Password) OR die(could not connect); AND $Result = mysql_db_query ($DBName, $Query, $Link) OR die(could query); i would also echo the variables $Host, $User, $Password, $DBName, $Query, $Link and check they contain what you expect hope that helps nick I think that the following code looks fine, but I get an error (Warning: Supplied argument is not a valid MySQL result resource) where it says while ($Row = mysql_fetch_array ($Result)) { any ideas? ?php $Link = mysql_connect ($Host, $User, $Password); $title = trim($title); $title2 = ereg_replace ( , %' || like '% , $title); if ($category) { $Query = SELECT * from $TableName WHERE ((category)=$category); print Your search query of b $category /b returned the following results:brbr; } else { if ($title) { $Query = SELECT * from $TableName WHERE title LIKE '%$title2%' ; print Your search query of b $title /b returned the following results:brbr; } } if ($category = ) { print ; } $Result = mysql_db_query ($DBName, $Query, $Link); while ($Row = mysql_fetch_array ($Result)) { print a href=item.php?p=$Row[id]; echo ( $Row[title] ); print /abr; } mysql_close ($Link); ? -- 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] Documenta - Multimedia and Electronic Publishing Services The information contained in this e-mail is confidential and is intended solely for the addressee. If you received this e-mail by mistake please promptly inform us by reply e-mail or by telephoning + 61 2 9358 6199 and then delete the e-mail and destroy any printed copy. You must not disclose or use in any way the information in the e-mail. Documenta - Multimedia and Electronic Publishing Services The information contained in this e-mail is confidential and is intended solely for the addressee. If you received this e-mail by mistake please promptly inform us by reply e-mail or by telephoning + 61 2 9358 6199 and then delete the e-mail and destroy any printed copy. You must not disclose or use in any way the information in the e-mail. -- 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]