<?php
$server ="565656";
$Benutzer = "56565";
$Kennwort = "65656";
$verbindung = mysql_connect ($server, $Benutzer, $Kennwort) OR DIE ("Unable
to connect to database");
mysql_select_db("565656") OR DIE ("Unable to connect to database2");
$sql = "SELECT ID FROM tabelle";
$ergebnis = mysql_query($sql);
echo "Dateninhalte der Tabelle Name:\n";
while($row = mysql_fetch_array($ergebnis,MYSQL_ASSOC)){
foreach($row as $elem){
$sql2 = "select * from swuser where ID='$elem' ";
$ergebnis2 = mysql_query($sql2);
$row2 = mysql_fetch_array($ergebnis2);
echo $row2[1]," ";
echo $row2[2]," ";
echo $row2[3]," ";
echo $row2[4]," ";
echo $row2[5]," ";
echo $row2[6]," ";
echo $row2[7]," ";
echo $row2[8]," ";
echo $row2[9]," ";
echo $row2[10]," ";
echo $row2[11]," ";
echo $row2[12]," ";
echo $row2[13]," ";
echo $row2[14]," ";
}
}
?>
$server ="565656";
$Benutzer = "56565";
$Kennwort = "65656";
$verbindung = mysql_connect ($server, $Benutzer, $Kennwort) OR DIE ("Unable
to connect to database");
mysql_select_db("565656") OR DIE ("Unable to connect to database2");
$sql = "SELECT ID FROM tabelle";
$ergebnis = mysql_query($sql);
echo "Dateninhalte der Tabelle Name:\n";
while($row = mysql_fetch_array($ergebnis,MYSQL_ASSOC)){
foreach($row as $elem){
$sql2 = "select * from swuser where ID='$elem' ";
$ergebnis2 = mysql_query($sql2);
$row2 = mysql_fetch_array($ergebnis2);
echo $row2[1]," ";
echo $row2[2]," ";
echo $row2[3]," ";
echo $row2[4]," ";
echo $row2[5]," ";
echo $row2[6]," ";
echo $row2[7]," ";
echo $row2[8]," ";
echo $row2[9]," ";
echo $row2[10]," ";
echo $row2[11]," ";
echo $row2[12]," ";
echo $row2[13]," ";
echo $row2[14]," ";
}
}
?>
Kommentar