Hey, ich habe mir mal hier etwas zusammen gebastelt und eine frage :
nun habe ich die 2 codes die ich verbinden will so ungefähr :
so das ich die sachen ausgeben kann die ich möchte nur totaler bullshit was ich mache kann mir bitte jemand helfen `?
PHP Code:
<?php
$con = mysql_connect("localhost", "root", "122234") or die('Could not connect to database');
mysql_select_db("Status") or die('Could not select database');
$result = mysql_query("SELECT * FROM `Status1` ");
if($result){
while ($row = mysql_fetch_array($result, MYSQL_NUM)){
echo $row[0] . ";" . $row[1] . ";" . $row[2] . ";" . $row[3] . ";" . $row[4] . ";" . $row[5] . ";" . $row[6] . ";" . $row[7] . ";" . $row[8] . ";" . $row[9] . ";" . $row[10] ;
}
}else{
echo "<center>Error<br>" . mysql_error() . "</center>";
}
mysql_close($con);
?>
PHP Code:
<html>
<header>
<font face="Arial Black" color="#AEEEEE">Test</font>
</html>
PHP Code:
<?php
$con = mysql_connect("localhost", "root", "122234") or die('Could not connect to database');
mysql_select_db("Status") or die('Could not select database');
$result = mysql_query("SELECT * FROM `Status1` ");
if($result){
while ($row = mysql_fetch_array($result, MYSQL_NUM)){
}else{
echo "<center>Error<br>" . mysql_error() . "</center>";
}
mysql_close($con);
?>
<html>
<header>
<font face="Arial Black" color="#AEEEEE">$row[7]</font>
</html>