Click here to Skip to main content
16,012,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello dear friends:
I wrote this code, I was wondering if you want to make a bet if I should apply to acknowledge how do I connect?
The code:
Java
Class.forName("com.mysql.jdbc.Driver").newInstance  ();
    String url="jdbc:mysql://localhost:3306/dbcn?user=root&password=";
    Connection con= DriverManager.getConnection(url);

For example in php:

PHP
if ($resault)
echo "successful";
Posted
Comments
TorstenH. 17-Oct-12 15:06pm    
??? Is this a Java problem or a PHP problem? And what is the problem? No connection to SQL-Database?
DalliaF 8-Mar-13 20:47pm    
then??? what are you trying to do??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900