Is it possible to use *
in query for $stmt->prepare()
and using bind_result()
?
For example I have to select 50 columns in 1 table with conditions as parameter, and if I type all 50 columns it will take time.
So in this scenario how can I get the result?
$stmt->prepare("Select * from table where col1 = ? and col2=? and col3=? and col4=?")
$stmt->bind_param("ssss",$col1, $col2, $col3, $col4)
$stmt->execute()