Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
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
Posted on 06-14-05 04:59 AM Link | Quote
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
Posted on 06-14-05 08:32 AM Link | Quote
This sets all the tccell + 1,2,c,h + s,t,l,r,ls,lt,rs,rt variables, they all create table cells (<td>) but with different backgrounds and font settings ... for example:

$tccellhs, or $(tccell + h + s)
- $celltype = "h"
- $cell = "<td class='tbl tdbgh font"
- $celln = "tccellh"
- $$celln -> $tccellh = "<td class='tbl tdbgh font center'"
- ${$celln.s} -> $tccellhs = "<td class='tbl tdbgh fonts center'"

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 (<td class=... etc>) when making tables, even just setting all the variables would be a lot of repetitive code if I didn't use foreach and $$
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
Posted on 06-14-05 05:36 PM Link | Quote
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 | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.003 seconds.