/    Sign up×
Community /Pin to ProfileBookmark

Table rows problem

I wish to separate the checkboxes into 2 rows, in which 1st row contains 1 to 8 and the second row contains 9 to 15.
How should i make the table tr and td?
Please help.Thanks in advanced.

[CODE]
<?

$aTypes = array(“1”, “2”,”3″,”4″,”5″,”6″,
“7”,”8″,”9″,”10″,”11″,”12″,”13″,”14″,
“15”);

//converting comma separated into array using explode function
$dbTypes= explode(‘,’,$row->types);

foreach ($aTypes as $types) {

if(in_array($types,$dbTypes)) {

echo “<tr><td><input name=”types[]” type=”checkbox” value=”$types” CHECKED> $types &nbsp;&nbsp; </td></tr>”;
} else
{
echo “<tr><td><input name=”types[]” type=”checkbox” value=”$types”> $types &nbsp;&nbsp;</td></tr>”;
}
}
?>

[/CODE]

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@Frank62Jul 27.2011 — I don't know exactly, and with javascript you have to be exact. I would suggest to post this question on the javascript forum.
Copy linkTweet thisAlerts:
@ahfan85authorAug 10.2011 — I don't know exactly, and with javascript you have to be exact. I would suggest to post this question on the javascript forum.[/QUOTE]

solved.Thanks for your reply anyway ^^.
×

Success!

Help @ahfan85 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...