You are here: Re: Problem with mysqli_stmt_bind_param :: Variables are not Binding! « PHP Programming Language « IT news, forums, messages
Re: Problem with mysqli_stmt_bind_param :: Variables are not Binding!

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация