For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > April 2007 > Re: [PHP-DB] mysqli_prepare









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] mysqli_prepare
Onochie Anyanetu

2007-04-09, 6:57 pm

yes, just be sure to follow the syntax on using INSERT

...... UPDATE db_table SET column = 'item' . . . . where ID = 'what you are
updating' . .

i still work in 4.2, so can some vertify this works for 5.0 as well?

On 4/9/07, Craig Hoffman <choffman@eclimb.net> wrote:
>
> Can you use the mysqli_prepare function to UPDATE MySQL or is it
> just limited to an INSERT statement?
>
> For example.
> $stmt = mysqli_prepare($db, 'UPDATE proj_overview SET proj_id = ?,
> proj_name = ?, ...
>
> and so on...
> mysqli_stmt_bind_para...
> mysqli_stmt_execute...
>
> Thanks,
> CH
> ____________________________________
> Craig Hoffman
> IM / iChat: m0untaind0g
> ____________________________________
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com