Y-STU-K
08-28-2005, 03:12 PM
For my latest project I'm using mysql4.1 and PHP5, so i've decided to use the mysqli function set, I've also recently learned that prepared queries are much better than concatenating SQL strings with the variables inserted.
There are a couple of things I don't fully understand about stmt functons such binding the results. This function presents me with a bit of a problem as I normally use my own objects for db connection and results handling.
mysqli_stmt_bind_result($stmt, $name, $code);
Does anyone know if I HAVE to use the bind_result function or can you use the mysqli_fetch_assoc function? and If not does anyone know how to add the variables dynamically?
There are a couple of things I don't fully understand about stmt functons such binding the results. This function presents me with a bit of a problem as I normally use my own objects for db connection and results handling.
mysqli_stmt_bind_result($stmt, $name, $code);
Does anyone know if I HAVE to use the bind_result function or can you use the mysqli_fetch_assoc function? and If not does anyone know how to add the variables dynamically?