Page 1 of 1

Important mysql_fetch_field Question

Posted: Mon Jan 30, 2006 7:08 am
by kaisellgren
I am using mysql_fetch_field and I receive word "Object" if I echo it. I need to know the information in the field not anything else. How can I get the information?
My script for making tables and so on:

Code: Select all

$link = mysql_connect("$host","$username","$password") or die("Could not connect to MySQL."); 
mysql_select_db("$database") or die("Could not connect to database.");
mysql_query("DROP TABLE config");
mysql_query("CREATE TABLE config (adminname TEXT,adminpass TEXT)");
mysql_query("INSERT INTO config (adminname,adminpass) VALUES ('$adminusername','$adminpassword','$adminemail')");
And how can I receive the information from field "adminname" and "adminpass" and "adminemail" ? They all are in the "config" table.

Posted: Mon Jan 30, 2006 8:31 am
by JayBird
reading the manual might help ya...if not post the code where you are trying to show the query result