AyKay47
Members-
Posts
3,281 -
Joined
-
Last visited
-
Days Won
1
Everything posted by AyKay47
-
looks pretty nice, I would scrunch the bottom up so random text isn't sitting at the bottom of the page until i scroll up. Make the input values disappear when focused.
-
can you be more specific, what exactly isn't working? what errors do you receive when this is executed?
-
Write up a contract that states the design is not to be used elsewhere and if it is found to be in use elsewhere that he agrees of a $10,000 fine per instance it is used, get it noterized on his end, have him fax or scan it in with signature and all should be well. But given that, all he would really have to do is make a few minor changes to the code, but it may hold up in court if you decide to pursue it that way. yes, most of the work that I do for companies require me to agree to a contract created by the company, it's a common practice. If you don't feel like spending the time that it takes to learn the ins and outs of several languages, hire a coder and require him/her to sign a contract, as premiso stated.
-
correct, your first method of doing this was the correct way.
-
Thanks Aykay.., I tried using str_replace last night change the space to a plus sign and it put something like South%2BCarolina (I think that's what it was more or less) in the url. I think i'll just put a dash instead of a plus sign in the spaces of the variables that need them then remove the dashes for the db query. I'll mark this closed in a couple of hours if no one else chimes in. Thanks again. S it put a %2B in the url because that is the encoded value of +. as I said, you can either encode this yourself to be absolutely sure, or you can simply divide the words by a url-friendly character, which you have done.
-
use magic?
-
true that would definitely be overkill.
-
he would actually receive the string "441,492,111", but yes that makes sense.
-
The only thing that I find interesting here is that you are receiving 441 as your answer, where you should be receiving 441492111, do you want decimal places to be shown as well? Or do you want the number to be rounded as it is now? See what you get when you have just this. $final = number_format($number);
-
a couple of things actually, the order by and limit clauses in most cases go at the end of your query, always after a JOIN, and its INNER not INTER Edit: ManiacDan provided a good reference to use when you are confused about which order your clauses go in.
-
Merry Christmas to everyone, safe travels.
-
that is a good read, and very true. Jquery or something of the sorts is imo the way to go when attempting to learn ajax. It is compact, easy to learn/use, and will save the coder a good amount of time. jquery.com has everything that you will need, including downloads, documentation, etc. to get you started and on your way to learning jquery. Jquery's ajax api is very easy to learn for really any level of coder. http://api.jquery.com/category/ajax/
-
to reiterate previously mentioned material. Where are you declaring the value of $email before using it here $headers = "From: $email\r\n"; also, if the mail() function is returning false, it will be returning an error. Are you receiving any errors? make sure error_reporting is E_ALL or 1
-
you may need to explain your issue a little further. However if i understand you correctly, you are saying that you have a transparent background so you can see the bg image, however this is also making your fixed div transparent as well? This is tellig me that you are using the opacity: property for your transparent background. Instead of opacity, use an rgba color (alpha color), this will allow you to make the background transparent, but it wont affect the opacity of child elements inside of the transparent div.. So something like background: rgba(0,0,0,.4); (black background 40% opaque)
-
I normally cast numeric string values right off the bat when I am transferring data. Makes for neater and easier code.. $category= (int)$_GET['category']; if(is_int($category)) { }
-
getting blank 'temp_name' in image upload
AyKay47 replied to ankitagupta3188's topic in Applications
have you checked for any errors received from the move_uploaded_file() function? Since you are receiving a path for the temp file, that is not the issue, it is possible that your $image path is not correct. -
you are retrieving this from either a query string or a form value correct? If so, the number is passed as a numeric string, not an integer. you can either cast the numeric string into an int before using is_int(), or you can use is_numeric() instead.
-
Need feedback on design and color selection
AyKay47 replied to sandeep529's topic in Beta Test Your Stuff!
perhaps go a little more in depth with the actual tutorial, maybe explain what exactly the user is doing when they type what the tut tells them to. -
lets get back on topic, pickachu stated why the $msg error is occurring, this leads the error to be in the update query, can you post your new query code please. it says update successful because you have not checked the validity of your query before outputting that sentence.. what you should be doing is only outputting that if the query returns true.. $query = mysql_query("UPDATE news SET title='$newstitle', `by`='$newsby', body='$newsbody' WHERE id='$newid'"); if($query) echo "UPDATE SUCCESFULLY!"; else die(mysql_error());
-
"by" is a mysql reserved words, which means that you have to wrap the column name in backticks when using in a query, or rename the column. $query = mysql_query("UPDATE news SET title='$newstitle', `by`='$newsby', body='$newsbody' WHERE id='$newid'") or die(mysql_error());
-
debug your query. $query = mysql_query("UPDATE news SET title='$newstitle', by='$newsby', body='$newsbody' WHERE id='$newid'") or die(mysql_error());
-
actually, the second parameter is the link_identifier, the first parameter is the query. OP, have you tried to debug this at all yet? I would start there.
-
Need feedback on design and color selection
AyKay47 replied to sandeep529's topic in Beta Test Your Stuff!
that's what I was thinking it was, a tut. Yes the statements that I enter seem to work fine. This certainly would not be for a complete beginner though obviously. The user would need to already have a mediocre knowledge of at least xml.