getting error while connecting to database server
<pre><code>11-02 12:42:12.298: E/JSON(572): Warning:  mysql_connect() [&lt;a href='function.mysql-connect'&gt;function.mysql-connect&lt;/a&gt;]: Access denied for user 'demoapps_lootput'@'localhost' (using password: YES) in &lt;b&gt;/home/demoapps/public_html/lootput/android_login_api/include/DB_Connect.php&lt;/b&gt; on line &lt;b&gt;18&lt;/b&gt;&lt;br /&gt;
11-02 12:42:12.298: E/JSON(572): Warning:  mysql_select_db() [&lt;a href='function.mysql-select-db'&gt;function.mysql-select-db&lt;/a&gt;]: Access denied for user 'demoapps'@'localhost' (using password: NO) in &lt;b&gt;/home/demoapps/public_html/lootput/android_login_api/include/DB_Connect.php&lt;/b&gt; on line &lt;b&gt;20&lt;/b&gt;&lt;br /&gt;
11-02 12:42:12.298: E/JSON(572): Warning:  mysql_select_db() [&lt;a href='function.mysql-select-db'&gt;function.mysql-select-db&lt;/a&gt;]: A link to the server could not be established in/home/demoapps/public_html/lootput/android_login_api/include/DB_Connect.php on line 
11-02 12:42:12.298: E/JSON(572): Warning:  mysql_query() [&lt;a href='function.mysql-query'&gt;function.mysql-query&lt;/a&gt;]: Access denied for user 'demoapps'@'localhost' (using password: NO) in /home/demoapps/public_html/lootput/android_login_api/include/DB_Functions.php on line
11-02 12:42:12.298: E/JSON(572): Warning:  mysql_query() [&lt;a href='function.mysql-query'&gt;function.mysql-query]: A link to the server could not be established in /home/demoapps/public_html/lootput/android_login_api/include/DB_Functions.php on line
11-02 12:42:12.298: E/JSON(572): Warning:  mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/demoapps/public_html/lootput/android_login_api/include/DB_Functions.php on line 
11-02 12:42:12.298: E/JSON(572): Warning:  mysql_query() [&lt;a href='function.mysql-query'&gt;function.mysql-query&lt;/a&gt;]: Access denied for user 'demoapps'@'localhost' (using password: NO) in /home/demoapps/public_html/lootput/android_login_api/include/DB_Functions.php on line
11-02 12:42:12.298: E/JSON(572): Warning:  mysql_query() [&lt;a href='function.mysql-query'&gt;function.mysql-query&lt;/a&gt;]: A link to the server could not be established in /home/demoapps/public_html/lootput/android_login_api/include/DB_Functions.php on line 
11-02 12:42:12.298: E/JSON(572): "tag":"register","success":0,"error":1,"error_msg":"Error occured in Registartion"}
11-02 12:42:12.317: E/JSON Parser(572): Error parsing data org.json.JSONException: Value &lt;br of type java.lang.String cannot be converted to JSONObject
11-02 12:42:12.337: E/AndroidRuntime(572): FATAL EXCEPTION: main
11-02 12:42:12.337: E/AndroidRuntime(572): java.lang.NullPointerException
11-02 12:42:12.337: E/AndroidRuntime(572):  at com.example.androidhive.RegisterActivity$1.onClick(RegisterActivity.java:64)
11-02 12:42:12.337: E/AndroidRuntime(572):at android.view.View.performClick(View.java:3480)
11-02 12:42:12.337: E/AndroidRuntime(572):  at android.view.View$PerformClick.run(View.java:13983)
11-02 12:42:12.337: E/AndroidRuntime(572):  at android.os.Handler.handleCallback(Handler.java:605)
11-02 12:42:12.337: E/AndroidRuntime(572):  at android.os.Handler.dispatchMessage(Handler.java:92)
11-02 12:42:12.337: E/AndroidRuntime(572): at android.os.Looper.loop(Looper.java:137)
11-02 12:42:12.337: E/AndroidRuntime(572): at android.app.ActivityThread.main(ActivityThread.java:4340)
11-02 12:42:12.337: E/AndroidRuntime(572):  at java.lang.reflect.Method.invokeNative(Native Method)
11-02 12:42:12.337: E/AndroidRuntime(572):  at java.lang.reflect.Method.invoke(Method.java:511)
11-02 12:42:12.337: E/AndroidRuntime(572):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
11-02 12:42:12.337: E/AndroidRuntime(572):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
11-02 12:42:12.337: E/AndroidRuntime(572):  at dalvik.system.NativeStart.main(Native Method)
</code></pre>
