This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class con | |
{ | |
public $con; | |
public function __construct(){ | |
$this->con = mysqli_connect('localhost', 'root', '', 'whatsapp'); | |
if($this->con){echo 'Connection <br/>';}else{echo 'Problem Connection <br/>';} | |
if (mysqli_connect_errno()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// هذا الأمر ينجح | |
$dbNew = mysqli_connect('localhost','root','','whatsapp'); | |
$t = mysqli_query($dbNew,$r); | |
if ($t) { | |
echo 'ok'; | |
} else { | |
echo 'no'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class con | |
{ | |
public $con; | |
public function __construct(){ | |
$con = mysqli_connect('localhost', 'root', '', 'whatsapp'); | |
if($con){echo 'Connection <br/>';}else{echo 'Problem Connection <br/>';} |