I have a database named "test" in mysql in my system.
The test database has a table I made.
The name of the table is "table1".
The table1 has two fields.
Field1 is "name".
Field2 is "age".
I put two data in the table.
One is "Tom" and "22".
The other is "Mary" and "20".
I will use next PHP code for database connection.
PHP code1----------------------------------------------------------------------
<?
$dbconn = mysql_connect("default IP", "root", "********");
$status = mysql_select_db("test", $dbconn);
?>
I don't know the above code is correct or not.
In order to check it, I need to bring one of data from the mysql.
(Q) Would you please give me the PHP code that bring one of data(Tom, Mary, 22, or 20)?
For eample, to get the data "May"
PHP code2---------------------------------
echo " the name of the second field"
The PHP code2 doesn't work because it's not correct code, but
it will show you what I intend to do.