comparison includes/class.dataaccess.php @ 89:e37ef9a81737 tip

Merge
author Franck Deroche <franck@defr.org>
date Thu, 13 Dec 2018 00:55:42 +0100
parents 249de0d66f8c d49afe579884
children
comparison
equal deleted inserted replaced
88:1f2410012dbc 89:e37ef9a81737
45 return $num_rows; 45 return $num_rows;
46 return 0; 46 return 0;
47 } 47 }
48 48
49 function debugQuery($query, $id=0) { 49 function debugQuery($query, $id=0) {
50 $rv = $this->Query($query, $id); 50 $rv = $this->Query($query, $id);
51 if(mysql_errno() !== 0) 51 if(mysqli_errno($this->link) !== 0)
52 echo("<span class='menu'>\n Query : {$query}<br />\n MySQL Answer : " . mysql_error() . "</span>"); 52 echo("<span class='menu'>\n Query : {$query}<br />\n MySQL Answer : " . mysql_error() . "</span>");
53 return $rv; 53 return $rv;
54 } 54 }
55 55
56 function GetRow($id=0) { 56 function GetRow($id=0) {
57 if(@$row=mysqli_fetch_array($this->results[$id])) { 57 if(@$row=mysqli_fetch_array($this->results[$id])) {
58 return $row; 58 return $row;