burn1337
-
Posts
98 -
Joined
-
Last visited
Never
Posts posted by burn1337
-
-
hhmm I don't see how you say tables are evil... personaly I don't care for divs, I do my layouts/templates with tables as well. for me its easier the layout is much more customizable or at least with my experiace so far it has been.
Anyways if your using divs then I would suggest using css to control your input sizes, instead of % try just the size property within the input tags instead of the width property... It's worked for me before, it could help you.
-
PFMaBiiSmAd I tried that I get
Welcome,
Notice: Undefined variable: SESSION in /usr/local/apache2/htdocs/sessions.php on line 39
Monday September 1, 2008, 10:41:46 am
Check
it is set6
after loggin in, recently it stopped displaying the UserName.
after going to the next page I get this.
Notice: Undefined index: UserName in /usr/local/apache2/htdocs/sessions.php on line 51
Notice: Undefined index: Password in /usr/local/apache2/htdocs/sessions.php on line 52
Welcome,
Notice: Undefined variable: SESSION in /usr/local/apache2/htdocs/sessions.php on line 39
Monday September 1, 2008, 10:43:25 am
it is not setUid is null
now all the code that is being used has already been posted anything else I may be missing? is my syntax screwed up? is my placement off? what am I doing wrong... btw when I open my cookie with epiphany, I get Expires : end of current session. I have as you can see set the expire time to 90 but it's still not working... could this be something a little more deeper then just php? or is it a picnic error?
-
well I was kinda thinkin that too, but if I do it will still be used in my include file, Ill try it in the morning, btw you should check out my site, and if your interested I could use some one to assist me in getting the site done lol. anyways off to never never land night
-
my bad I am tired... I told you.. ok no more delay I'm off to la la and never never land
-
ok this sucks so far no suggestions, only questions lol ok anyway going to bed I hope someone could help me on this.. please
-
hhmm something like that, well I wouldn't know never tired it, but if I ever decide to try it ill let you know how it goes lol
-
it is a column you need to use mysql_fetch_assoc() to use the column names. mysql_fetch_arrar() produces an array with only number reference, assoc will do both named, and string.
-
idk im to tired to think anymore sorry man, but I would suggest maybe not doing them all at once... idk to tired... goodnight sorry I wasn't any help .. thanks project fear for correcting me lol
-
ok now I see what your triying to do sorry I'm very tired and my brain is half dead atm lol. uhh I would suggest doing a query that joins the two tables, if thats how you are trying to get it...
if your wanting to get the one that are priced then change confirmed to 1?? or what it would be if it is priced..
and you would get the same result without the while your not using any conditions so you should lol.
or you could even try what projectfear said that would work better then what I said originally lmao
-
Your welcome, OOP in my eyes is much easier then flow control, but can also be more complicated as well.
and I dont know .
-
I would use && instead of ||, and I would make the string for your query a variable, plus I would take a look at some of your syntax (most particularly your spacing) other then that I don't exactly see why its not working, although that could very well be, because of the fact that I'm very tired
-
$array3 = new array([0] => $all[], [1] => $notpriced[]);
thats what I would suggest then a for statement or something of the sort
-
ok what that is, is object oriented programming
the object becomes the variable $Variable
to call a function within the object (e.g. SendText())
$Variable = new TextTest; (The Variable becomes the object)
$Variable->SendText($Text); now you have called the function from the object
-
question, how many servers, or other computers/devices use the internet on your network? I have experiacned a few problems simular to that, although when I looked at my traffic I found no traffic, no outbound, no inbound. Shortly after I accendtly unplugged my server and my iptables stopped working, I still got the same thing but even still I find no outbound or inbound. Although I have found that yum was updating so seeing as your on fedora I would suggest checking that. Once I finally got yum to stop, then it stopped.
-
I'm using epiphany, I only get oversized input fields.. I would suggest using % instead of px for your width, % is more versital and dyhnamic could help ya a bit.
-
I aggree with toplay, sqlinjection is very possible, I would also make sure nothing seems to be out of place on your server in the first place, even without sql injection could still be a sign of intrusion.
-
from looking at your code, the only think I can suggest is not re-iterating the date() funcion so much... easy buffer overflow right there.. just a thought anyway
-
How I would work around it
$text = 'select * from Winery';
$query = mysql_query($text);
$row = mysql_fetch_array($query);
echo $row[0];
echo $row[1];
echo $row[2];
-
The way I have it set up is so all I have is one include this way I just have to include the one file. It works, except for when I go to a new page (same include and all) then it just clears the data. I've even tried without the session_write_close() and still nothing. btw this isn't incorporated into my actual site, I'm trying to work out the bugs first lol
-
I would say something like Although not sure it would work just off the top of my head
each refered person a new row, or
-
well because the function $Sessions->SessionStart() is this:
function SessionStart() { //ini_set('session.use_cookies', 1); //ini_set('session.use_only_cookies', 1); ini_set('session.name', 'NewRealm'); session_cache_expire(90); session_save_path('/usr/local/apache2/Session'); session_start(); }
-
Ok so I'm tyring to make a login script and the problem is that everytime I log in, only the page that logs me in has my session variables, everytime I try to go to a different page the variables are being lost
$Session = new Sessions; $Session->SessionStart(); if (!isset($_SESSION['Uid']) && !isset($_SESSION['UserName'])) { $login = new Login; $login->LoginBox(); } else { $login = new Login; $login->LoggedInBox(); }
function Login() { $UserName = $_POST['UserName']; $Password = $_POST['Password']; $Pass = sha1($Password); $query = new Query; $query->GetUser($UserName, $Pass); session_write_close(); }
function GetUser($UserName, $Password) { $Check = "select * from Users where userName='$UserName' and password='$Password'"; $Temp = mysql_query($Check) or die("Sorry you must have the wrong UserName and/or Password"); $Row = mysql_fetch_array($Temp); $_SESSION['Uid'] = $Row[0]; $_SESSION['UserName'] = $Row[1]; session_write_close(); }
Any suggestions?
[SOLVED] help with php variables
in PHP Coding Help
Posted
Hmm personally I haven't had any experiance with php untill this year, and oop came extremely simplistic for me. Easier to use then typical flow control for me, But also I would suggest php.net, they have an entire web-based manual for php including flow control, oop, as well as help with fronted database functions and objects.