thank you
thank you that was a big help its grate that you have taken the time to explain it to me and i know understand how it works
Thank you
User Profile
Collapse
-
sql injection prevention
hi im really new to sql and php but i was told that i needed to prevnt mysql injection and i dont really want to get it wrong i have done some reserch and aparently mysql_real_esca pe_string() should prevent it but im not quite sure were to put it if anyone could help me pls do thank you
here are my scripts
login
[code=php]
<?php
include 'dbc.php';
$full_name = mysql_real_esca pe_string($_POS T['email']);... -
-
sorry im relly new to php
heres the fulll code
[code=php]
<?php
session_start() ;
include ('dbc.php');
if ($_POST['Submit'] == 'Register')
{
if (strlen($_POST['email']) < 5)
{
die ("Incorrect email. Please enter valid email address..");
}
if (strcmp($_POST['pass1'],$_POST['pass2']) || empty($_POST['pass1'])...Leave a comment:
-
php folder create
hi
i have created a script that creates a user in a mysql db and i need it to create a folder for that user. the snipit of code that should do this i think is this
mkdir("/var/www/hosts/$full_name");
it is suposed to create a folder called the full name of a user entered into a form
can anyone please tell me what i am doing wrong
p.s i have made sure the perms are correct
No activity results to display
Show More
Leave a comment: