RE: [PHP-DB] Scriptproblem

2006-01-24 Thread Bastien Koert
You seem to be mixing OO and procedural coding styles...try ? mysql_connect(localhost,user,password); $result=mysql_db_query(salzert,SELECT * FROM Benutzer WHERE ID=$id); $row = mysql_fetch_array($result); //get the data into an array echo 'input type=text name=id value='; echo $id; echo '';

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) ?php $link = mysql_connect(_host_,