Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. wow.....completely my bad on that one didn't even look that over. good thing I'm not getting paid sorry projectfear
  2. I'm not really sure either, but it's always good practice to use it. You can never go wrong with it. Most of the time double quotes will let you flat out use variables inside them without accommodations like curly braces and what not, but still. No matter what programming language you're using, if you concatenate from the beginning you won't have any problems And it should throw a T_VARIABLE error when he concatenates....if you're right mgall
  3. pardon? I need way more explanation. As far as I know, you have some bowls in a database and you want to get them out and edit them with a foreach. Elaborate
  4. you're not incrementing your $i variable $i=1; while( $sDisplayArticle != " " ){ $iMaxCharacters = $iMaxCharacters+$i; //line 82 $sArticle = $sTinyMCEData; $sDisplayArticle = substr( $sArticle,$iMaxCharacters,1 ); $i++ // } and you can just as easily increment iMaxCharacters like this too $iMaxCharacters++; you don't even need the $i variable
  5. just an idea, but assuming it isn't a space in your source try put this in your CSS html { margin: 0px; padding: 0px; }
  6. Schwew, gonna need an e-restraining order for you three If dada says there's no white space, then maybe there's no whitespace. It's hard to overlook. Maybe it's not in your textfile dada but you may have some PHP code above the DOCTYPE that's putting that space there.... and the best advice I've heard so far was I've had MySQL problems do that to me alot..putting a blank space where it didn't need be, or just giving me a completely blank page. or maybe it could just be a CSS problem...which I haven't really looked at yet....just going out on a limb on that guess
  7. change this line if($sort = "") { to this if($sort == "") { One equal sign is an assignment....meaning it forces it to equal.... nothing. Two equal signs are a comparison...meaning it compares it against....nothing. And then there is === Which is a really strict comparison...usually for true and false comparisons That's the most basic description I can come up with
  8. usually unexpected T_VARIABLE means that you forgot a semicolon wherever you started a variable at...... that error code should tell you a line number above that line number......you probably forgot the semicolon or put one where there shouldn't have been
  9. begin with AJAX tutorials here's a good one http://www.webpasties.com/xmlHttpRequest/
  10. date("+7 days +1 month +1 year"); RTM. http://www.php.net/date oops...I'm sorry date("Y-m-d", strtotime("+7 days 1 month 1 year"));
  11. http://www.phpro.org/tutorials/Geo-Targetting-With-PHP-And-MySQL.html The next set of posts begins the UK version of this topic
  12. I don't know....maybe puerto rico has no states and guam.
  13. when you say just localhost works I'm assuming you mean it's loading your index.php page correct? if so, then the only solution I can think of so far is that you are mispelling your "file name". The other problem could be with your Apache configuration. But to get on that subject you have to answer this...did you mess with your http.conf file at all? and I'm just asking a straight up yes or no.
  14. I kinda get you here, but still. As much as categorization is getting obsolete, if we didn't categorize then .... One: questions definitely wouldn't get answered as fast. Questions get answered quickly because 9 times out of 10...2 or 3 very astute people will stick to only one forum and answer and answer to their hearts content...mostly because every question that comes up is in their field, probably because we moderators throw it in their direction. It's a system and it works. and Two: How else would people learn their vocabulary. Imagine if you never knew your car was a Ford. You just saw it as a car for the rest of your entire life and the only thought the crossed your mind when it was .."broke" was to bring it to the fixin place. Whenever you find out your cherished material possessions is somewhere else, your natural sense is to find out where who when why...what. At that point, it dawns on you that your car is a Ford. There's no telling what other interesting things there are to learn about your "car".
  15. I believe he does, because he says he has 20,000 stores already with valid zipcodes. his only problem is that that is only approximately 46.5% of all the zipcodes is the US. So if he has a table will all of them, and another table with all the stores, each store with its own foreign key (it's zipcode) relating to the zipcode table, he can perform radius searches to find the closest store to the customer instead of the customer searching for his/her OWN zipcode or various ones by trial and error......which is what the op is trying to do.....which I am trying to persuade him not to do.
  16. I can tell where to start for this but I won't do the whole thing for you. 1. Lookup a zipcode database, there easy to find. actually, here's a great one http://code.google.com/p/codearachnid/downloads/detail?name=zipcodes.rar&can=2&q= So you get the zipcodes SQL and you've got an entire table full of every US zipcode. 2. Then google a zipcode distance calculator. Depending on how good you are a programmer, choose one that suits you. you can find an OOP based one, with many features, or look for a single function out there. all in all, you just need the longitude and latitude of two zipcodes and you can do whatever you want if you find or compose the right code. 3. Well I guess you done. just implement it. enjoy
  17. nevermind, it was the stupidest thing I had a break in my LI echos... I feel like a dum dum now I still don't understand why the second row wasn't crooked though...oh well thanks anyway
  18. Alright, I've done this a million times and this is the first time this has happened to me. Everything works fine in IE but firefox is the one giving me trouble this time and that can't be happening. I don't have any code to show because it's on another computer right now but it's really typical code so no need to show it. I have an unordered list, and in each list item I have a DIV with an image in it. I have set this so the UL displays horizontal. So I have something like ul.thelist { list-style-type: none; margin:0px; padding:0px; } ul.thelist li{ float:left; } now for some reason beyond me, firefox collapses the first row of images. meaning...the list of images goes until it gets to the side of the page and continues on another row type of thing....(there are no tables) the second row is fine......the tops of all the images are all flush with eachother which I want.....but one the first row all the images are just a little bit lower than it's previous one. NOT FLUSH. what am I doing wrong...is there some secret out there I'm not informed of. CSS isn't my best thing in the world...
  19. I have the same problem. My ADD only seems to come out the most when I actually use my brain. The main thing that gets me running in circles is that I'll get an idea that there is an even better more efficient way to do what I'm doing and I'm already so clairvoyant about it that I"m 100% positive that it'lll work, only problem is that is that is steals me precious time from the actual objective. So what do I do? Recently in my little projects, I've been trying my best to just bite the bullet and do it the "easy" way. Get the main idea to actually work in a laissez-faire type of way and then come back afterwards and polish it up; because debugging your own work is usually ...always easy If you're a true programmer and not a person that posts every inch of error code into a forum expecting its output to be gold. For me, planning on paper never does much. I always end up writing things I already know and drawing pointless diagrams of where my data's being sent to and why. Because all in all my notes get left on the table half the time where they loose their lives to a spilt drink or something, or someone else's ignorance. I would definitely quit splitting all your stuff up into a bunch of random function files
  20. do a print_r($_POST) and tell us what you get. or just echo out $urls. We need to see what data you're working with in order to understand you.
  21. most always....well everytime it's happened to me when you get an error at the very end of your script...it's because you're missing a curly brace or you have one to many...which is pretty much the same as missing one
  22. Linux time is just a count in seconds from Jan 1 1970 one day is 86400 seconds... so from there you can just find the difference between the current UNIX timestamp and the timestamp you have in your db if it's less than 86400...it was today if it's less than 172800 but greater than 86400 then it's yesterday
  23. UPDATE users SET id = id - 1; put that into the SQL tab on phpmyadmin
×
×
  • 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.