mystic_bovine
-
Posts
8 -
Joined
-
Last visited
Posts posted by mystic_bovine
-
-
Here's the scenario:
A survey that asks your birth date. Once it figures out your age it then goes to a different page depending on your age and opens up another survey.
What is the best way to do this with PHP?
Thanks in advance
-
Thanks. I'll check it out.
-
Thanks for the replies.
I used the
$array2 = array_map('trim',explode(',', $line2));
and it worked.
However the spaces in the example were my fault, It was last and I was tired.
The data was actually coming from a Excel exported CSV file. When I looked at it in a plain text editor, I couldn't see any spaces. Would the fact it came from Excel have anything to do with it? Or because array[8] was at the end of the line?
-
The code below isn't working, so I guess an IF statement shouldn't be used. Can someone tell me what I should be using?
$line2 = "TX, first, last, email, phone, zip, address, city, flooring_hardwood_install"; $array2 = explode(',', $line2); if ($array2[8] == "flooring_hardwood_install") { $trade = '51' ;}
Thanks so much.
-
Fenway,
Sorry, I honestly read "Look it up first..." as "look it up first in the forum then post the question".
Like I said I really appreciate the resource that this forum and phpfreaks.com is. I'm slowly teaching myself PHP and mySQL and I've only posted 7 times because I usually find the answer first. I hope one day to be knowledgeable enough to post some answers.
-
Thanks. I had looked it up first, or I wouldn't have posted the question. My search brought me to this thread. I appreciate the help in these forums, and I appreciate the time people take to answer questions, and I appreciate the fact that the same question can get asked over and over again.
But do you have to be a jerk? You're a moderator, right? Isn't part of your job to help? At least point me in a direction - like "try searching for --- " -
My problem is similar to this.
I have a database that I'm using to store my portfolio. When a user clicks on one of the logos I designed they go to a gallery page that shows the logo as a larger image. Then I would like them to be able to navigate to the next logo while in the gallery page by clicking "next" or "previous". But the next record may not be a logo, it might be a newsletter. I have a field for 'category' and there are 3 categories - logo, communication and web.
So how would I get the next record that where category = 'logo'?
[SOLVED] Redirecting to a page
in PHP Coding Help
Posted
Gawd. So simple. Thanks!
I got stuck on the header() function. But the meta refresh worked great.