I thought that PreparedStatement would help to solve my probleem, but it didnt.
I have a content management systeem(CMS) where i can put my text in a textarea. In mysql the "layout" is preserved.
But when i retriev the text and show it in my website the layout is gone.
I can not set <br> or...
Is it possible to get data from database with PreparedStatement instead of inserting?
My probleem is when i store an aricle into the database with some "layout"( like free space between two paragraphs), by retrieving it, the "layout" is gone. The two paragraph is attached to each other withoud...
Hi,
I want to upload a file to my server, it works very well.
But i use HardCoded Path like ("c:\\temp\\file\\").
I want to know how to set the path for saving like any other programm. Like Office Word, where you can save a file by chosing a Destination.
What will be changes that i have to...
No no, I juist want that users put their image url in the prompt window, and the same url should be visible after clickin OK in a textarea. No image showing, nothing else.
I have been able to do this:
<input type="button" onClick="set()" value="Open window">
function set(){
name =...
Hi,
I am developing a website where i need a javascript script, but i never worked with javascript. I hope someone can help me.
After clicking a button, a prompt window should be visible.
In this prompt window , one should put the URL of an image, juist like it works in some Forums. AFter...
Hi,
Well, i got this code from Java mail , i dont know how it works. There they didn't say anything about reading the file. though i had my doubts about it.
Can someone tell me how to do this, in jsp???
I have found a code in java , but not sure how to use it in combine with jsp and html...
Hi,
How can store korean characters into mine Mysql databse and retrieve it back, without any losse of characters.
I mean when i am storing an aricle in non European language, and later retrive it on my website, it shows very strage characters or somtime this ?????? ???? ????.
Can anyone...
Hi,
I am trying to send mail with attachment, but i cant do this.
Below is my code, Can someone tell me what is wrong with it??
simple.jsp:
<%
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.quicknet.nl");
Session s = Session.getInstance(props,null)...
I am storing www.google.com into my database. When i am asking it back from DB, i get www.google.com on my page.
By clicking on this link , i get http://localhost:8080/www.google.com.
Www.google.com is attached behind the localhost.
How can i avoid this????
This is what i can see on my page:
Google
www.google.com
But clicking on this link results:
http://localhost:8080/www.google.com
And this is not right....
...not able to do so.
Below is my code.
What is wrong with this????
SMTP = smtp.quicknet.nl
Code::::::
<%@ page language="java" import="java.util.*, javax.mail.*, javax.mail.internet.*"%>
<%
// create the HTML email message to send
String htmlText = "";
htmlText +=...
...problem?
Here is the code , i use:
<%
db.DBConnectie data = new db.DBConnectie("afghan","fahim","fahim");
data.connect();
String query = "SELECT * FROM LINK Where linkid =2";
ResultSet columns = data.selectQuery(query);
while(columns.next()) {
String linkids = columns.getString("linkid")...
Hi,
I have found the probleem.
Instead of select * , i did select nieuwsid, that is why i could not show the news articles on my page.
Thank you siberian for your help,
siberian Thank you for your reply. I want to show the 3 newst news on my page. When i store news in mine database(Mysql), i want to show juist three newst news articles not all of them but juist the newst three articles.
By doing what i am doing, i cant do it. Can anyone tell me how to do...
hi,
I want to get the last three ids that are inserted into the database, where ids are auto-increment.
When i try to do this:
SELECT MAX(nieuwsid) AS nieuwsid FROM nieuws;
i get the highst id.
To get the last three ids, i want to store this highst id in a variable. Later i want to do this...
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.