Support php-encoded MySql queries?
-
This is a question about using WPCode to include PHP on WordPress website.
I implement websites in PHP and often use MySql databases and access tables using queries within PHP scripts. For example, this lists all rows in a table (derived from an actual PHP script):
<?php
include("/srv/www/.....") [ [this opens and connects the table]
$query="SELECT * FROM TABLE_NAME; ";
$result=mysqli_query($connect, $query);
while($row=mysqli_fetch_assoc($result)) {
echo $row['ID'];
echo $row[NAME]:
[and additional fields]
}
?>FWIW, this is extracted from a code module of a website running on a Linux server and Apache.
Will this work with WPCode?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.