-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
Fatal error: Maximum execution time of 30 seconds exceeded
Zane replied to ballhogjoni's topic in PHP Coding Help
wow.....completely my bad on that one didn't even look that over. good thing I'm not getting paid sorry projectfear -
[SOLVED] Send a confirmation link to the mail id provided
Zane replied to coder500's topic in PHP Coding Help
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 -
[SOLVED] Send a confirmation link to the mail id provided
Zane replied to coder500's topic in PHP Coding Help
Concatenation -
Fatal error: Maximum execution time of 30 seconds exceeded
Zane replied to ballhogjoni's topic in PHP Coding Help
No, that's called squaring -
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
-
Fatal error: Maximum execution time of 30 seconds exceeded
Zane replied to ballhogjoni's topic in PHP Coding Help
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 -
just an idea, but assuming it isn't a space in your source try put this in your CSS html { margin: 0px; padding: 0px; }
-
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
-
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
-
begin with AJAX tutorials here's a good one http://www.webpasties.com/xmlHttpRequest/
-
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"));
-
Finding a location within X miles/km of an postal code
Zane replied to rondog's topic in FAQ/Code Snippet Repository
http://www.phpro.org/tutorials/Geo-Targetting-With-PHP-And-MySQL.html The next set of posts begins the UK version of this topic -
Finding a location within X miles/km of an postal code
Zane replied to rondog's topic in FAQ/Code Snippet Repository
I don't know....maybe puerto rico has no states and guam. -
localhost not working, WAMPserver
Zane replied to 9homie's topic in PHP Installation and Configuration
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. -
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".
-
Finding a location within X miles/km of an postal code
Zane replied to rondog's topic in FAQ/Code Snippet Repository
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. -
Finding a location within X miles/km of an postal code
Zane replied to rondog's topic in FAQ/Code Snippet Repository
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 -
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
-
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...
-
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
-
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.
-
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
-
UPDATE users SET id = id - 1; put that into the SQL tab on phpmyadmin