DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = Java Eclipse Parallel loops question? - iTechForums
Login
Search   Moderators Wanted: If you're interested please send your portfolio to info[at]itechforums.com
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 3
Members:
Number of Users Online:
Welcome to our newest member,
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-10-2009, 06:30 AM
natlang natlang is offline
Junior Member
 
Join Date: Feb 2009
Posts: 1
Default

Instead of printing temp, you want to print name[temp].

Also, your name[] array currently has just one big string as an element. It should be split up into 6 strings separated by commas.

And the age[] array has 7 elements, one too many.

When looping through an array, you should start with index 0 instead of 1.

I might have missed something, but hopefully that gets you on the right track.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
 


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Question regarding for loops.? Jefffan24 MySQL 0 10-24-2009 01:14 PM
Java Eclipse Arrays Question 10 points for Best Answer? John U Java, Java Servlets & JSP 0 02-17-2009 11:40 PM
how to execute parallel queries in oracle using java? rahul Java, Java Servlets & JSP 0 07-27-2008 11:20 AM
how do i initialize a parallel array in java? PsycCute Java, Java Servlets & JSP 0 06-14-2008 01:16 PM
Question About JavaScript Loops? Dan H JavaScript 0 05-06-2008 08:52 PM

Your Ad Here

All times are GMT. The time now is 08:09 AM.