fugix
-
Posts
1,483 -
Joined
-
Last visited
Posts posted by fugix
-
-
what error(s) are you receiving?
-
IE 9 is still a beta version. Hopefully they will fix this soon.
hope so, if i were you i would send them a message in regards to this
-
oh well....I think I've found the problem. The page displays fine on Firefox and IE8. I am using IE9 at the moment and that seems to be the problem.
Thankyou all for your help.
glad you found the solution, however you will want to make sure that people using ie9 are able to view the page correctly as well.
-
How about the editor you use to save the files? What charset does it use for saving?
well im not sure what editor you are using, however there should be an option in the edito options showing the default charset and how to change it...also, i think your var may be displaying strange characters because you have not prepped it to pass through the url. try
header("Location: EST_quotation_insert.php?company_name=urlencode($company_name)");
or even one step further
header("Location: EST_quotation_insert.php?company_name=htmlentities(urlencode($company_name))");
-
fugix how do I find that out?
find what out?
-
Holidays are impossible, unless you want to predefine the days of the year.
Things like Easter are different days each year. I guess you could specify the week number, then grab the first Monday of that week. I'll mess things around. Keep in mind any code I give you will be based off Canadian stat holidays
if you were going to go about it using the logic in the code that you previously posted, you would of course need to update your code every year with the correct dates
-
instead of using width: and height: you can either set images using a max-width: or max-height: . this will help to maintain the images proportions so you dont get an unproportional funny looking image
I did not think of using that.. I did that and it worked perfect. Sometime it is the simplest anwers that you never think of
glad it gave you the result that you were looking for, everyone misses the little things sometimes,happens to all of us, if you could, please mark this thread as solved located in the bottom left hand of the page, thank you
-
instead of using width: and height: you can either set images using a max-width: or max-height: . this will help to maintain the images proportions so you dont get an unproportional funny looking image
-
in_array just seemed a little much for its application so was looking for a shorter way.... like so... (any thoughts?)
$fileType = $_FILES['fileToUpload']['type']; $acceptableImageTypes = array('image/jpeg','image/jpg','image/pjpeg','image/gif','image/png'); if(in_array($fileType,$acceptableImageTypes)) { //the file name in the temp folder on the server: $theFile = $_FILES['fileToUpload']['tmp_name']; //check is image if(getimagesize($theFile)) { //get just the file ext $fileExt = str_replace('image/','',$fileType); //set the location for the said image if($fileExt == ('pjpeg'||'jpeg'||'jpg')) /////////////////here is the || instead of the in_array. using in array would require me to set another array. { $fileExt = 'jpeg'; //the new destination $destination = "../create/upload_container/jpeg/"; } elseif($fileExt == 'gif') { //the new destination $destination = "../create/upload_container/gif/"; } else{ //the new destination $destination = "../create/upload_container/png/"; }
you state that in_array() is too much and you/re looking for a shorter way. then you use it in your code? also in the code you provided, you did not filter the image size.
-
i have read into this a little and have found a few websites that talk about a few issues that can be causing this..it is possible that your server may be overriding your charset...read this and let me know if it helps
-
you could go about it in the same manner that you filtered out weekends. just find the correct day and month
-
I would recommend using an array as well. something like
$fileExt = "pjpeg"; $ext_arr = array("jpeg", "jpg", "png", "gif", "pjpeg"); if(!in_array($fileExt, $ext_arr)) { echo 'boo'; }
-
i like the flash implementation.
That's not Flash, it's JavaScript.
right you are, my mistake..
-
I will look into your problem shortly, however as a side note, i would recommened against using $PHP_SELF as your forms action, here's why
-
I've sorted this problem
The issue was there was a ` rather than a ' . For some reason this was not being escaped.
mysql_real_escape_string isn't supposed to escape backticks . . .
thats what I thought too, i believe that the only special chars that mysql_real_escape_string() cannot escape are the % and _ since they can be used as wildcards. I'm thinking that maybe he placed a ` in one of his post indices instaed of a ' ??
-
looks clean, i like the flash implementation. first thing that i notice is the nav bar being cut off a bit. Also, i would probably make the link at the bottom have a hover effect of some sort make them appear more like link so users do not confuse them for simple text.The footer is also cut of on the right side. your font and text sizing choice is nice, its very easy to read. would probably make the contact text a tad bigger, little hard to read. Overall looks clean though, good job
-
next 10 business days.
right you are, that code i posted would work for the next 10 days but not business days, thanks for catching my error maq. I'll write something else up and post later
Edit: however, you could implement something similar to what i posted, except you will want to make an array of numbers representing the business days. 1= monday 2= tuesday 3= wednesday 4=thursday 5=friday 8=next monday.....etc
-
interesting, thank you for telling us what was causing the error.
Edit: please mark this thread as solved in the lower left hand of the page.
-
you could add a for loop to loop through the next ten days, like so
for (i=1; i<11; i++) { $future_date = mktime(0,0,0,date("m"),date("d")+i,date("Y")); echo date("Y/m/d", $future_date); }
-
if it was an error with the actual mysql_real_escape_string() function, when you echoed the string it would return false on error, not empty. this makes me believe that data is not actually being passed to the variable before using the function on it.
-
you'll want to validate user input. then incorporate the mail() function into your script to send an email with a verification link. Set it up so when the use clicks on the link, there account will be verified. you can do this by setting a field in your database that stored your member information, set it as an int with a default value of 0. When the verification link is clicked, have the int in your db set to 1 which will give them access to log-in
-
to create hover effects, you can use either javascript...using a combination of the onmouseover and onmouseout events. Or, you can use css and the :hover pseudo-class. this website here has a pretty neat example if something similar
-
in the article class. take out the position relative.
-
can you tell me which divs belong to which boxes?
Creating XML File from a file list
in PHP Coding Help
Posted
have you tried to attempt it yourself at all, or researched?