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

Saved object not being read from sd card
Specify scope with in xml free configuration
Delete one part of the String
How to parse a DocumentFragment with with the Java standard DOM API
Mule ESB Create map payload
Document comparison software
Android finish error
Guice + Jersey: Add all resources and providers without bind to Jersey Servlet
Why am I getting unreported Exception?
Object's life cycle in a WS call
Getting JButtons to refresh labels during each cycle of loop
Application path in Weblogic server
Java web application stalls at slow MySQL queries
What mem cache implementation will take the least amount of effort to build
c3p0 ComboPooledDataSource report largest pool size?
How to set position of objects in JFrame?

Categories

HOME
twitter
amazon-ec2
oracle11g
google-api-php-client
json.net
relative-path
maude-system
vifm
metatrader4
volttron
handsontable
modx-revolution
orchardcms
windows-server-2012
dosgi
ghc
seaborn
normalizr
excel-vba-mac
textfield
one-hot-encoding
jasonette
tibco-mdm
captiveportal
microsoft-r
android-widget
javacv
pepper
su
kannel
bootstrap-material-design
ejabberd-module
webkitspeechrecognition
objectanimator
primitive
nouislider
binary-data
phonegap
create-table
code-contracts
y86
cloud-code
ios5
devextreme
restlet
dartium
libraries
starteam
ssjs
particles.js
ncalc
segment
dotcover
filepicker
dandelion
datastax-startup
powercli
worker-thread
namecoin
mcafee
bind9
objective-c-swift-bridge
log4c
connect-by
lua-5.1
actionbardrawertoggle
hover-over
associative-array
ford-fulkerson
jmeter-maven-plugin
spidermonkey
fouc
libressl
jqgrid-formatter
rgeo
web-controls
p2
python-green
coldbox
tt-news
codeigniter-routing
hyprlinkr
back-stack
pushbackinputstream
yui-compressor
ocunit
angularjs-controller
itmstransporter
frameset
venn-diagram
bubble-chart
php-parser
pydot
external-accessory
self-extracting
propagation
asp.net-profiles
perfect-hash
mediarss
zune
django-notification
rtml

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