Date: 11/04/00
- Next message: jeremy brand: "Re: [PHP] include() images"
- Previous message: Web Admin: "Fw: [PHP] Need to scan MySQL table"
- In reply to: bill: "[PHP] PHP and File Permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hey,
This is a followup to my previous message about using DHTML and php/mysql, I
know its a bit off topic but I think someone can help me, since it has to do
with php coding.
I have a script setup, very simple:
http://www.hardware-unlimited.com/reviews1.php3
When you click the Description link it makes a layer visible at the bottom
and you can close the layer as well, but the problem I am having is
positioning, I can't get it so it displays right after the review (and yes
the description is the same for both reviews, that will be changed later :)
If someone can help me make it so I can add the layer code within a while
statement that would be great, here is the chunch of code for the layers:
while($a=mysql_fetch_array($r)) {
printf ("<div style='position: relative; visibility: visible;'>- <a
href=\"%s\">%s</a> (Written by: <a href=\"mailto:%s\">%s</a>) - [<a href='#'
onClick='window.show(\"myId\")'>Description</a>]</div>",$a["url"],$a["name"]
,$a["email"],$a["author"]);
}
printf ("<div id='myId' style='position: relative; visibility:
hidden;'>Hidden Layer<br>[<a href='#'
onClick='window.hide(\"myId\")'>x</a>]</div>");
I need to be able to move the last line into the while statement but it
gives me errors. Also, I need to add a variable for the <div id='blah' on
the last line so if you need to add a variable statement at the end that
might work.
Any suggestions would help, thanks!
Thanks!
--------------------------------------------
-Alex "Big Al" Behrens
E-mail: bigal <email protected>
Phone: 651-482-8779
Fax: 651-482-1391
Pager: 612-740-2162
ICQ: 3969599
Owner of the 3D-Unlimited Network:
http://www.3d-unlimited.com
Send News:
news <email protected>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: jeremy brand: "Re: [PHP] include() images"
- Previous message: Web Admin: "Fw: [PHP] Need to scan MySQL table"
- In reply to: bill: "[PHP] PHP and File Permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

