Jump to content

fugix

Members
  • Posts

    1,483
  • Joined

  • Last visited

Posts posted by fugix

  1. 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.

  2. 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))");

  3. 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

  4. 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

  5. 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.

  6. 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

  7. 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 ' ??

  8. 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

  9. 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

  10. 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

  11. 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

×
×
  • 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.