vorl
02-01-2008, 03:54 AM
Hi
Here is the code:
$result = mysql_query( "SELECT * FROM events" ) ;
$meta = mysql_fetch_field($result, 2);
$testdata = $meta->name;
echo "The field name is: <b>" . $testdata . "</b>";
$first = mysql_query( "SHOW FULL COLUMNS FROM events LIKE '".$testdata."'");
$second = mysql_fetch_array($first);
echo "The comment in the field is: <b>" . $second[Comment] . "</b>";
The problem which I am having is the last line where its supposed to return the contents of the column 'Comment'.
I think the problem (but not 100% sure) has to do with the following line, and thats why it isnt displaying the Comment:
$first = mysql_query( "SHOW FULL COLUMNS FROM events LIKE '".$testdata."'");
Any advise is greatly appreciated! :)
Here is the code:
$result = mysql_query( "SELECT * FROM events" ) ;
$meta = mysql_fetch_field($result, 2);
$testdata = $meta->name;
echo "The field name is: <b>" . $testdata . "</b>";
$first = mysql_query( "SHOW FULL COLUMNS FROM events LIKE '".$testdata."'");
$second = mysql_fetch_array($first);
echo "The comment in the field is: <b>" . $second[Comment] . "</b>";
The problem which I am having is the last line where its supposed to return the contents of the column 'Comment'.
I think the problem (but not 100% sure) has to do with the following line, and thats why it isnt displaying the Comment:
$first = mysql_query( "SHOW FULL COLUMNS FROM events LIKE '".$testdata."'");
Any advise is greatly appreciated! :)