Mysqli_bind

Hey Guys,
I am not able to insert record into the database. Here is my code

function insertUserTeam($user_id,$teamname,$driver1,$driver2,$driver3,$sum){
$userid = (int)$user_id;
$sum1 = (int)$sum;
$link = mysqli_connect(‘localhost’, ‘user’, ‘pwd’,‘dbname’);
if($stmt = mysqli_prepare($link,“Insert into User_Team (User_ID,UTeam_Name,UTeam_Driver1,UTeam_Driver2,UTeam_Driver3,UTeam_Budget,UTeam_Points,UTeam_Susbtitue) VALUES
(?,?,?,?,?,?,‘0’,‘N’)”)){
echo “Hello”;
mysqli_stmt_bind_param($stmt,‘issssi’,$userid,$teamname,$driver1,$driver2,$driver3,$sum1);
mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
echo “Success”;
}
insertUserTeam($user_id,$teamname,$driver1,$driver2,$driver3,$sum);

The page just executes fully.Without any errors…but doesnt insert into the database.
Any help is appreciated thanks.

Sponsor our Newsletter | Privacy Policy | Terms of Service