The information coming back seems to be only the first character of each column in the first row and populating the table with 20 rows of the same information (1 char)
The table currently has 3 rows of data
I guess when u said
The answer is in the code....
PHP Code:
/ Return result array /
$dbarray = mysql_fetch_array($result);
return $dbarray;
I still don't know the answer, i know its an array, but is this a multidimensional array returning multiple rows
This is all the important code maybe it will help
<!-- Shows Table -->
<table width="495" border="1" >
<tr>
<td>Type</td>
<td>Time</td>
<td>Artist</td>
<td>Genre</td>
<td>Location</td>
</tr>
<?
$req_shows = $database->getShows(date);
foreach($req_shows as $id=>$data)
{
echo '<tr><td>'.$data['type'].'</td>
<td>'.$data['time'].'</td>
<td>'.$data['artistid'].'</td>
<td>'.$data['genre'].'</td>
<td>'.$data['location'].'</td></tr>';
}
?>
</table>
// getShows Function
function getShows($date){
$q = "SELECT FROM ".TBL_MUSIC_SHOWS." WHERE date = '$date'";
$result = mysql_query($q, $this->connection);
/ Error occurred/
if(!$result || (mysql_numrows($result) < 1)){
return NULL;
}
/ Return result array */
$dbassoc = mysql_fetch_assoc($result);
return $dbassoc;
}
I know its something something small or stupid, my lack of experience in PHP and not having coded for awhile, but I can't seem to progress past this point. Thanks in advance