Reply to Re: Total result php mysql

Your name:

Reply:


Posted by zen on 09/16/05 17:25

Great but not what I required.

You cannot put a 'while' command into a string to make it one item from say
5.
SQL on the other hand will only display the record once so you only have to
repeat the command 5 times then combile the lot.

$word1 = mysql_fetch_assoc($rsproductkey);
$word2 = mysql_fetch_assoc($rsproductkey);
$word3 = mysql_fetch_assoc($rsproductkey);
$word4 = mysql_fetch_assoc($rsproductkey);
$word5 = mysql_fetch_assoc($rsproductkey);
$wr = ($word1['Product_name']." ".$word2['Product_name']."
".$word3['Product_name']." ".$word4['Product_name']."
".$word5['Product_name']);

then you can do a remove duplicate words from the $wr using something like
a array_flip() .

Took me time but it work.

Regards Nik
http://www.ads4links.com

"Kirsten" <Kirsten.Schulte@gmx.net> wrote in message
news:1126870481.602295.21940@g44g2000cwa.googlegroups.com...
> Upps,
>
> error in the system, wouldn't work.
>
> try:
>
> $string .= str_replace($row[0], 'this is the ', ' ');
>
> blame on me for the first suggestion. ;-)
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация