Hi,
I posted before but the help did not yield any success, sorry but
thanks.
Any one else help?
In message [EMAIL PROTECTED], Mark Worsdall
[EMAIL PROTECTED] writes
Hi,
I am trying to read the field types (as well as 1 row of data and the
field names), but I cannot seem to manage it. Any
In message [EMAIL PROTECTED], [EMAIL PROTECTED] writes
$sth-{TYPE} returns a reference to an array of types.
$types = $sth-{TYPE}
if ($$type[0] = Mysql::FIELD_TYPE_STRING)
(I don't know about the Mysql::FIELD_TYPE_STRING, but $$type[0] is the
type of the first field.)
When I do this:-
my
"MW" == Mark Worsdall [EMAIL PROTECTED] writes:
MW When I do this:-
MW my $types = $sth-{TYPE};
MW #
MW if ($$types[0] = Mysql::FIELD_TYPE_STRING) {
MW print "Type is a SRINGBR";
MW }
Perhaps you mean
if ($$types[0] == Mysql::FIELD_TYPE_STRING)
you are doing an assignment, not a