Re: [PHP] A prepared statements question

2009-07-21 Thread Shawn McKenzie
Jim Lucas wrote: > Jason Carson wrote: >>> Hello everyone, >>> >>> I am having a problem getting my prepared statements working. Here is my >>> setup... >>> >>> index.php -> authenticate.php -> admin.php >>> >>> 1)index.php has a login form on it so when someone enters their username >>> the fo

Re: [PHP] A prepared statements question

2009-07-14 Thread Jim Lucas
Jason Carson wrote: Hello everyone, I am having a problem getting my prepared statements working. Here is my setup... index.php -> authenticate.php -> admin.php 1)index.php has a login form on it so when someone enters their username the form redirects to another page I call authenticate.p

Re: [PHP] A prepared statements question

2009-07-12 Thread Daniel Brown
2009/7/12 Eddie Drapkin : > > This is just my opinion, of course :) Which is welcome. Preferrably, on the php-db@ list, but welcome nonetheless. ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedica

Re: [PHP] A prepared statements question

2009-07-12 Thread Eddie Drapkin
>  if (   $link = mysqli_connect($hostname, $username, $password, $database) >      && $stmt = mysqli_prepare($link, $q) >      &&         mysqli_stmt_bind_param($stmt, "s", $adminuser) >      &&         mysqli_stmt_execute($stmt) >      &&         mysqli_stmt_store_result($stmt)) >  { >    $count

Re: [PHP] A prepared statements question

2009-07-12 Thread Nisse Engström
On Sun, 12 Jul 2009 15:25:15 -0400 (EDT), "Jason Carson" wrote: > For anyone reading this thread, here is the final code that I used... > > $link = mysqli_connect($hostname, $username, $password, $database); > $stmt = mysqli_prepare($link, "SELECT * FROM administrators WHERE > adminusers=?); > my

Re: [PHP] A prepared statements question

2009-07-12 Thread Jason Carson
> Hello everyone, > > I am having a problem getting my prepared statements working. Here is my > setup... > > index.php -> authenticate.php -> admin.php > > 1)index.php has a login form on it so when someone enters their username > the form redirects to another page I call authenticate.php. > >

Re: [PHP] A prepared statements question

2009-07-12 Thread Zareef Ahmed
On Sun, Jul 12, 2009 at 10:01 AM, Jason Carson wrote: > Hello everyone, > > I am having a problem getting my prepared statements working. Here is my > setup... > >index.php -> authenticate.php -> admin.php > > 1)index.php has a login form on it so when someone enters their username > the form

Re: [PHP] A prepared statements question

2009-07-11 Thread Daniel Brown
[Redirected to PHP-DB: php...@lists.php.net] On Sun, Jul 12, 2009 at 00:31, Jason Carson wrote: > Hello everyone, > > I am having a problem getting my prepared statements working. Here is my > setup... > >    index.php -> authenticate.php -> admin.php > > 1)index.php has a login form on it so

[PHP] A prepared statements question

2009-07-11 Thread Jason Carson
Hello everyone, I am having a problem getting my prepared statements working. Here is my setup... index.php -> authenticate.php -> admin.php 1)index.php has a login form on it so when someone enters their username the form redirects to another page I call authenticate.php. 2)In the authenti