Results 1 to 5 of 5
Thread: PHP/MySQL Newbie Question.
Nov 12, 2000, 17:40 #1
- Join Date
- Nov 2000
- 0 Post(s)
- 0 Thread(s)
I'm working through the (very good!) PHP/MySQL tutorial on http://www.webmasterbase.com but I'm having some basic trouble extracting the 'ID' field from my rows. The following code:
while($row = mysql_fetch_array($result))
$jokeid = $row["ID"];
$joketext = $row["JokeText"];
echo("<P> $jokeid:$joketext </P>");
Will extract the 'JokeText' but the 'ID' is always blank (yes there is an ID field in the table!)
Can anyone guess at what I'm doing wrong?