Loop column after 2 results


Posted on 16th Feb 2014 07:03 pm by admin

Hello All.

Here is what I have:

Did you know?Explore Trending and Topic pages for more stories like this.
Client ID Company name Client ID Company name

I then need a script to echo 2 results per row then start a new row.

I've tried many things, but never could get a second row to appear. Each row will have 4 columns.

Here is my code without the "guts" My vars will be $id and $company.

$result = mysql_query("SELECT * FROM client");
if(mysql_num_rows($result) < 1)
{
$results = 'You have 0 clients.';
}
else
{
$results = '';
$results .= '<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">';
$results .= '<tr>';

while($row = mysql_fetch_array($result))
{

}
$results .= '</table>';
}
No comments posted yet

Your Answer:

Login to answer
232 Like 12 Dislike
Previous forums Next forums
Other forums

Can't shake the "Warning: include()" error
I've just uploaded my site to a new server and where I have PHP include tags in my HTML, the browser

same querie, or a new one??
Hi guys,

I'm still working on this drop down list. I've got the actual drop down list to wor

single values into sql field
i have a form which i want the user to able to select multiple answers. But i want the answers to be

Linkage between two scripts
Okay say I have this for a link in a script:

Code: <li><a href="#&q

Table Control
Hi Guru's,

I've created a Module pool program, which contains the Table Control.

mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???

this is the code i got

Pspell with my own dictionary
Hello!
I've tested two cases using pspell functions.
1)
Code: $dictionary_link = pspell_new

Accessing element of object array
Hello

My object looks like this:


Array ( [0] => User Object ( [id] =>

DATEDIFF Question
First time post, and of course it is a help question.

I am using a WP plug-in to display prev

How to limit the calls to an API
Hello, in my simple script I call an api which effectively involves me getting an xml file.

H

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash