Transaction in PHP Mysql

citas en linea hospital san francisco ibague This is how easily you can implement tractions in mysqli and PHP. $link = mysqli_connect(‘localhost’,’root’,”,’test’); // Check connection if (mysqli_connect_errno()) { die(‘error’); } mysqli_autocommit($link, FALSE); //disable autocommit $query=”insert into tb1 (username,pwd) values(‘pp’,’sdsd’)”; $queryres=mysqli_query($link, $query); if(!$queryres) { echo “error first query”;…

follow url

enter site Continue reading

here

Pagination in single Query

Retail forex traders qualifications What people normally do in the code? Example: //query to count total records $result = mysqli_query($conn,”SELECT COUNT(*) total FROM test”); //getting count if($result) { $totalRows=mysqli_num_rows($result); if($totalRows==1) { $resultData=mysqli_fetch_assoc($result); $total=$resultData[‘total’]; //total count in a variable } else{ echo “No rows found”;…

http://yuktung.com.my/esnew/719

enter Continue reading

recherche fille au pair angleterre
Page 2 of 212