MySQL Forums
Forum List  »  Newbie

Re: localhost php sqli
Posted by: Stan Kruger
Date: November 25, 2022 03:49PM

correction, I copied over the wrong if statement, there is no else. It should simply say:

echo "test1";
$conn = mysqli_connect("localhost", $username, $password);
echo "test2";
if ($conn) 
echo "success!";

echo "test3";

Options: ReplyQuote

Written By
November 25, 2022 03:45PM
Re: localhost php sqli
November 25, 2022 03:49PM
November 25, 2022 07:13PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.