RE: [PHP-WIN] Problem with php and MySQL: inserting strings into database

2010-04-22 Thread Warren Vail
You have just done two things that make your site vulnerable to hacks. Register globals means that someone can load a copy of your form to their machine, modify it to include variables that you use internally like $user_type = "admin" (or whatever) and post their form to your site, and even though

[PHP-WIN] Problem with php and MySQL: inserting strings into database

2010-04-22 Thread Alexander Schunk
Hello, i have a problem with php and mysql when inserting strings into a database. I have the following syntax: $sqlinsert = "INSERT INTO werte ('benutzername', 'passwort', 'name', 'vorname', 'Geburtsdatum', 'strasse', 'plz', 'ort', 'email') VALUES('$_POST['benutzername']', '$_POST['passwort']',

Re: [PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-22 Thread Jacob Kruger
p://www.php.net/unsub.php __ Information from ESET NOD32 Antivirus, version of virus signature database 5051 (20100422) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature da

Re: [PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-22 Thread James Crow
On 04/14/2010 08:48 PM, Jacob Kruger wrote: Thanks. Will be honest, and while have played around with PHP etc., have never really done much with it in terms of going into production as such anyway, so, yes, will need to learn/figure out how to do things the best way, etc. Stay well Jacob K