|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
Problem with a table while coding on PHP I want to make a display of three cell lines. But the second line does not jump after three cells? Here is my code: PHP Code: |
#2
| |||
| |||
Re: Problem with a table while coding on PHP I don't know much about PHP but in my opinion there should be some problem in the below code: PHP Code: |
#3
| |||
| |||
Re: Problem with a table while coding on PHP Yes Baltazar, you are right. It should be PHP Code: PHP Code: But j = 6: 6% 6 ==> 6 / 6 = 1 is 0, it does more. Therefore, when on the second line, it does not jumps. It is useless to have % 6 while you want a % 3!
__________________ Broadband Unlimited Plans |
#4
| |||
| |||
Re: Problem with a table while coding on PHP Thanks for your responses. But I am confused between j%3 == 0 and j/3 = 0? Are they one and the same? |
#5
| |||
| |||
Re: Problem with a table while coding on PHP The mod returns the below result: 1 % 3 = 1 - (3 * 0) = 1 2 % 3 = 2 - (3 * 0) = 2 3 % 3 = 3 - (3 * 1) = 0 4 % 3 = 4 - (3 * 1) = 1 5 % 3 = 5 - (3 * 1) = 2 6 % 3 = 6 - (3 * 2) = 0 Therefore, test $ j % 3 == 0 => 3 equals 0 <=> $ j is a multiple of 3.
__________________ Broadband Unlimited Plans |
![]() |
|
Tags: php, table |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Link a Table to another Table to Drop Down In Main Table | himeshRES | Windows Software | 6 | 11-12-2010 02:01 PM |
Hyper-V Cluster, ARP table problem | warehouse peon | Operating Systems | 5 | 07-04-2010 01:09 AM |
Writing temporary table problem | Jabeena | Software Development | 4 | 13-02-2010 12:20 PM |
Problem with MBR and allocation table | JUSTICE | Operating Systems | 3 | 25-02-2009 11:27 PM |
Problem with C coding | SANDESH49 | Software Development | 2 | 02-09-2008 01:23 PM |