James Eman

Ranch Hand
+ Follow
since Mar 10, 2013
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by James Eman

So I am trying to display a 2d session array that I use to store the shopping cart for my website. I think I created the 2d array correct then I try to display it and all I get is a white page.

Cart.php(Is to display my shopping cart)

(the pdo works I have used it on many other pages)

scriptcart.php(adds the data of the item clicked to session array)
7 years ago
My program is to make a menu bar in css from a mysql table where the tabe will be stored so the people that have to edit it dont have to look into the code instead they just change settings in MySql workbench. Code below and db details plus css page.

DB details: Vei = Schema
catbar = where menu items will be stored

Catbar setup
ID(AI) Cat(Name of item) Code(page to go to)

CSS Page

I havnt done mutch with PHP before but i have done a bit in java and mysql. Thanks for all your help.
7 years ago
So I have a program that asks questions and then submits the number of correct response to a database(MYSQL). Keeps saying

Here is my code

y is the row the user is located and x is the number of questions they got right.
Any suggestions i'm not the greatest in MySQL yet but i am trying to teach myself.
Ok so thats what I have right in the connect class? But how do I allow the method from the other class to use it? Am I missing something? I'm going to try to read the chapter a few more times but I should have this right?
7 years ago

goes to

I get an error "unreported exception java.SQLException; must be caught or declared to be thrown" how can i solve this I have taken a few basic classes but never got to exceptions.
7 years ago
I believe there the same in bluej
I'm not a the most and advanced user for java or mysql. I'm trying to create a database or my program to submit data from a series of questions but ever time I try some way of connecting to my database. Heres my code and the error follows.

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at Test.main(Test.java:14)
at __SHELL5.run(__SHELL5.java:6)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at bluej.runtime.ExecServer$3.run(ExecServer.java:725)
I have an IFrame that opens a Google doc but when I put a link in the Google doc and its clicked in the iframe it changes the Iframe I want the links in the doc to open in a new windows. is that possible?
Hello im trying to write a small website for a sports club im in and i want to add a news feed the News page. i don't know how and would like it to be simple for the people in-charge of the club who barely know how to turn on there computer to add new posts to the feed. i would prefer not to use word press or anything i was thinking of rss like grab a rss feed from a unpublished blogger site is that do able?
So it should look something like this?

I was looking for a way to check the username and password match is there a better way then to call each row one by one?
i have been looking on the web for a few hours and haven't found a clear answer to my problem. is there a mysql command i can use to get the data from a row and a column like Select row 6 column Usernames. is there a simple command i just have been other looking.
When the applaction downloads a file i want it to go to a temp folder then i want it to unzip it to a different location can that be done (My code below)

8 years ago
i don't even know how to download in java i have tough myself everything i know about java so don't know where to start teaching myself and wasn't sure if zip files and other files had to be different
8 years ago