what parameter can be used for this sql statement? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

what parameter can be used for this sql statement?

" $SELECT = "SELECT Name From users Where Name = ? "; $stmt = $conn->prepare($SELECT); $stmt -> bind_param("s",$name); $stmt -> execute();" for the 's', i had seem 'i' and 's' only, how about other that i can use? especially for video and mage that save as blob in database . or is there any note about these statement?

24th Sep 2018, 10:27 AM
freedom
1 Antwort
0
I addition to S(string) and i(integer), there is also d(double) and b(blob). This link might help: http://php.net/manual/en/mysqli-stmt.bind-param.php
18th Dec 2018, 8:53 AM
Roolin
Roolin - avatar