Important mysql_fetch_field Question
Posted: Mon Jan 30, 2006 7:08 am
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:
And how can I receive the information from field "adminname" and "adminpass" and "adminemail" ? They all are in the "config" table.
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')");