php request

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
mh i have a problem with the view system from php.

i created a config.php for the connection to ,ysql and that work allright but the read out echo/print not work here my code

Code:
<?php include_once('./config.php'); 

$abfrage = "SELECT * FROM tbl_user WHERE id = '1'";
$ergebnis = mysql_query($abfrage);?>

<h2 align="center"><?php echo $ergebnis ?></h2>

i get no error message or else but my webside is only a clear white page i get not shown what i have in the tbl_user @ id 1 .......one of my fields is username in that case i used "select `username` from tbl_user":

but i have ever a white crap site..

so after i have the value from the sqlreadout in a var how i can show that var on the side ? like echo $result;

i hope you understand what i mean
 

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
ahhhhhhhh damn it i am so ****ing stupid grrrrr i had a wrong db name in the config :( and to find that out i have now need over 4 hours ... i hate php really

forget my posting