Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hello i have problem when i need to convert my project from Mysql to Mysqli

this is the code, can any one help me?

<?PHP 
ob_start();

      require_once("../include/config.php"); //include"../include/config.php";
      require_once("../include/function.php");

define("uid",$_COOKIE['uid']);
define("login",$_COOKIE['login']);
define("type",$_GET['type']); 
 
 $QuerySelectU = mysqli_query("SELECT * FROM user WHERE u_id = '".uid."' ");
 $FetchObjectU = mysqli_fetch_object($QuerySelectU);
 
#============================[USER INFO]======================#
//es5raj elbyanat mn 8a3det elbyanat 3$an y6l3o bl user info
define("u_id",$FetchObjectU->u_id);
define("u_name",$FetchObjectU->u_name);
define("u_email",$FetchObjectU->u_email);


What I have tried:

convert my project from Mysql to Mysqli
Posted
Comments
Sergey Alexandrovich Kryukov 8-Feb-16 18:59pm    
What's the use of "What I have tried" section, if you don't write any relevant content in it?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900