Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
Thread Tools
Old 08-20-2006, 11:34 PM   #1 (permalink)
Registered User
 
sebthib55's Avatar
 
Join Date: Jul 2006
Location: Ontario. Canada
Posts: 27
OS: Windows XP


Send a message via MSN to sebthib55
Limit Number Of Cells (<td>)

I have a script using PHP... The only problem is I cannot limit the number of cells one beside each other. This script displays avatars. Sadly, if you have 8 avatars, you get 8 cells one beside each other. That is very ugly and ruins the page, since you have to scroll. How can I limit the number to, lets say, 5 cells per row.
Thanks Seb...

Heres my code:
PHP Code:
//start hidden avatars
$hiddenavycount=run_query("SELECT * FROM phpqa_hid_avs WHERE username='$exist[1]' AND type='hidden' ORDER BY avatar ASC");
$hiddenavycount2=mysql_num_rows($hiddenavycount);

if(
$hiddenavycount2 >=1){
run_query("SELECT * FROM phpqa_hid_avs WHERE name=$exist[1]");
echo 
"<hr>
<br>Hidden Avatars:"
;
echo 
"<p><table width='30%' cellpadding='5' cellspacing='1' border='0'>";
echo 
"<form action='Arcade.php?action=settings&p=avatar' method='POST'>";
while (
$b mysql_fetch_array($hiddenavycount)) {
$avatar $b['avatar'];


echo 
"<td><center><img src='hidavs/$avatar.gif' border=0></a><br>$avatar<br>[<input type='radio' name='remoteavatar' value='hidavs/$avatar.gif'>]<a href=\"javascript:document.getElementsByName('remoteavatar')[$x].checked='checked';void(0);\"></td>";
}
echo
"</table>";
echo 
"<br><br><input type=submit name='submit' value='Select'></form>";
}
//end hidden avatars 
THANKS!
sebthib55 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Sponsored Links
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 01:42 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82