TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-15-2010, 04:49 PM   #1 (permalink)
The Contributor
 
nefus's Avatar
 
Join Date: Nov 2007
Location: Nashville, TN
Posts: 66
Thanks: 20
nefus is on a distinguished road
Help 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?
__________________
I am not a programmer, nor do I play one on tv.
nefus is offline  
Reply With Quote
Old 05-18-2010, 02:44 PM   #2 (permalink)
The Contributor
 
nefus's Avatar
 
Join Date: Nov 2007
Location: Nashville, TN
Posts: 66
Thanks: 20
nefus is on a distinguished road
Default

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.
__________________
I am not a programmer, nor do I play one on tv.
nefus is offline  
Reply With Quote
Old 06-01-2010, 04:20 PM   #3 (permalink)
The Wanderer
 
Join Date: Feb 2010
Posts: 5
Thanks: 0
Aiahoos is on a distinguished road
Default

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'.
Aiahoos is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:59 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design