if ($stmt = $conn->prepare("SELECT webname, description,weburl,image FROM work where id=:action")) {
// Bind a variable to the parameter as a string.
$stmt->bind_param(':action', $action);
// Execute the statement.
$stmt->execute();
// Get the variables from the query.
$stmt->bind_result($row);
// Fetch the data.
$stmt->fetch();
// Close the prepared statement.
$stmt->close();
Asked
Active
Viewed 17 times
0

u_mulder
- 54,101
- 5
- 48
- 64
-
2Why are you trying to use MySQLi method names on PDO objects... – Jonnix Sep 14 '16 at 08:51
-
`bind_param` is mysqli function. Make sure you know what you're doing here. – u_mulder Sep 14 '16 at 08:51