
revraz
Members-
Posts
6,911 -
Joined
-
Last visited
Never
Everything posted by revraz
-
I LOL'd for real on that.
-
Question on PHP dynamic navigation (no database used)
revraz replied to Professor_Ape's topic in PHP Coding Help
So is this resolved? -
So did you need help in setting the cookie? Also, you should consider using CSS to get rid of all that formating in your code.
-
Replace your first code with the new code.
-
This what I would try first, to me it just makes it easier to read and follow. Take all that HTML at the top and remove it from the PHP tags. There is no reason to echo all that. Make your PHP Code up top and your HTML form after your PHP Code (in HTML and not inside PHP).
-
I wouldn't say Most users, but I would say a good 20-30% would have their ip address change each time. But I think you missed his point. Even if it doesn't match, the worse case scenario is they have to re-log in. You can skip that part and only require cookies, it's entirely up to you.
-
Simple help from the pros - Software Versioning.
revraz replied to Demonic's topic in PHP Coding Help
You can do whatever you want, the number scheme is not set in stone, it's whatever the Author determines. -
?Making a Closed Forum? (I'll clarify)
revraz replied to sonichedgehog360's topic in PHP Coding Help
I don't know anything about Dreamweaver, but if you have FTP access to your host, it's pretty simple. -
?Making a Closed Forum? (I'll clarify)
revraz replied to sonichedgehog360's topic in PHP Coding Help
Yes, try to register at my forums: http://sad.bdcpaging.com If you don't know the Keyword, you can't register. So, visitors can be specified to no access and an additional security password (w/ rolling code and only available via word of mouth) with a PHPBB2 forum, correct? I'm a newbie to this whole forum game so explanation would be greatly appreciated. -
?Making a Closed Forum? (I'll clarify)
revraz replied to sonichedgehog360's topic in PHP Coding Help
No need to even make a new table, PHPBB2 already does all of this, you just have to add 1 MOD that's already designed to do this. -
"I want to prevent random people from running these pages and being able to look at the XML." He didnt say anything about viewing code.
-
?Making a Closed Forum? (I'll clarify)
revraz replied to sonichedgehog360's topic in PHP Coding Help
PHPBB2 Forums already do that. -
$query = "INSERT INTO members (username, user_password) VALUES ('$_POST[username]','$_POST[password]' )"; You are inserting the POST variables and not your $variables. $query = "INSERT INTO members (username, user_password) VALUES ($username, $password)"; Remove or comment this code $query = "FLUSH PRIVILEGES"; mysql_query($query) or die(mysql_error()); I think that is where your error is coming from.
-
Try to write a Cookie, if it fails, use a Session.
-
And the members Table contains the rows username and user_password? Check for typos
-
$query = "INSERT INTO members (ID, username, user_password) VALUES (NULL, '$_POST[username]','$_POST[password]' )"; Remove ID and NULL from this *seconds too late
-
"&" is also a big no no for a filename character.
-
For some reason, this line equals False while($event = mysql_fetch_array($query2))
-
Just some things I saw: for ( $i=0 ; $i < $person_counter ; ++$i ) Shouldn't that be $i++
-
By removing that, you open yourself up to sql injections. Try to change the variable before the sql_query like: $carID = mysql_real_escape_string($CarID); echo $carID //just to make sure it looks ok, remove for production if(is_numeric($carID)){ $Validation = mysql_query("SELECT * FROM `cars` WHERE `CarID`='$CarID' AND UserID={$_SESSION['Current_User']}") or die(mysql_error());
-
Where are the other commas in your UPDATE statement?
-
Echo $Validation before the IF statement to see what it contains.
-
I use HTML-KIT and PHP CODER Both cool editors, both have FTP built right in (which I really like).
-
Sanitize the input, as in Validate it before you insert it into your DB or you could get unwanted entries.