Search found 8 matches
- Mon Dec 07, 2009 3:21 pm
- Forum: PHP - Code
- Topic: Best method to return user after they login.
- Replies: 4
- Views: 119
Re: Best method to return user after they login.
Thanks for the advice guys. This is what I have come up with. I have used this little function I found after some googling. <?php function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER...
- Fri Dec 04, 2009 9:33 am
- Forum: PHP - Code
- Topic: Best method to return user after they login.
- Replies: 4
- Views: 119
Best method to return user after they login.
Hi guys,
What is the best method to return a user to the page they where on after they have logged in?
Thanks all.
Regards Paul
What is the best method to return a user to the page they where on after they have logged in?
Thanks all.
Regards Paul
- Thu Dec 03, 2009 3:47 pm
- Forum: PHP - Code
- Topic: How to make an array of the result of a while loop
- Replies: 4
- Views: 1162
Re: How to make an array of the result of a while loop
Thanks for that Shawn, That almost works perfectly. The only thing is, it is missing the first result in the while loop. eg. I have 9 records in the table with values of 2, 4, 1, 2, 5, 3, 5, 4, 3. Totaling 29. My array output is this..... Array ( [0] => 4 [1] => 1 [2] => 2 [3] => 5 [4] => 3 [5] => 5...
- Wed Dec 02, 2009 4:45 pm
- Forum: PHP - Code
- Topic: How to make an array of the result of a while loop
- Replies: 4
- Views: 1162
How to make an array of the result of a while loop
Hello All, How can I make an array of the result of my while loop. I have this...... $query = "SELECT rating FROM ratings WHERE imageID = '$imageID'"; $result = mysql_query($query); $rating = mysql_fetch_array($result); while($rating = mysql_fetch_...
- Sun Nov 15, 2009 3:29 pm
- Forum: PHP - Code
- Topic: PHP PayPal Button. Increment inputs during while loop.
- Replies: 5
- Views: 1012
Re: PHP PayPal Button. Increment inputs during while loop.
Just bumping this so it gets noticed again.
- Tue Nov 10, 2009 1:34 pm
- Forum: PHP - Code
- Topic: PHP PayPal Button. Increment inputs during while loop.
- Replies: 5
- Views: 1012
Re: PHP PayPal Button. Increment inputs during while loop.
Hello again Josh, I have been playing with this again after your suggestion and now have it working but am not sure if it is a good or correct way of doing it. There are 3 items in the cart! To start with I had this..... <form target="paypal" name="paypal" id="paypal" m...
- Tue Nov 10, 2009 1:01 am
- Forum: PHP - Code
- Topic: PHP PayPal Button. Increment inputs during while loop.
- Replies: 5
- Views: 1012
Re: PHP PayPal Button. Increment inputs during while loop.
Thanks for your reply, Not sure what you mean here. How would this be applied in my code? The input name is coming from my for loop (getting the number of rows in the query) whilst the input value is coming from my while loop (getting the item info from the other query). How can I combine them or am...
- Mon Nov 09, 2009 4:13 pm
- Forum: PHP - Code
- Topic: PHP PayPal Button. Increment inputs during while loop.
- Replies: 5
- Views: 1012
PHP PayPal Button. Increment inputs during while loop.
Hello all, new here and quite a novice with PHP but am learning. I am hoping someone could help me with a problem I have building a PayPal button for a third party cart. I need to increment each input name in my form so that each item_name and amount is numbered like this...... <input type="hid...