Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
You should be storing it as an integer and calling INET_ATON on the IP in the query. What does your query look like?
-
Sure. For example: If you enter a Job ID into your JOB table then you can get that unique auto-incremented id with mysql_insert_id so when you go to insert into the SKILL table you can match that Job id. Hope this helps.
-
What's your question? If you want to store what they searched then you need a table in your DB and when they submit their search, you have to grab the POST values of the fields and INSERT them into the table.
-
Yes it's possible but you're going to need 2 separate queries for this. And what exactly is your question? You can use mysql_insert_id() to get the last inserted id.
-
You're having a hard time finding a tutorial about designing a PHP shopping cart? That's hard to believe. Anyway, I found this: http://www.phpwebcommerce.com/
-
While this may be true with religious beliefs, it may not be with personal. From the previous example: While I don't believe in letting innocent people die, I don't believe in saying the word "computer". So if I don't say, "computer", I'm violating my personal belief by letting my innocent daughter die while maintaining my religious beliefs. If I say "computer" then I'm violating God's word but maintaining my belief of not letting an innocent person die. What if I truly believe in both of these. So does it become a question of what belief is more important? If I choose my personal belief does it mean that I don't truly believe in God altogether and vice versa? I mean of course I can come up with all these ridiculous circumstances where you have to violate one for the other but, for the most part, you're correct. It's hard to find conflicting beliefs that you truly believe in, it's usually one or the other. @OP, I hope you enjoyed our discussion on what a true "belief" is. Please come back next week for our discussion, on a more specific topic, "Pro-Life vs Abortion".
-
First you said you would do it and now you're saying you may not actually do it. So you believe in taking the life of an innocent child for another belief? When does it stop? Would you blow up New York City for your belief? Listen, I don't want this to turn into a religious argument, which may be too late, but my point was that if 2 beliefs conflict you may have to violate one to follow/achieve the other.
-
Well, sometimes it's a little more complicated. For example, what would you do in this situation. God says, "Never say, the word, 'computer'". Someone takes your daughter hostage and says, I'm going to kill her unless you say the word, "computer". What do you do? (don't say I would say the word "computer" and go to confession so God will forgive me)
-
Haha, you're right, maybe trying to put beliefs into PHP logic isn't the best way to present an argument, but you started it! @stanleybb, I think you're starting to see that this argument is going into an infinite loop... Reason being is because none of us are right! It's your decision, good luck with everything.
-
** Firstly, this is all relative, no one here is right or wrong here, these arguments about beliefs, are just beliefs. ** I understand they're not the same thing, but you can believe in 2 different things and there's always X-factors that can determine what you choose. You can not believe in supporting pr0n but you can also believe that you need $ to provide for yourself (and your family if you have one). So if you have no money, and the only thing available is doing this pr0n site, then what do you do? Starve or override one of your morals to provide for your family? But if you want to look at a programmatic standpoint then it can be done: $A = "morals"; $B = "money"; $C = "portfolio"; if($A && !$B) { echo "I have morals"; } elseif($A) { echo "I still have morals"; } elseif($B) { echo "I like money"; } else { echo "What do I do?!?!"; }
-
Why can't you believe in something to a certain extent? So, if you're not willing to die for that belief do you really believe in it?
-
okay, so the question still remains, which is more important to you: money OR portfolio and morals (which doesn't sound like matters if you're debating whether or not to do it) Don't get me wrong, you could probably still find a decent paying gig that would be suitable for a resume, but as of right now, it doesn't seem like you have any, or at least that pay as much.
-
Yes, I understand. I recently graduated too, I was lucky enough to find a good job. But once again, it's money vs morals, which is more important?
-
Wrong section Jenny, unless you're a framework... Try here: http://www.phpfreaks.com/forums/index.php/topic,112560.0.html
-
I hope you're not waiting for an answer...
-
Depends on what you define as better? What weighs more, morals and portfolio(if you care about it being on there) or money? It's not like you have to put it on your resume. If your resume is more important, than find another gig you can stick on there. Building something that will kill/injure thousands of people is hard to compare with a pr0n site, which really doesn't hurt anybody, it's a business. But I agree, I wouldn't be able to sleep at night either... All this is personal preference, it's relative to the person. I know some developers who have done pr0n related freelance that paid well, but they also didn't care about their image/portfolio. Personally, I would do it because my morals aren't against it and I don't need web development to eat, I have a full-time software developer position. There's my take on the situation, let us know what you do!
-
This is not PHP Help. A simple Google search could have given you 100k answers...
-
Check the permissions of it. What are the permissions of the rest of the images? ls -al
-
You have to click on a video.
-
It's part of XHTML which is a new mark up combing XML and HTML. Since XML requires you to close all elements, is closing itself because there is nothing that you ever put inside of a br tag.. Read more here.
-
Why are you echoing h1 tags, just echo the variable itself to see if it has the correct value....... { echo "uid: $uid dist: $dist pb: $pb"; Also put this at the top of your script: ini_set ("display_errors", "1"); error_reporting(E_ALL);
-
YouTube has their text and videos upside down, sorry nerds, no porn for you tonight :-\
-
[SOLVED] Want to confirm userinput only between a-z
Maq replied to ameyjah's topic in PHP Coding Help
Hehe, you mean lower-case... I you use regex like premiso exemplifies, it will be very easy to restrict what the user can enter. -
Yeah because that's unconditional... Did you try echoing both queries, in the IF and the ELSE? One of them will show, and I'm guessing it's updating every time... How about echoing the variables in the function?
-
Not really... How doesn't it work? Does it throw any errors?