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

How to use my Set/Get methods unto my main class?
android-onOptionsItemSelected method called twice
Breadth First Neo4j tree traversal and TreeNode creation
Not able to run the PJSIP-JNI Wrapper on a standalone java application
Trying to add a JLabel, but it is stuck in the middle of Jframe
Play audio in sequence source from asset - Android
Reading the next line in a text file
How to write an int value to a file?
Failed to sign Mac OS X app
Android studio: debug application on device
How to get xml produced from jax-rs?
Change in windows height in two different browsers
merge equivalent classes using owl API
SSL in websockets in glassfish 4.0 Java EE7
Transpose a NxN matrix
SimpleDateFormat parse returns wrong value

Categories

HOME
twitter
arduino-uno
winforms
jdo
openmp
sd-card
react-router
analysis
paw-app
jxls
sql-server-2016
mvvmcross
onelogin
azure-storage-tables
izpack
floating-action-button
handsontable
spring-tool-suite
phaser
hex-editors
caml
clearcase-ucm
pythonanywhere
viewport
custom-wordpress-pages
autocad-plugin
abi
tar
restful-authentication
sqlcipher
smb
javacv
underflow
spark-jobserver
traffic
large-file-upload
tasklet
srcset
gsoap
catel
webtest
caret
asset-pipeline
gammu
io-redirection
serve
android-fingerprint-api
janrain
estimote
businessworks
segment
xml-documentation
osx-mavericks
azure-application-gateway
winscp-net
svmlight
colorama
snmptrapd
ifs
jspdf-autotable
color-profile
sonarlint-vs
eventkit
objective-c-swift-bridge
parallel-data-warehouse
savon
trash
measures
thrust
google-web-starter-kit
lttng
markojs
superstack
ipconfig
tform
photobucket
cartesian-product
metaclass
django-unittest
ibaction
sniffer
inmobi
npapi
sorl-thumbnail
typekit
xc16
cctv
wordpress-theme-customize
mechanize-ruby
java.nio.file
imdbpy
pyhdf
xsockets.net
mqx
browser-detection
coderush
online-compilation
chrono
asyncfileupload
assembly-loading
blackberry-playbook
mysql-error-1005
sortable-tables
vc90
multi-tier
brewmp
gacutil

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