[PHP] MySQL empty row
Until some time I could make a new empty line in mysql with this query: INSERT INTO `.$_SESSION['type'].`() VALUES () where $_SESSION['type'] was the table I wanted to use but now I get an error and since I use DB I just get this error INSERT INTO `authors`() VALUES () *Warning*: Cannot modify header information - headers already sent by (output started at /usr/local/ftp/faps/public_html/pubDB/edit/newline.php:9) in */usr/local/ftp/faps/public_html/pubDB/edit/newline.php* on line *19 *This is the file ?php include ./checkuser.php; include ../modules/connect.php; array_pop($_REQUEST); $query = INSERT INTO `.$_SESSION['type'].`() VALUES (); $res = $db-query($query); //Always check that result is not an error if (DB::isError($res)) { die($res-getMessage()); } include ../modules/disconnect.php; header (Location: ./edit.php?.$_SESSION['stayurl']); ? Howcome does line nine: $res = $db-query($query); write anything?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: MySQL empty row
GamblerZG wrote: Please replace die($res-getMessage()) with user_error($res-getMessage(), E_USER_ERROR) and then post the output. If I uncomment this it seems to work. Not error or anything in the code. Truely don't know what the error is. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: MySQL empty row
GamblerZG wrote: Please replace die($res-getMessage()) with user_error($res-getMessage(), E_USER_ERROR) and then post the output. on one table it still does not work: this is the error: DB Error: constraint violation -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] .htaccess config
Hi I got a simple problem: I need to have allow_url_fopen on for a certain directory and so I wanted to control it by .htaccess file. now I can control other php_flags like register_globals in this directory (so apache allows the Override) but I just simple can't get the following line to work: php_flag allow_url_fopen on any help is appreciated neo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fax Gateway
I have to setup a HTML-Form to Fax Gateway and I am looking for some way to do this in PHP. Generally have the Fax-Modem and nothing more right now. Does anybody have any experiancs with this? Thanks for any help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MySQL to OO
John Holmes wrote: From: Neo Theone [EMAIL PROTECTED] I am searching for a MySQl to Object abstraction class. I am thinking something like WebObjects does in Java (it is just a part) in PHP. I had one for Ruby but now I have to use a DB in MySQL and such a class would make it alot easier. Are you talking about accessing MySQL using an OO interface or receiving results/schema/etc in an OO format? I am looking for a absolute transparent interface to access each field a s a object. So if i would have a table like this: tablename: namedtable -- | id | foo | bar | -- | 01 | aaa | uuu | -- | 02 | bbb | mmm | -- I could access it like this: namedtable-return() would give me the whole table namedtable-id(all) would give me [01, 02] namedtable-id(01) would give me [foo=aaa, bar=uuu] something like this -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MySQL to OO
I am searching for a MySQl to Object abstraction class. I am thinking something like WebObjects does in Java (it is just a part) in PHP. I had one for Ruby but now I have to use a DB in MySQL and such a class would make it alot easier. Does anybody know such a project or something similar? I just want to avoid writing to much SQL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php