Search found 22 matches

by drama22
Sat Sep 01, 2012 2:50 pm
Forum: Tutorials
Topic: Register/login
Replies: 14
Views: 3552

Re: Register/login

Solved
by drama22
Tue Aug 28, 2012 5:52 am
Forum: Tutorials
Topic: Register/login
Replies: 14
Views: 3552

Re: Register/login

Solved down !
by drama22
Mon Aug 27, 2012 9:39 am
Forum: Tutorials
Topic: Register/login
Replies: 14
Views: 3552

Re: Register/login

if no one have any idea about this please Delet my thread admin :D
by drama22
Sun Aug 26, 2012 8:29 am
Forum: Tutorials
Topic: Register/login
Replies: 14
Views: 3552

Re: Register/login

i successfully create the login for guest but i had one problem now the welcome session i get Undefined variable: user_data how can i define the variable in function any idea ? or can i echo username data and if its not found i do else echo statement ? i do somthing lik this but i stell get undefien...
by drama22
Fri Aug 24, 2012 4:19 am
Forum: Tutorials
Topic: Register/login
Replies: 14
Views: 3552

Re: Register/login

i make function to allow login for guest from login form but i have an error now the welcome session for guest i get Undefined variable any idea about how to defined it in welcome session this is the welcome session that i use it

welcome
<?php echo $user_data['username']; ?>
by drama22
Thu Aug 23, 2012 1:27 am
Forum: Tutorials
Topic: Register/login
Replies: 14
Views: 3552

Re: Register/login

thanks for replay that not what i need :( i just need login form for guest and in the same time allow them to login .
by drama22
Tue Aug 21, 2012 2:06 am
Forum: Tutorials
Topic: Register/login
Replies: 14
Views: 3552

Re: Register/login

Secret guest login o.O Explain the problem ? i just creat form for guest login and form for userlogin basicly user login needs name in data base to login what iam trying to do is allow the guest login form to also login but i have problem with welcome session :( like if i echo the session of regist...
by drama22
Sun Aug 19, 2012 1:00 am
Forum: Tutorials
Topic: User Profiles [part 02] Fetch_Users() function error.
Replies: 7
Views: 1684

Re: User Profiles [part 02] Fetch_Users() function error.

Djmann1013 wrote:I am still getting the error.
past the code after edit..
by drama22
Sun Aug 19, 2012 12:51 am
Forum: Tutorials
Topic: User Profiles [part 02] Fetch_Users() function error.
Replies: 7
Views: 1684

Re: User Profiles [part 02] Fetch_Users() function error.

Djmann1013 wrote:How do I fix it?
while($row = mysql_fetch_assoc($result))
also you may use fetch_array
by drama22
Sun Aug 19, 2012 12:35 am
Forum: Tutorials
Topic: User Profiles [part 02] Fetch_Users() function error.
Replies: 7
Views: 1684

Re: User Profiles [part 02] Fetch_Users() function error.

Fix this line
while(($row = mysql_fetch_assoc($result)) !== false) {
by drama22
Fri Aug 17, 2012 11:54 pm
Forum: Tutorials
Topic: Register/login
Replies: 14
Views: 3552

Re: Register/login

guys iam lost :( i cant make a secure guest login i would if we have tut about it
by drama22
Thu Jun 14, 2012 3:40 pm
Forum: Tutorials
Topic: Register/login
Replies: 14
Views: 3552

Re: Register/login

Thanks Bro for replay , let me explain more lets say i have visitor and he dont have registered account i want make him able to login as guest without registration and store his name session in database.
by drama22
Thu Jun 14, 2012 1:50 am
Forum: Tutorials
Topic: Register/login
Replies: 14
Views: 3552

Register/login

Hi guy's ,, i follow jacek tut and i finish the register and login and thank you very much jacek for every thing you do to teach us god bless you . i just now need help in somthing maybe easy for you guy's but its still hard to me i want add Guest login function and store it in database any idea abo...
by drama22
Sun Jun 03, 2012 5:15 am
Forum: PHP
Topic: Question about Protect page with session
Replies: 5
Views: 930

Re: Question about Protect page with session

WOW Thankkkkkkks ,,, this is the best forum ever , Thanks for your help guy's :D :D :D
by drama22
Sat Jun 02, 2012 3:14 pm
Forum: PHP
Topic: Question about Protect page with session
Replies: 5
Views: 930

Question about Protect page with session

hello guys , iam trying to protect some pages on my script, i want control on session who can show this page i make somthing but after i check i see that's works with 1 name only i want make it allow to many name here is example to be more clear $pro = $user_data['username']; if ($pro != "drama...
by drama22
Thu May 31, 2012 5:29 am
Forum: Tutorials
Topic: Php register and login
Replies: 11
Views: 3013

Re: Php register and login

If you add echo mysql_error(); under the query that is failing, it usually tells you what's wrong. $total = mysql_query("SELECT COUNT (user_id) FROM `tbl_users` WHERE `username` = '{$user}' AND `password` = '{$pass}'"); echo mysql_error(); return (mysql_result($total, 0) == '1') ? true : ...
by drama22
Thu May 31, 2012 1:58 am
Forum: Tutorials
Topic: Php register and login
Replies: 11
Views: 3013

Re: Php register and login

that is a very crucial piece of code that you need. If you don't have that, you won't show any errors that occur. Just fix the typo. It's spelled errors, not erros. Thxxxxxxxxxxxxxxxxx you got my errors Broo , but now one more problem i get this error in login.php and this is the user.inc.php conte...
by drama22
Wed May 30, 2012 1:50 pm
Forum: Tutorials
Topic: Php register and login
Replies: 11
Views: 3013

Re: Php register and login

jacek wrote:You misspelled errors on this line
if (empty($erros)===false){
That might be causing what ever the error is to be hidden ?
I remove that line

<?php
if (empty($erros) === false){
?>

and the problem is fixed ,, bit this will effect on security or somthing ?
by drama22
Wed May 30, 2012 1:42 pm
Forum: Tutorials
Topic: Php register and login
Replies: 11
Views: 3013

Re: Php register and login

but i still get the same problem nothing happend in page even it didnt show any errors just submit and i get the same page
by drama22
Wed May 30, 2012 1:41 pm
Forum: Tutorials
Topic: Php register and login
Replies: 11
Views: 3013

Re: Php register and login

Temor wrote:that error would probably be
password cannot be empty.
if(empty($_POST['password']) || empty($_POST['repeat_pasword'])){
You missed an S in repeat_password.
aww thanks you got me
by drama22
Wed May 30, 2012 1:39 pm
Forum: Tutorials
Topic: Php register and login
Replies: 11
Views: 3013

Re: Php register and login

thank you for replay, well i remove that line ?