Reply to Re: mysqli problem with stmt and binding parameters.

Your name:

Reply:


Posted by Jerry Stuckle on 07/30/07 17:30

sugapablo wrote:
> I have a website that I was moving from another server to mine for
> somebody. This website uses mysqli functions.
>
> mysqli extensions are installed on my Linux server, PHP is 5.1.6 and
> and MySQL is 4.1.22 (both higher than his server).
>
> All seems to work fine, but any statement that uses the bind (i.e.
> placing a ? in the sql statement, and then binding variables to it)
> does not work in my server, only his.
>

"Does not work" is pretty broad. What do you expect to happen? What
actually happens? What error messages do you get?

> Two questions, comparing phpinfo() on both servers, I can't find any
> differences that would cause this problem. Does anyone have any ideas
> on where to look?
>
> And two, does anyone know how I can echo the prepared sql statement so
> I can see what the final product looks like that gets sent to MySQL?
>

No, prepared statements are resources and can't be echo'd.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original 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

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