Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
php script sending blank info to mysql database
Jessica replied to hashstar's topic in PHP Coding Help
you can use a combination of isset and strlen to make sure there is something in that variable. It could just be blank. -
It's very easy to do this with jquery.
-
why am i seeing php when i view the source code of the page?
Jessica replied to tim@getdim's topic in PHP Coding Help
There could be several reasons. Maybe the page is saved as a .html, maybe the server doesn't have PHP installed, maybe you echo'd that line in your script. Can you post the section of code that produces it? -
php script sending blank info to mysql database
Jessica replied to hashstar's topic in PHP Coding Help
You also need to check if there's even anything in there. -
I guess I could add an option to put in prices I saw (like in an ad) but didn't buy. I'm more interested in historical data of actual purchases than trying to predict the absolute cheapest places to go. If I figure out that we're spending $x over budget, I can look at things like going more often to get those sales, but what I'm envisioning is more of a record of the past. I guess it would also help because let's say I'm at store X and I see they have the product for 50 cents more than I usually get it for there, I know it's not the right week to buy it - and to come back in a week when it will be on sale. Anyway I've totally derailed the thread, apologies!!
-
So, what I imagine (and again this is for me, might not be useful to others), is a tool where I put in what I spent and at what store, for each product. It shows me how much I spend on average for that product, and where I've gotten that product cheapest. So it wouldn't be able to tell me the cheapest store for it if I never shop at a store that always has it cheaper, or a store is having a sale and I don't know. But I will be able to see how much I actually spend on that product. Then I can put in what I'm going to buy, and it can tell me if you get everything at store X, it will cost this much total: If you buy this item at Store Y you'll save $x. We usually do our groceries for 2 weeks at a time and will go to 4 stores but all in one day, so I'm not an extreme couponer, I just don't want to keep buying butter at Target if it's not the cheapest store I already go to. Right now I have it all in a spreadsheet, but when I try to convert product sizes to get the best price per unit, or compare brands, thats beyond my skills in Excel.
-
There are at least 3 different user created functions which do this in the comments of array_unique.
-
I was just thinking based off the last price I paid - this is why I need to just do it for myself because what I am thinking is very specific to my situation That's why so many of those similar tools don't get popular, everyone wants something a little different.
-
Emails can have numbers in them on either site of the @. If you want to make sure the email is a valid one, you should send a validation link to the email, like many sites do. One of my favorite sites is 0to255.com. Their email would be whatever@0to255.com, and you are going to reject a valid email.
-
Automaticly remove table rows daily if logged date has expired?
Jessica replied to UrbanDweller's topic in PHP Coding Help
http://lmgtfy.com/?q=cron -
Peg jump is awesome. Something I've always wanted to either find already done or do myself is a grocery shopping list manager where you could record the prices you paid and at what store, so the next time you added the item it would tell you the cheapest place, average price, etc, so you could plan where to go. It would have to be able to convert product sizes too, because I've seen some things similar but they don't know that a box of Dr. Pepper cans is the same product as a 2 liter bottle, and I guess in my mind it is. Maybe thats just me
-
It's $_POST, not $_Post. post your new code so we can see all the changes.
-
I meant you type in the string, and tell it which hash, and it returns it. A gui for md5 or whatever other functions you want. Such a site exists already, but you could add your own features.
-
There is no query in there.
-
You need to do it on the query that gets you your $qry_results array.
-
Did you try it? Is title the name of the column you want to sort on?
-
Compare them as timestamps, not strings.You have $onemonth (which is one month from today) and $strcsd (which is a unix timestamp of the date). Compare those two. Also go through and echo all your variables to see what they hold, make sure they are what you expect.
-
In the link your ad displays, is the url just the plain URL or the URL with a unique ID on the end? That way google analytics could separate out the friend clicks from the ad clicks.
-
Mastermind, Game. I've programmed this one at least a dozen times, and added in features like letting the user select difficulty levels (less colors/more guesses = easier, etc). It's very simple logic. If you want to program the AI to guess user submitted codes, wikipedia has an article about Mastermind that includes the formula to guess codes. Other tools/ideas: md5/other hash converter, unix timestamp converter,
-
Is it possible, yes. How do you do it? There's many ways. You know it's ajax at least because you posted here Are you using any libraries? jquery is great for ajax. You'll want to make sure you have each step in the process working on it's own as a separate page, then convert it to an ajax process.
-
Checkbox checked and updating MySQL database help needed
Jessica replied to lunged's topic in Javascript Help
You haven't said what errors you get, what unexpected output, or lack of output, etc. We can't guess where you're going wrong without more info. I'm curious why you have all sorts of browser checks if you're using jquery. It's supposed to do that stuff for you. -
Try $_POST['Jack'] not $Jack.
-
Wow, is this 15th century England all of the sudden?
-
There's no numbers in your example. You either want to sort it in your query using ORDER BY column_name or put the results in an array and sort it, probably using natsort. I think the query sort is better but it does depend on what type the column is.