Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

Pa Help naman Php+mysql convert to mysqli

padayaw

Recruit
Basic Member
Messages
6
Reaction score
0
Points
16
:help:

Sino po dito magaling.. pa convert sana sa php mysqli eto po source code.

$cnx = mysql_connect("localhost","marmar","elsa123") or die ("Cannt connect" . mysql_error() );
mysql_select_db("mardb", $cnx);
$sql = mysql_query("SELECT * FROM bukpage") or die ("Cannt connect" . mysql_error() );
while ($row = mysql_fetch_array($sql)) {
$row_array[] = $row['images'];
}
mysql_close($cnx);
$rand_images = $row_array[rand(0, count($row_array) - 1)];


Thanks po.
 
paltan mo lang yung mga wordn na mysql na word ng mysqli sir
 
yan din sabi sa akin. ayaw po sir. error po.
 
$cnx = new mysqli("localhost", "marmar", "elsa123", "mardb");
if ($mysqli->connect_errno) {
echo "Cannt connect" . $mysqli->connect_error;
}
$sql = $cnx->query("SELECT * FROM bukpage");
while ($row = mysqli_fetch_array($sql)) {
$row_array[] = $row['images'];
}
mysqli_close($cnx);
$rand_images = $row_array[rand(0, count($row_array) - 1)];
 
Back
Top Bottom