RE: [PHP-DB] Adding 's

2008-09-01 Thread Simcha
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

Re: [PHP-DB] Adding 's

2008-09-01 Thread Evert Lammerts
$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

Re: [PHP-DB] Adding 's

2008-08-31 Thread Micah Gersten
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

[PHP-DB] Adding 's

2008-08-31 Thread Ron Piggott
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