Dear firnds,
I want to upload my php Forms and database...I am using i have my login and pwd.... I uploaded Survey project Php files and database.please,check my conn.php file code is below


$conn=new mysqli($server,$username,$password,$db);

echo "Connection not established";


please, suggest me..

Recommended Answers

All 9 Replies

I'm assuming you removed the password for this post and it is being included in the actual config.
The only advice I can give is to double check what you should be passing in. In particular the db name and server. Are you sure it shouldn't be localhost or include a port number?

i put db name the name which is online Mysqladmin database name.that is mydbphp and online server is ,

Server version: 5.5.37-35.0-log
Server: via TCP/IP
User: mydbphp@

error is when i online tthe page:
"Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'mydbphp@'@'' (using password: YES) in /home/content/62/10830362/html/test/conn.php on line 7"
yes i put my password there.

Access denied for user at least means you are connecting to the server. You're getting denied due to either the user name or the password. Have you tried just

Drop the host part. That might help. Although you create a user in mysql specifying the host it normally isn't part of the login user name.

Try changing your host to localhost or

yes it works... i put username=mydbphp..

Dear gabrielcastillo !
i am not on local host i want to put my application online....

dear friend,

reveive data from previous form but when i want to insert email in "atab"
it shows only "error".
please, guide me ....

please, check this code below,

            include "conn1.php";

               if(isset($_GET['submit']) && isset($_GET['q'])){


               $sqlu="UPDATE atab
                WHERE Qid=$hid";
               if ($result){
                   echo("user has voted");}
               else {
                 echo("Error") ;





it shows only "error".email can not be inserted in atab.
please, guide me ....

I checked only Numarical data can be updated but charecter can not Updated
what is problem there?

hello anybody can help meee. plzzzzzzzzzzzzzzz

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.