PHP variables
PHP variables
Out of context: Reply #9
- Started
- Last post
- 12 Responses
- seed0
Sorry I am a PHP noob.
How can I access $e[0]['event_date']; (as mentioned in the prev post) before the while loop? I want to place it before the while loop but the fetch_array hasn't started yet.
while ($e = mysql_fetch_array($sql)) {
echo "$e[event_date]\n";
echo "$e[event_title]\n";
echo "$e[event_desc]\n";
}