|  | Posted by Michael Fesser on 08/29/07 09:25 
..oO(Jerry Stuckle)
 >sugapablo wrote:
 >> Here's my code:
 >>
 >> <?php
 >> $mysqli = new mysqli("localhost", "****", "********", "***********");
 >>
 >> $idNum = "1030";
 >>
 >> $sql = "select id,email from users where id > ?;";
 >> $stmt = $mysqli->prepare($sql);
 >> $stmt->bind_param('s', $idNum);
 >> $stmt->execute();
 >> [...]
 >
 >What happens if you try
 >
 >$idNum = 1030;
 >
 >?
 
 And the first parameter of bind_param() should be 'i' then.
 
 Micha
  Navigation: [Reply to this message] |