You are here: Re: Total result php mysql « PHP Programming Language « IT news, forums, messages
Re: Total result php mysql

Posted by Kirsten on 09/16/05 14:27

Hi,

i'm not sure what really your problem.
You need a for or while to walk thru your result set.

Your result could be produced like this for example:

========================================
$first = true;
while($row = mysql_fetch_row($result)){
if($first){
$string = $row[0];
$first = false;
} else {
$string .= strstr($row[0], 'this is the');
}
}

echo $string;
=========================================

This is not been tested, and it is only one way to get the result, my
be there also better way's, but for prompt scripting thats my solution.

-Kirsten

 

Navigation:

[Reply to this 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

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