[insert_php]
if ($_SERVER[„REQUEST_METHOD“] == „POST“) {
// collect value of input field
$name = htmlspecialchars($_REQUEST[‚fname‘]);
if (empty($name)) {
echo „Name is empty“;
} else {
$link = mysqli_connect(‚80.136.166.56:3307‘, ‚wordpress‘, ‚g3r4ld093‘, ‚SYN_AUTOULLI‘);
$sql = ‚SELECT Arbeiten FROM ATU_Auftrag WHERE AuftragID=“100511″‚;
$result = mysqli_query($link, $sql);
if(!$link){
die(„File not found“);
echo „NOOOOOOOOOO LINK!“;
}
$firstRun = true;
if (mysqli_num_rows($result) != 0) {
// output data of each row
while($row = mysqli_fetch_assoc($result)) {
$rowCount = mysqli_num_rows($result);
$widthPHP = 856;
$heightPHP = $rowCount * 50;
if($firstRun == true){
$table = ‚
Arbeiten |
---|
‚ . $row[„Arbeiten“] . ‚ |
‚;
echo $table;
mysqli_close($link);
} else {
echo „0 results“;
}
}
}
[/insert_php]