You are here: stub function question (simulating data returned from a db query) « All PHP « IT news, forums, messages
stub function question (simulating data returned from a db query)

Posted by Bit Byte on 10/04/06 11:30

PHP noob here (background in C++/C/Java though)

I want to return dummy data from a stub function, this stub function
should replicate data from a database. Any idea how I can write this
stub function?

i.e. something like this:

function foo (){

}


I want this function to return data that looks like the result of a
database query - i.e. 0 or more rows, with column headers.

PS: The format will be fixed i.e. I know exactly the format of the data
I am expecting (i.e. number of coulmns and column names)

 

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

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