Original Message-
From: Ron Piggott [mailto:[EMAIL PROTECTED]
Sent: Monday, September 01, 2008 2:09 AM
To: PHP DB
Subject: [PHP-DB] Adding 's
I have the following saved in one column of a mySQL table:
Like
Overcome
Vested
Embrace
It is an anagram for the word Love
I am querying the tab
$loopsize = mysql_num_rows();
$anagram = "";
for ($i = 0; $i < $loopsize; $i++) {
$cell = mysql_result($anagram_result, $i, "anagram");
$anagram .= "" . $cell{0} . "" . substr($cell, 1) . "\n";
}
On Mon, Sep 1, 2008 at 2:09 AM, Ron Piggott <[EMAIL PROTECTED]> wrote:
> I have the following save
Check this function out for the line breaks:
http://us.php.net/nl2br
Not quite sure what to do for the bold thing.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Ron Piggott wrote:
> I have the following saved in one column of a mySQL table:
>
> Like
> Over
I have the following saved in one column of a mySQL table:
Like
Overcome
Vested
Embrace
It is an anagram for the word Love
I am querying the table to display the results. I am needing help with
the formatting part of this.
I have this line of code:
$anagram=mysql_result($anagram_result,$i,"an