
February 26th, 2001, 08:05 PM
|
|
Junior Member
|
|
Join Date: Aug 2000
Posts: 10
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Try this, instead:
if(mysql_num_rows($fagTabell) > 0)
{
while($row=mysql_fetch_array($fagTabell))
print "<a href=\"dato.php?fagkode=$row["fagkode"]\">$row["fagbeskrivelse"]</a><br/>";
}//while
}//if
(you have type row["fagkode"] instead of $row["faqkode"], and you can embebed your php variables in strings)...
Ah! don't forget to print the wml header, when you are writing WAP applications, before print something, just put this in your code:
print("Content-type: text/vnd.wap.wml\r\n\r\n");
this is the standard wap.wml header and will tell that your file is using this protocol...
Happy WAPPy...
|