Search found 3 matches

by chakytori
Thu Jan 09, 2014 11:46 am
Forum: PHP - Code
Topic: php script error 3 tables per row the first only shows 2
Replies: 4
Views: 751

Re: php script error 3 tables per row the first only shows 2

Finally i did it, code:

Code: Select all

$i = 0;

while ($row = mysql_fetch_array($result)) :	$i ++;

    if($i==4) {

        echo "</tr><tr>";
        $i = 1;
    }
by chakytori
Thu Jan 09, 2014 2:34 am
Forum: PHP - Code
Topic: php script error 3 tables per row the first only shows 2
Replies: 4
Views: 751

Re: php script error 3 tables per row the first only shows 2

I need to select all the data on the database to show the results, selecting only 3 of them would not do the trick, thanks for the reply!
by chakytori
Thu Jan 09, 2014 12:58 am
Forum: PHP - Code
Topic: php script error 3 tables per row the first only shows 2
Replies: 4
Views: 751

php script error 3 tables per row the first only shows 2

Hi, am having trouble with a script to put 3 fields in a row it only shows 2 in the first row and then it shows 3 as it suppose to, the code is: <table><tr> <?php mysql_connect("localhost", "user","password") or die ("error"); mysql_select_db("database&qu...