java


Parameter index out of range despite having made sure I did everything else right


Ok, I want to preface. I have searched through multiple people having this issue and none of that seems to be my problem.
String Statement = "INSERT INTO DAISYEMPLOYEE"
+ "(SSN, FNAME, MINIT, LNAME, ADDRESS, DATEHIRED, PAY, PHONE#) VALUES "
+ "( ?, ?, ?, ?, ?, ?, ?, ?)";
JOptionPane.showMessageDialog(frame, Statement, "Daisy Imports", 3);
try {
PreparedStatement PST = connection.prepareStatement(Statement);
PST.setInt(1, 11);
PST.setString(2, "NAME");
PST.setString(3, "a");
PST.setString(4, "asdasd");
PST.setString(5, "123 hobo street");
PST.setString(6, "2017-05-06 ");
PST.setString(7, "8.5");
PST.setString(8, "1231231234");
PST.execute();
} catch (SQLException ex) {
JOptionPane.showMessageDialog(frame, "PUERILE CAPTION REMOVED", "Daisy Imports", 3);
Logger.getLogger(Game.class.getName()).log(Level.SEVERE, null, ex);
} // try
I totally have parameters, I have no idea whats happening.

Related Links

Java Metadata Extractor causes java.lang.NoClassDefFoundError
How to find a substring/word if it lies at the boundary of bounded buffer
How to code a function that randomly selects a quote from an array? - Android Java
Using Maven to create Javadocs as a zip file instead of a jar file
Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 0 at xxx while calculating an average of integer numbers
How to import existing XML files as requests to SoapUI API in JAVA?
Java next line print.writer
How do i Dump contents of Vector into a new file?
Confusion regarding subinterfaces and superinterfaces
Why is it necessary to annotate mapped Date fields #Temporal in javax.persistence?
Char array updating
Easy way to store MP3 file-path to variable and read from another class?
For loops cannot find symbol Netbeans
Ideas for a method to obtain a cell which has been randomly generated in another class
Collision Detection between a moving and non-moving object
Eclipse doesnt generate MainActivity,Layout xml and the launcer icon which is under drawable-ldpi folder

Categories

HOME
jdo
kde
stock
grep
xmpp
maven-3
rubygems
google-project-tango
angular-ui-bootstrap
bs4
esper
node-pdfkit
volttron
row
msp430
dynamics-crm-online
caml
netflix
angular-ui
tokenize
functional-testing
selectedindexchanged
url-scheme
info.plist
nhapi
strncpy
elasticsearch-ruby
msys2
code-contracts
subset-sum
xmlreader
geopositioning
bitbucket-pipelines
event-driven
dynamics-crm-2013
occlusion
streamsets
awt
powershell-dsc
modelmapper
angular2-meteor
angular-resource
network-flow
hibernate-tools
rails-routing
dandelion
android-cursor
dtexec
cubes
time-and-attendance
login-control
player
jwplayer7
actionbardrawertoggle
qgraphicsview
packagist
yaws
associative-array
javax.sound.midi
endeca-workbench
nsight
asp.net-web-api-odata
rdl
terminfo
oracle-warehouse-builder
srs
monomac
eclipse-memory-analyzer
selected
enter
buildr
eclipse-templates
coredump
mirah
asp.net-profiles
compiler-specific
xetex

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App