TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   mysqli_stmt_execute (http://www.talkphp.com/absolute-beginners/5412-mysqli_stmt_execute.html)

nefus 05-15-2010 04:49 PM

mysqli_stmt_execute
 
So I am trying to learn some new(to me) techniques with mysqli. My goal is to learn how to do many to many with php and mysql.

I've never used execute commands and they seem new to me. Why do I have to use the mysqli_prepare() before using execute? Do I have to mysqli_stmt_fetch() too? I'm kind of fuzzy on this stuff to be honest.

Does anyone have any examples how to use these properly in a procedural style?

nefus 05-18-2010 02:44 PM

Lucky for me I figured this stuff out over the weekend on my own. Still... there is very little info out there excepting the php.net web site. Lots of stuff on the basic method but not much else.

Has this site dried up? Normally you guys would have posted a couple of responses even by now.

Aiahoos 06-01-2010 04:20 PM

As I remember from php tutorial there may be additional fields on table 'X', which means that the database update routine will have to deal with more than simply choosing between an insert or a delete.
A more complicated version is where table 'X' can contain multiple occurrences for each combination of 'a_id' and 'b_id'.


All times are GMT. The time now is 07:02 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0