Re: [PHP-DB] Scriptproblem

2006-01-24 Thread Balazs Hegedus
Hi, Actually you have an undefined variable called $row which is in this context ($row->Vorname) is an object...but $row has nor content neither type. I think you'd better use arrays...in this way: (according to the PHP manual mysql_db_query() is decrepated) Of course some error handling may c

RE: [PHP-DB] Scriptproblem

2006-01-24 Thread Bastien Koert
You seem to be mixing OO and procedural coding styles...try ,); $result=mysql_db_query("salzert","SELECT * FROM Benutzer WHERE ID=$id"); $row = mysql_fetch_array($result); //get the data into an array echo ''; echo ""; echo " Vorname"; echo ''; echo ""; echo ""; echo " Name"; echo ''; echo "";