[PHP-DB] getimagesize Mysql class

2004-11-06 Thread Malcolm JC Clark
Hi! When i run the following code, mysql_error() = No Database Selected and mysql_errno() is 1046. After nearly going insane, I realised through trial and error that if i commented out the call to getimagesize() and fed the DB class with some data of my own, it all worked perfectly. I also

[PHP-DB] configuration files

2004-11-11 Thread Malcolm JC Clark
I thought it would be a good idea to use parse_ini_file instead of doing require_once(config.ini). However, what do I do about arrays that i had in my config file, cos parse_ini_file() does not like them. eg: [foods] favFoods = array('this','that','other',) I notice my php.ini file is arranged

RE: [PHP-DB] configuration files

2004-11-11 Thread Malcolm JC Clark
Yeah, maybe i need to reorganise my code a little. Thanks. -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: 11 November 2004 18:20 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] configuration files Malcolm JC Clark wrote: I thought it would

[PHP-DB] Form Mail Script/ Class

2005-02-03 Thread Malcolm JC Clark
I am looking for a good reliable php script/ class to process enquiries. Maybe there is a de facto php script/ class like Matts perl Script Archive? Kind Rgds Malcolm -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] MYSQL IN A PHP LOOP

2005-11-09 Thread Malcolm JC Clark
_______ ___ / __) /__\ ( \/\/ )( _ \ / __) \__ \ /(__)\ )( )(_) )\__ \ (___/(__)(__)(__/\__)(/ (___/ Strategically Applied Web Development Systems Contact: Malcolm JC Clark Tel:0161 408 2883 Mobile: 07779 034 868 This e-mail may contain confidential and/or privileged

[PHP-DB] calling classes

2005-11-11 Thread Malcolm JC Clark
I have a class which extends to include a mysql class. Within the class's functions i have multiple calls (without creating an object like '$instance = new MysqlDb()' ) to the mysql class like this: function doThis(){ $this-query(); $this-selectquery(); do something else here