0

my 1 old project which is on <5.2 php, the new version> 7.1. php I want to change to 1 You all need help.

function queryRunner($query){
 $result=mysql_query($query) OR die(mysql_error());
 return $result;
}

function countRow($result){

  return mysql_num_rows($result);
}

function rowRetriever($result){

  return mysql_fetch_assoc($result);
}

function rowRetrieverObject($result){

  return mysql_fetch_object($result);
} 

function findLastInsertId(){

  return mysql_insert_id();
}

function simplifySpecialCharacter($data){

  return mysql_real_escape_string($data);
}

When I change mysql to mysqli an error occurs in the code

Shivendra Kr. Sahu
  • 753
  • 1
  • 5
  • 12

0 Answers0