Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating and inserting data into a PHP and MySQL Database
#7
(01-14-2012, 04:31 PM)Strafeness Wrote: "INSERT INTO Users (Username, Password) //What you what to be inserted.
VALUES (mysql_reaL_escape_string($user), (mysql_reaL_escape_string($pass))");

Really?

PHP Code:
function sanitise($input){
return 
htmlentities(strip_tags(mysql_real_escape_string($input)));

[Image: cooldude.png]

(09-05-2011, 08:36 AM)Orgy Wrote: If you understand what you're doing, you aren't learning anything. ;)
Reply


Messages In This Thread
RE: Creating and inserting data into a PHP and MySQL Database - by ★Cooldude★ - 01-14-2012, 04:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  database problem danjohnson 0 1,172 11-13-2012, 10:56 PM
Last Post: danjohnson
  vb6.0 + mysql Anurag.91 1 1,666 09-08-2012, 04:19 PM
Last Post: spesificrelax
  Database accessing in .NET MikeHenery9 1 1,455 07-14-2012, 06:37 PM
Last Post: 'Snorlax
  VB.NET MySql , Help please booterphhp 2 1,706 03-19-2012, 11:13 AM
Last Post: RainbowDashFTW
  [TUT] Include mySQL into php. MyNameIs940 48 23,136 01-14-2012, 04:45 PM
Last Post: Strafeness

Forum Jump:


Users browsing this thread: 1 Guest(s)