Hi Libaax,
port# is not nescessary since I use the default.
First I declared result just once, but then I got the error that it was not found.
I'll try your advice.
Thnx,
Menno.
Thanks for your responses vbkris and libaax,
the line:
String Countresultaat = resultaat.getString("count(messageNr)");
is not a problem, it delivers the data from the MySQL-database fine, I can use it in the same page perfectly.
The declaration of <%! String resultaat; %> works...
Hi,
COUNT FROM messages (or COUNT messageNr FROM messages) won't work since I use MySQL. (I tried it anyway).
When I use the following code in another file it works fine:
{
Class.forName("com.mysql.jdbc.Driver");
Connection...
Thanks for replying so fast, AR1982!
That was a silly typo :)
Still, when i change CountResultaat to something else (like 'a') it still gives me the same error. It looks like the variable just doesn't come out of the ResultSet. I still get the error (only then with 'a' instead of...
Hi, I have a question regarding Resultsets in JSP.
I have a HTML form that gives 2 variables from textfields to another JSP page, which adds it to the database using the given variables in a query. Now i want the form to also include the messagenumber (this number is the primary key of the table...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.