How to run the bind_param() statement in PHP?

后端 未结 3 816
执念已碎
执念已碎 2020-12-01 19:20

I\'m trying to make the following code work but I can\'t reach the execute() line.

$mysqli = $this->C         


        
3条回答
  •  自闭症患者
    2020-12-01 19:37

    here it is just a simple explaination
    declare a variable to be bind

        $var="email";
    $mysqli = $this->ConnectLowPrivileges();
    echo 'Connected
    '; $var="email"; $stmt = $mysqli->prepare("SELECT name, lastname FROM tablename WHERE idStudent=?" LIMIT=1); echo 'Prepared and binding parameters
    '; $stmt->bindparam(1,$var);

提交回复
热议问题