php - is it possible to use * in query for $stmt->prepare($query)? -
i know might noob question. still newbie in php specially in using mysqli.
is possible use * in query $stmt->prepare() , using bind_result()? example have select 50 columns in 1 table conditions parameter cause if type 50 columns take time. in scenario how can result?
$stmt->prepare("select * table col1 = ? , col2=? , col3=? , col4=?") $stmt->bind_param("ssss",$col1, $col2, $col3, $col4) $stmt->execute()
thanks. appreciate help.
yes, of course.
use $res = $stmt->get_result()
followed familiar $row = $res->fetch_assoc()
stuff
however, newbie, indeed strictly advised choose pdo on mysqli.
Comments
Post a Comment