$servername = "localhost";
$username = "madhuri_abc";
$password = "happy123";
$dbname = "madhuri_789";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?>
this is my code it was workin in local host but not working in real time . Guys pls hepl me im begineer in php
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 10, 2015, 12:53 AM EST
Jithil JohnRank #2,791 · 506 reputationPosted Dec 10, 2015, 12:57 AM EST
Raja TRank #685 · 3.5K reputationPosted Dec 10, 2015, 1:01 AM EST
Hema Sundar40 reputationPosted May 12, 2016, 2:07 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts