On 23 Aug 01, at 14:30, John Bass wrote:
>
> $query = "SELECT image_link, web_url FROM testdata";
> $result = mysql_query ($query) or die ("Query Failed");
> while ($row = mysql_fetch_object ($result))
> {
> printf ("%s%s %s%s\n", $row->image_link,
> $row->web_url,$row->image_link, $row->web_u
second column should print next record that was returned from the query.
Thanks.
John
>From: "Jeff Lewis" <[EMAIL PROTECTED]>
>Reply-To: "Jeff Lewis" <[EMAIL PROTECTED]>
>To: "John Bass" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
&g
]>
Sent: Thursday, August 23, 2001 11:16 AM
Subject: Re: [PHP] Need help to create HTML table with 2 columns.
> Hi,
>
> Thank you for the email. I tried your code, but first column is printing
> image_link & web_url fields correctly and second column is repeating
values
> of
ROTECTED]>
>Reply-To: "Jeff Lewis" <[EMAIL PROTECTED]>
>To: "John Bass" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>Subject: Re: [PHP] Need help to create HTML table with 2 columns.
>Date: Thu, 23 Aug 2001 10:41:08 -0400
>
>John,
>
>Try t
ho,
John Bass wrote:
> printf ("%s%s %s%s\n", $row->image_link,
^^
You forgot to close the td tag, maybe your browser didnt display the table
because of that.
Markus Bertheau
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mai
John,
Try this:
".$row->image_links."".$row->web_url."
".$row->image_link."".$row->web_url."\n");
}
?>
- Original Message -
From: "John Bass" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thurs
Hi All,
I am trying to generate a table with two columns. Each column should print
2 fields named image_link and web_url. Have spent over week looking
documentations and trying different coding but nothing is working. Any help
will be greatly appreciated.
%s%s %s%s\n", $row->image_link,
7 matches
Mail list logo