Re: [PHP-DB] can u help me in PHP

2007-01-30 Thread Sergiu Voicu
It seems that there is no mysqli extension for PHP4. Read this thread at MySQL forums: http://forums.mysql.com/read.php?52,83780,83780#msg-83780 Rana wrote: Hello I read ur reply on newsreader abou mysqli and if i can use it in PHP4 My question is where can i find a link to download t

Re: [PHP-DB] What effects MySQL connection's character set

2007-01-30 Thread Niel Archer
Hi Chris. Thanks for this. That page didn't actually help, but one of the follow ups did. Apparently, despite being setup as UTF-8 throughout the Db, tables, and columns. The returned data still can default to Latin1. I've forced my test server to return UTF-8 (I hope) and am trying it out t

Re: [PHP-DB] How to tell if a field type is auto_increment

2007-01-30 Thread John L. Creed
Here's what I did wih your help: function isAutoinc($table,$fieldname){ // returns 0 if false, 1 if true $breturn = 0; $sql = "SHOW COLUMNS FROM $table LIKE '$fieldname%' "; $result = mysql_query($sql) or die("Couldn't open table"); // check column Extra $row = mysql_fetch_array( $result

Re: [PHP-DB] What effects MySQL connection's character set

2007-01-30 Thread Niel Archer
Hi > Thanks for this. That page didn't actually help, but one of the follow > ups did. Apparently, despite being setup as UTF-8 throughout the Db, > tables, and columns. The returned data still can default to Latin1. > I've forced my test server to return UTF-8 (I hope) and am trying it > ou

Re: [PHP-DB] How to tell if a field type is auto_increment

2007-01-30 Thread Niel Archer
Hi John, I'd suggest searching within the Extra field instead of testing for the value explicitly, as this field can theoretically hold several extra pieces of information. Niel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php