[PHP-DB] Re: Inserting a php file into a mysql database

2005-12-26 Thread El Bekko
Thomas Bonham wrote: Hello, I am trying to insert a php page into a database. I need to know if there is something that I need to do when setting up the table, also is there something to do with the code. Thank You for your help Thomas Use file_get_contents() I'd say... but you'll have th

[PHP-DB] Problems with "no database selected" error with DB.php

2005-12-26 Thread Charlene
I am using a class to do a query. It works fine the first time, but hte next time, I get the "no database selected error. When I use this line: print_r($this->dbh); The following is displayed: db_mysql Object ( [phptype] => mysql [dbsyntax] => mysql [features] => Array ( [limit] => alter

[PHP-DB] Re: [PHP] insert to DB

2005-12-26 Thread John Meyer
On Monday 26 December 2005 6:40 pm, adriano ghezzi wrote: > pls could you point out which instruction should insert record in db > thanks... > > 2005/12/18, Anasta <[EMAIL PROTECTED]>: > > $sql = "UPDATE leaderboard SET Name='$Name', Rating='$Rating' WHERE > > ID=$id"; Um, do you have the option