Search found 26 matches
- Wed Jan 05, 2011 6:36 pm
- Forum: PHP - Code
- Topic: Send Registration Error
- Replies: 3
- Views: 70
Send Registration Error
I have a registration form that calls verify.php which is what I will post the code for. For some reason the code is only executing to the point where I check rather or not the email has been registered. If I enter an email that has been registered it redirects me like it is supposed to to suspected...
- Fri Dec 31, 2010 11:37 am
- Forum: PHP - Code
- Topic: mysql_num_rows Error
- Replies: 5
- Views: 108
Re: mysql_num_rows Error
Yeah I fixed it 2 seconds after I posted that
lol
lol
- Fri Dec 31, 2010 8:27 am
- Forum: PHP - Code
- Topic: mysql_num_rows Error
- Replies: 5
- Views: 108
Re: mysql_num_rows Error
Now I am getting this error
Call to undefined function mysql_qry()
Hmmm
Call to undefined function mysql_qry()
Hmmm
- Thu Dec 30, 2010 8:19 pm
- Forum: PHP - Code
- Topic: mysql_num_rows Error
- Replies: 5
- Views: 108
mysql_num_rows Error
I keep getting this error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource On this line of code: $verifynotregistered = mysql_num_rows($sql2) or die(mysql_error()); Can someone please give me a hand. Thanks in advance! Attached is the code block: $activationKey = mt...
- Wed Dec 01, 2010 11:28 pm
- Forum: PHP - Code
- Topic: PHP Mail
- Replies: 2
- Views: 681
PHP Mail
I am getting an unexpected T-String error on line 12 can anyone help? I have been coding for hours now and have the code blindness! lol Thanks I will sleep much better if I get this solved tonight! Thanks in advance <?php if ($why == 4){ echo"Click the back button and try the question again.&qu...
- Mon Nov 29, 2010 3:25 pm
- Forum: PHP - Code
- Topic: User Permissions
- Replies: 3
- Views: 66
Re: User Permissions
Your correct. When you submit it again it doesn't do anything to the DB but you can still submit the posting. Oh well as long as it doesn't change the existing data that is fine with me.
- Mon Nov 29, 2010 1:18 pm
- Forum: PHP - Code
- Topic: User Permissions
- Replies: 3
- Views: 66
User Permissions
I have a method for users to be able to edit postings that have made. It works fine except I do not have a control to keep the user from changing the address parameter in the address bar. I need to hide this parameter if possible as well as add an else statement somewhere that directs them to a file...
- Wed Nov 24, 2010 10:41 am
- Forum: PHP - Code
- Topic: MD5 Login
- Replies: 3
- Views: 160
Re: MD5 Login
It will just not allow the user to login and it throws my custom error message. The password is inserted into the database in md5 format.
- Wed Nov 24, 2010 9:45 am
- Forum: PHP - Code
- Topic: MD5 Login
- Replies: 3
- Views: 160
MD5 Login
I have developed a login system that utilizes md5 password protection before but for some reason I am having trouble getting this one to check out. I may be having a bad day of coding or something I don't know! Anyways here is some code I would like to get someone to take a second look at. Thanks in...
- Mon Nov 22, 2010 1:12 am
- Forum: PHP - Code
- Topic: Submitting Session Values
- Replies: 14
- Views: 532
Re: Submitting Session Values
Got it to work! Had to take off the serialize bit for the session piece. Amazing what walking away from your coding will do for a couple of hours and then coming back. Thanks for everyones help it is appreciated!
- Mon Nov 22, 2010 12:50 am
- Forum: PHP - Code
- Topic: Inserting Session Values into MySQL
- Replies: 7
- Views: 391
Re: Inserting Session Values into MySQL
I am not getting an error. The user's user name is just not getting inserted into the database.
- Sun Nov 21, 2010 8:53 pm
- Forum: PHP - Code
- Topic: Submitting Session Values
- Replies: 14
- Views: 532
Re: Submitting Session Values
I am starting with check.php thanks! <?php session_start(); if(isset($_SESSION['username'])){ // Session exists, allow the user to view the page. } else { // Session doesn't exist, redirect to login and exit the page. header( "Location: login.php" ); exit(); } ?> if(isset($_POST['add_event...
- Sun Nov 21, 2010 8:45 pm
- Forum: PHP - Code
- Topic: Inserting Session Values into MySQL
- Replies: 7
- Views: 391
Re: Inserting Session Values into MySQL
I tried that right before the last post reply. It did accept it but it still is not inserting the username. I am going to keep plugging! Thanks
- Sun Nov 21, 2010 8:26 pm
- Forum: PHP - Code
- Topic: Inserting Session Values into MySQL
- Replies: 7
- Views: 391
Re: Inserting Session Values into MySQL
Now I am getting an error with this line of code? Is this not the correct syntax?
$username = unserialize(base64_decode(stripslashes($_POST['$_Session['username']')));
$username = unserialize(base64_decode(stripslashes($_POST['$_Session['username']')));
- Sun Nov 21, 2010 6:57 pm
- Forum: PHP - Code
- Topic: Inserting Session Values into MySQL
- Replies: 7
- Views: 391
Inserting Session Values into MySQL
I am trying to insert a users username into the user database when he or she inserts an event into a database using session variables. I am having trouble getting the desired result. The scripting I have now allows for the event to be posted, but the username just never gets passed over to the MySql...