Jump to content

Wildhalf

Members
  • Posts

    101
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Wildhalf's Achievements

Member

Member (2/5)

0

Reputation

  1. That's exactly what I'm trying to do. Add a new entry to the array then rotate the array and update database
  2. Kicken, Sorry for being so confusing. Basically i am building a rotator script. Here is how my database looks: both id & fb_user_id are unique for every entry. What i am doing is building a kind of affiliate system with signup page with a form. I am rotating the sponsors link on the page so they are in order related to who joined first. When someone gets a signup they are put on the end of the rotation again untill they have say 2 signups. So when a new user signs up via the rotator page the order goes from fb_user_id - oder 1 - 1 2 - 2 3 - 3 to this fb_user_id - oder 1 - 4 2 - 1 3 - 2 4 - 3 so the new member goes in 3rd in line and the person who referred them goes in right behind them in 4th unless that had been there 2nd signup in this case they will no longer be in the rotation. Do you have any more questions?? Hope this makes it a bit clearer
  3. sorry that was my fault that should be 5, 6,7 If you look at first link you will see what my table looks like the second one was me trying to ask with out showing the table... stupid really
  4. I Have asked on stack overflow but im not getting a good answer so decided to come here. I am a learn as you go php programmer.... but think i am a bit out data by the looks of things any way if you look at the following question it will show you what i am trying to do http://stackoverflow.com/questions/13238787/php-select-update-statement-to-return-and-update-a-multi-dimensional-array & http://stackoverflow.com/questions/13117872/php-rotate-and-adding-to-an-array thanks in advance to anyone who can help
  5. thanks thats great news for me then......
  6. I am new to SESSIONS and have a quick question about them. I want to use sesssions on my site but was wondering if they would work for the follow senario. Say a customer visits my url: http://www.mysite.com/?id=2 Now what i am doing is taking the id out of the URL using sessions and redirecting the user to http://www.mysite.com while my session ($_SESSION['id']) holds the value 2 in it. I have this working great, i believe it just looks better. Now if my customer decides to buy my product via paypal and is directed off my site while he/she is paying for said item on paypal when they return could i still use some of the information that i stored in my session?? I know i could use post and get to pass through paypal but unfortunately i have to use sessions for what i am trying to do.
  7. Thanks again to everyone.... I got it working. I am using sessions with a javascript redirect.
  8. Shaun sorry I didn't get it from your post thanks for your help. Bluesky thanks also
  9. Was just about to ask if sessions would work. Was looking on iPhone one last time before I turned out the light and came Accross it... Will try it out thanks
  10. visit this link and watch it in action...... http://rapidactionprofits.com/?e=test I also have a wordpress plugint designed for thatt script that removes the ?e=whatever. so there is a way to do it.... but how???
  11. I am trying to remove the ID from the Address bar so rather than having http://www.mysite.com/?id=1 i have http://www.mysite.com displayed in address bar
  12. I am only going to be using the ID on one page. Say i have 10 different ID's 1 to10. All i am doing is when i send a user to ?ID=1 it displays one thing taken from my database. ?ID=2 displays something else and so on. I suppose i dont now enough about php to do it but i know what i want done works as i have seen it with a few scripts.
  13. Shaun Thanks for you help.... Been reading about it for hours now but still cant figure out how to do it...
  14. Anyone know how i can remove a querystring from url. Example URL: http://www.mysite.com/?id=1 I am writing a script that needs to read in the ID from the URL. But once have got the information i would like to remove it from the URL and just display http://www.mysite.com but still be able to use the ID to query my database. Any ideas???
  15. I am passing variable to a PHP page and was wondering if there is a way to clean these varilabes from the url once i pull the information out of it. For example my URL is "http://www.MYURL.com/index.php?var1=TEST1&var2=TEST2" Now what i want to be able to do is when someone visits the above link i want to assign var1 and var2 to a variable and then remove then from the addressbar so the vistor can only see the base URL (http://www.MYURL.com) in the address bar but i get my variables Anyone know what i can use???
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.