hi,
i'm trying to output some results from a mysql query but i cant output 2 of the fields
when i echo the sql i get
SELECT * FROM sf_stories
ORDER BY type
desc
and the fields in my table are
id, mem_id, series, cert, type, notes
when i run the following function in a loop $cert and $type do not display anything, however $row['id'] and $title do.
<?php
function get_story_entires($row, $rows, $cur) {
$get_entries_rtn = "";
$title = $row['series'];
$cert = $row['cert'];
$cert = format(1,0,1,1, $cert);
$type = format(1,0,1,1, $type);
$type = $row['type'];
$title = format(1,0,1,1, $title);
$get_entries_rtn .= "<a href=\"?go=book&id=".$row['id']."\" class=\"bread\">".$title."</a>";
echo $cert." ".$type;
if ($cur < $rows) {
$get_entries_rtn .= "<br>";
}
return $get_entries_rtn;
}
?>
the only thing i can think of is that the field types are enum(cert field), and set(type field), however i have other tables which contain enums and sets.
so in the end the output is just
Series
please could someone give me some insight?
thanks, Jon