Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
MySQL errors? Help :)
Old 04-13-2006, 04:46 PM MySQL errors? Help :)
Junior Talker

Posts: 1
Trades: 0
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++;
Sliammon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-13-2006, 07:10 PM Re: MySQL errors? Help :)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
knowing what the errors are would be a help
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-14-2006, 03:46 AM Re: MySQL errors? Help :)
sacx13's Avatar
Experienced Talker

Posts: 32
Location: Here
Trades: 0
Yes are big difference betwen mysql 3 and 4. But your code is too simple and need to work. Please post the error ...

Regards
Adrian
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
sacx13 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to MySQL errors? Help :)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11329 seconds with 12 queries