![]() |
New Problem - Help is needed Ty in adv!
LOOK DOWN FOR HELPING ME ON A OTHER PROBLEM
PHP Code:
so please tell me whats wrong :S //Code,-No flame please ;)- Code:
CREATE TABLE `users` (LOOK DOWN FOR HELPING ME ON A OTHER PROBLEM |
Where are you getting $id from? And there's nothing going on inside of your while loop so I'm not sure where you're getting the other variables from either, but if $id is an empty value then chances are your query isn't returning any errors, but it's not returning any data either.
-m |
-
Quote:
//delayedinsanity I just want to know why it is not letting me get any of the data from db table users?.. like $sel_table['username'] or $username as a var, Thank you in adv. EDIT: i get bool(false) bool(true) on Code:
var_dump($sel_table);EDIT: LOOK DOWN FOR HELPING ME ON A OTHER PROBLEM |
That's what I'm trying to do as well. ;-) Which is why I was wondering if maybe that was an incomplete code segment and perhaps the problem was located elsewhere, since I can't see anywhere that $id is being defined, and if you're searching for an empty ID, or an ID that doesn't exist in the table, then you're going to get an empty result which would be why $sel_table isn't receiving any data.
-m |
That is the code segment, i didn't code anything else yet because of the fact that the code is not working
EDIT: LOOK DOWN FOR HELPING ME ON A OTHER PROBLEM |
i fixed the problem thank you ;)
New problem look down... EDIT: LOOK DOWN FOR HELPING ME ON A OTHER PROBLEM |
Ok to make it damn easy, echo the $sql variable. I bet we can learn much more from that :)
I go with delayedinsanity, you cannot use variables that don't exist (yet). You first have to create the variables that you want to be used. Both $id and $username don't exist, so they will return NULL. (NULL = basically _nothing_) Edit// Damn too late :( |
So i have a new problem - help!
PHP Code:
no errors but the login do not work :S |
if you see #8216 in the form :S it is the forum that is making that not me :S
here is code on PasteBin.be pastebin if some one wants to take a look at the script in a more clean space, |
Your form might be causing the problem. You need the fields to look something more like
PHP Code:
Might I suggest using CSS to style your forms too? :-D -m |
thank you i don't style my applications before everything is done..
|
so should i take off the $_POST?
|
Quote:
please reform it to, put it in my form # to match my form.. Ty. NVM I FIXED ;) |
FORM EDIT:
PHP Code:
|
Some Thing is still wrong, i know everything should work now but it do not work!
|
When you're using single quotes (') you don't have to escape double quotes (") and visa versa. This isn't how I would do it normally, but to fit with the style of what you're doing;
PHP Code:
-m |
Thank you delayedinsanity for all the help :D
wont forget you ;D EDIT: Fatal error: Call to undefined function form() in line 45 FIXED THAT PROBLEM |
is there any reference on all the errors because i have no idea what that error stands for :S
|
now, i got a new problem,
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '‘ AND password = ‘' at line 1 PHP Code:
PHP Code:
I FIXED THAT PROBLEM |
now i have a new problem i login with right pass and username, it all works sends me to index if the user is logged in but when i try to logout..
it wont logout :S THIS IS ON index: PHP Code:
PHP Code:
PHP Code:
|
| All times are GMT. The time now is 10:39 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0