Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Acmlmboard support?. |
Acmlm's Board - I2 Archive - Acmlmboard support? - Serious question - i hope | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
Sukotto Mini Octorok Level: 7 Posts: 13/19 EXP: 1139 For next: 309 Since: 04-27-05 From: SLU Dorms Since last post: 10 hours Last activity: 10 hours |
| ||
Hey guys i'm new to hacking acmlm and i'm working on a php that writes a html table using a table i made in mysql that holds some data. i can put 1 cell on 1 row but the moment when i got to put another cell in like < tr> < td>< /td> < td>< /td> < /tr> it will turn the entire screen white and not process anything i've looked up the "foreach(array(1,2,c,h) as $celltype) { $cell="< td class='tbl tdbg$celltype font"; $celln="tccell$celltype"; $$celln =$cell." center'"; ${$celln.s} =$cell."s center'"; ${$celln.t} =$cell."t center'"; ${$celln.l} =$cell."'"; ${$celln.r} =$cell." right'"; ${$celln.ls}=$cell."s'"; ${$celln.lt}=$cell."t'"; ${$celln.rs}=$cell."s right'"; ${$celln.rt}=$cell."t right'"; }" and i'm having trouble grasping how this code works I have the feeling if i figured out how this code worked then i could figure out how the $tccellhs $tccell1 $tccell2l and all those work. i know this might seem kinda newbish but i am new to acmlm coding so if you wanna flame me go ahead but i think its a semi decent question to ask |
|||
Acmlm Torosu heh Level: 51 Posts: 1126/1173 EXP: 981994 For next: 31944 Since: 03-15-04 From: Somewhere that isn't outside of Sherbrooke, Québec, Canada Since last post: 39 days Last activity: 3 hours |
| ||
This sets all the tccell + 1,2,c,h + s,t,l,r,ls,lt,rs,rt variables, they all create table cells (< $tccellhs, or $(tccell + h + s) - $celltype = "h" - $cell = "< - $celln = "tccellh" - $$celln -> $tccellh = "< - ${$celln.s} -> $tccellhs = "< The first character after "tccell" in the variable name sets the background (1, 2, category or header) ... then the rest (if any) sets the text align (left/right, center by default) and font size (small/tiny, normal by default). This is mostly there to avoid repeating code as much as possible (< |
|||
Sukotto Mini Octorok Level: 7 Posts: 18/19 EXP: 1139 For next: 309 Since: 04-27-05 From: SLU Dorms Since last post: 10 hours Last activity: 10 hours |
| ||
Thank you, your help is most appreciated |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Acmlmboard support? - Serious question - i hope | | | |