|
Hi guys, im kindah new to php and mysql (have a good understanding of programmin and databases however), anyway seeing how ive never used mysql beforei was using a tutorial to display data from a database on my server, and i followed it and it looks correct, but when i run it on the server it gets errors. I checked the webhosting site and it looks like they are using mysql 3.23 :\... so are the commands im using for newer versions? heres a snippet (the code in red is where its throwing errors). Thanx for ur help guys... (database is setup fine, and has data too just incase u needed to know)
$query="SELECT * FROM Language";
$result=mysql_query($query);
$num=mysql_numrows($result);
$i=0;
while ($i < $num) {
$native=mysql_result($result,$i,"Native");
$english=mysql_result($result,$i,"english");
$image=mysql_result($result,$i,"image");
echo "<b>Native Word:</b> $native<br><b>English Word:</b> $english<br>$image<hr><br>";
$i++;
|