hey everyone.. I kidda need guidance with my codes.. do you think you can help me?
<html>
<?php
//Step 1 : connect to database
$server = "localhost";
$user = "root";
$password = "";
$db = "mydb";
$conn = mysqli_connect($server,$user,$password,$db)
or die("could not connect to the database!");
echo "successful connected!";
$textname = $_POST['name'];
$textnumber = $_POST['number'];
$textemail_add = $_POST['email_add'];
$textsubject = $_POST['subject'];
$textcomment = $_POST['comment'];
mysql_query("INSERT INTO `mail` VALUES ('$textname', '$textnumber',' $textemail_add', '$textsubject', '$textcomment' )") ;
mysql_select_db("mydb", $con);
echo "Data successfully updated.Thank you very much or your cooperation.";
?>
And here wat the server say,
successful connected!
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\try2.php on line 21
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\try2.php on line 21
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\wamp\www\try2.php on line 23
Data successfully updated.Thank you very much or your cooperation.
What should i do? Need help fast!!
thanx
-bostbomb-
Enter your message below
Sign in or Join us (it's free).