mysql> describe home_plan_mod_user_xref;
+------------+-----------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+-----------+------+-----+---------+----------------+
| id | int(11) | | PRI | NULL | auto_increment |
| cart_guid | char(20) | YES | | NULL | |
| plan_alias | char(10) | YES | | NULL | |
| plan_name | char(100) | YES | | NULL | |
| locked | char(1) | YES | | NULL | |
| version | int(11) | YES | | NULL | |
+------------+-----------+------+-----+---------+----------------+
That table has 6 columns. They can be read like this:
$query = "describe home_plan_mod_user_xref";
$result = MYSQL_QUERY($query);
while (list($x,$y,$z,$a,$b,$c) = @mysql_fetch_row($result)) {
print "$x,$y,$z,$a,$b,$c<br>";
}
which displays this:
id,int(11),,PRI,,auto_increment
cart_guid,char(20),YES,,,
plan_alias,char(10),YES,,,
plan_name,char(100),YES,,,
locked,char(1),YES,,,
version,int(11),YES,,,