[PHP] Odd error after upgrading from Php4 to Php5

2006-11-28 Thread Ian Barnes
Hi, We recently upgraded our primary webserver to php 5 from php4 and we are now getting the following errors on the site: *Catchable fatal error*: Object of class stdClass could not be converted to string in /home/www/somesite/somfile.php on line *199 *Around that area in the code is some

Re: [PHP] Odd error after upgrading from Php4 to Php5

2006-11-28 Thread Ian Barnes
Hi, $sql1 = UPDATE members SET $pass WHERE id = '$editid'; Thats whats on 199. ON line 198 i have: $pass = $_POST['pass']; Thanks, Ian On 11/29/06, Jochem Maas [EMAIL PROTECTED] wrote: Ian Barnes wrote: Hi, We recently upgraded our primary webserver to php 5 from php4 and we are now

[PHP] Database Class Help

2005-11-30 Thread Ian Barnes
Hi, We have a database class that we want to use to connect to multiple databases at the same time using different variables. Here is part of the db class: class db { var $dbh = ; var $q = ; function db($db_host, $db_user, $db_pass, $db_name) { $this-dbh = @mysql_pconnect($db_host,

RE: [PHP] Help with Class

2005-09-08 Thread Ian Barnes
Hi Thomas, Thanks for the help. That didn't work though ... Its now set to be $SDK = new sdk; Nothing :( -Original Message- From: Thomas [mailto:[EMAIL PROTECTED] Sent: 08 September 2005 09:08 AM To: 'Ian Barnes' Subject: RE: [PHP] Help with Class Sorry for not explaining ... [code

RE: [PHP] Help with Class

2005-09-08 Thread Ian Barnes
: Ryan Creaser [mailto:[EMAIL PROTECTED] Sent: 09 September 2005 12:34 AM To: Ian Barnes Cc: PHP General Subject: Re: [PHP] Help with Class Ian Barnes wrote: require_once ( $fetchd['path'].'sdk/ipbsdk_class.inc.php' ); What is the above line doing? It looks

[PHP] Help with Class

2005-09-07 Thread Ian Barnes
Hi, I am writing a site where I need to access multiple classes of the same name located under certain directories. The reason for each directory is because the class under that directory talks only to the files in that directory and cant do multiple (its not my software) I have it so that

RE: [PHP] Help with Class

2005-09-07 Thread Ian Barnes
Hi, Thanks for the help, but none of those worked. Anyone else got any suggestions? Or possibly another way of achieving this ? Cheers Ian _ From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: 07 September 2005 05:47 PM To: Ian Barnes Cc: PHP General Subject: Re: [PHP

RE: [PHP] Help with Class

2005-09-07 Thread Ian Barnes
Hi, Thanks for the help, but none of those worked. Anyone else got any suggestions? Or possibly another way of achieving this ? Cheers Ian _ From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: 07 September 2005 05:47 PM To: Ian Barnes Cc: PHP General Subject: Re: [PHP

[PHP] Mysql Problem

2004-05-28 Thread Ian Barnes
Hi, I am generating a mysql statement and then printing it to a formatted field. Here is my code: $sql=SELECT * from tablename where name in ('Web','HTML','PHP') group by name; $mysql_rslt1 = mysql_query($sql, $mysql_bconn) or die (Could not get data); while ($rec1 = mysql_fetch_array

RE: [PHP] Re: Mysql Problem

2004-05-28 Thread Ian Barnes
Problem Ian Barnes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am generating a mysql statement and then printing it to a formatted field. Here is my code: $sql=SELECT * from tablename where name in ('Web','HTML','PHP') group by name; You are missing the closing quote here

[PHP] Searching a file

2004-05-21 Thread Ian Barnes
Hi, I have a file that looks like this: #gc: Ian eth0,1000,1100,1200,1300,1400 eth1,10,100,200 eth2,3000,3100,3200,3300 Okay, the numbers after the ethx are not static, there can be more and there can be less depending on what the user selects. Now my problem, I have a list of numbers that