|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
tables and php
okay I have a problem that I believe has to do with bad table code... but I just can't figure it out. here's the idea:
I have index.php, with many includes, one of which is called leftnav.php I will begin by posting the code that surrounds that, and then the code for that page. index.php PHP Code:
leftnav.php PHP Code:
Alright so this ALMOST correct, except the pictures are seperated into what I can only assume are there own rows. I want it to be going horizontally, but when it reaches the end of the outside of the page, after like two pics, it would jsut break and go down a row. like this: [pic] [pic] name name [pic] [pic] name name any ideas? thanks!
__________________
hey it's the CHARKING |
|
#2
|
|||
|
|||
|
OK, if I understood you right, you only want to output two pictures in every row. You will need a counter for this. Try it this way.
PHP Code:
Hope it works the way you wanted it to. Let me just stress that there are many errors in your script. For instance, why do you use cookies for login management. Now if I open the cookie you have set, set auth to 5 and refresh the site, I become an administrator. Better use sessions instead. You also have many errors with esaping special chars. For instance if you want to echo a " (double quote) you have to escape it with a backslash. PHP Code:
The same goes for single quotes and backslah (\). Hope it helps. Last edited by _rainbow_ : June 25th, 2003 at 05:10 AM. |
|
#3
|
|||
|
|||
|
thank you
Okay thanks for the help, the updated users show correctly now. Although now theother things on the side aren't spanning all the way across.
And I realize that I have many errors in my script, and I didn't want to pass any ", but thanks for telling me anyway. I probably just wrote it sort of unclearly. And about the cookies, thank you, I had been wondering about that... but now I have to figure out how to do it properly, it's probably not too hard. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > tables and php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|