Hi Julia, yes, there are several ways!
$link = mysql_connect("$link", "username", "password");
mysql_select_db("yourDBName") or die("Error " . mysql_errno() . " : " . mysql_error()");
$tableName = "myTable"; # Your table name goes here
$query = "select * from $tableName";
$res = @mysql_query( $query);
$numFields = mysql_num_fields( $res);
for ($i=0; $i < $numFields; $i++)
{
print "<b>Name = </b><i>" . mysql_field_name( $res, $i) . "</i><br>";
print "<b>Length = </b><i>" . mysql_field_len( $res, $i) . "</i><br>";
print "<b>Type = </b><i>" . mysql_field_type( $res, $i) . "</i><br>";
print "<b>Flags = </b><i>" . mysql_field_Flags( $res, $i) . "</i><br>";
print "<hr><br>";
}
Hope that it helped.
PS:Take care of your notes! 😃