Re: Inserting Object property in MySQL

2002-01-11 Thread Steve Edberg
THis is more of a PHP issue, but: When PHP evaluates variables in a double-quoted string, it sees your $this (the object reference) and immediately evaluates it (just returning its type - Object). If you want to tell PHP to dereference $this->PNPSES->ses properly, do $query = "INSERT

Inserting Object property in MySQL

2002-01-11 Thread PinkeshP
I've got the following query executing in my php code: $query = "INSERT INTO table1(created,updated,ses) values(now(),now(),'$this->PNPSES->ses')"; MYSQL_QUERY($query); query executes fine, but when I look at the ses column in inserted row it says Object->ses instead of a value. Any ideas