Re: Workbench 8.0 Utilities - copy as PHP code
Hi Peter,
when copying as PHP code from the tools -> Utilities menu and pasting the subsequent copy into an editor you get something along the lines of :-
$query = "SELECT * FROM mydb.table";
if ($stmt = $con->prepare($query)) {
$stmt->execute();
$stmt->bind_result($field1, $field2);
while ($stmt->fetch()) {
//printf("%s, %s\n", $field1, $field2);
}
$stmt->close();
}
The $con, $query $field etc variables must be defined somewhere - so is this editable within the workbench config files somewhere and if so where?
Phil
Subject
Views
Written By
Posted
511
August 27, 2022 06:59AM
238
August 27, 2022 10:36AM
214
August 29, 2022 07:33AM
240
August 29, 2022 12:19PM
Re: Workbench 8.0 Utilities - copy as PHP code
240
August 31, 2022 05:20AM
212
August 31, 2022 10:09AM
235
September 01, 2022 04:29AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.