You are here: Re: php function run during MySQL query « All PHP « IT news, forums, messages
Re: php function run during MySQL query

Posted by J.O. Aho on 07/29/06 17:50

MS wrote:
> I need to run a php function within a query (creating a new column) of the
> results of the function so that I can filter on this new column.

You will need to fetch the result to the PHP and there then populate a new
query where you use the results to create your new column.


> But does anybody know what commands - functions etc I need to be looking at?

mysql_fetch_array()
http://www.php.net/manual/en/function.mysql-fetch-array.php

mysql_query()
http://www.php.net/manual/en/function.mysql-query.php



//Aho

 

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

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