tech-x: Mehr oder minder schwieriges Problem mit PHP und MySQL

Beitrag lesen

Nein, leider nicht :,( habs schon probiert :(

ich weiss nur wie man in PHP den inhalt des bekommenen ausgibt:

$query = "SELECT * FROM emails";
    $result = mysql_query($query) or die("Query failed : " . mysql_error());

/* Printing results in HTML */
    while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
        print "\t<tr>\n";
        foreach ($line as $col_value) {
            print "\t\t<td>$col_value</td>\n";
        }
        print "\t</tr>\n";
    }

/* Free resultset */
    mysql_free_result($result);

Und den Quelltext hab ich mir wo kopiert, da weiss ich nich genau wie der funktioniert. :,,(