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
1052
August 27, 2022 06:59AM
499
August 27, 2022 10:36AM
536
August 29, 2022 07:33AM
513
August 29, 2022 12:19PM
Re: Workbench 8.0 Utilities - copy as PHP code
552
August 31, 2022 05:20AM
506
August 31, 2022 10:09AM
499
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.