[PHP] mysql_num_rows()

2002-06-07 Thread William_dw -- Sqlcoders
Hiya!, Does anyone know whether mysql_num_rows is zero or one based? that is, if I have 5 records will mysql_num_rows() return 4 or 5? Thanks in advance!, Dw. (I did check the php.net and MySQL manual for mysql_num_rows, php.net dosent say and MySQL only gives a one line description, which is

[PHP] Emulating a class destructor

2002-06-11 Thread William_dw -- Sqlcoders
Hi there!, I'm trying to emulate a class destructor, according to the PHP documentation I can emulate this by using a call to register_shutdown_function(), containing the function to be called upon shutdown. While this apparently works outside a class, I want to use it inside a class, in other

[PHP] How to get contents of symbol table?

2002-05-22 Thread William_dw -- Sqlcoders
Hi there!, I'm looking for a way to loop through the symbol table. In other words I want to be able to loop through every variable defined in the local scope. I've looked through the manual, but either I couldn't find a function which can do this or I wasn't looking in the right place. If