Jump to content

sdi126

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by sdi126

  1. @Aravinthan...why would you want to put quotes around variables? --------------------------------------- In your php code at the top of the page it is missing the line termination symbol of semi-colon--------> ; * Your page code be crashing... a lot of hosting companies turn off errors for some reason???? Your code should be: <?php $FullPallet=$_GET["FullPallet"]; $QuarterPallet=$_GET["QuarterPallet"]; $DeliveryType=$_GET["DeliveryType"]; $DeliveryFrom=$_GET["DeliveryFrom"]; $DeliveryTo=$_GET["DeliveryTo"]; ?> other than that your code looks correct...what is the page doing exactly...does it print the text but just not the variable values?
  2. SELECT * FROM media_cat WHERE substring(name,1,1) in(0,1,2,3,4,5,6,7,8,9) ORDER BY name ASC
  3. It doesn't work because multipart/x-rar is not a valid "MIME" type. I think it should be "application/x-rar-compressed" I was just saying on the upload code to print out what it is so you know for sure
  4. I would echo out the file type: $_FILES["file"]["type"]; Once you know the type you can add it to your list
  5. yea clicking a topic looks the same as the home page...must be because at my work we have some crazy proxy server ( the page must be cached from when it looked correctly at one point )...
  6. what is the link to the page that is messed up...it isn't www.thesidetracked.com is it???? that page doesn't look to have HUGE font to me?
  7. And this is the entire contents of the file "process.php"? It doesn't even go to line 118? Regardless of the file though...im not sure I have ever seen concatenation >> to an if statement >> to an echo statement ( don't think that is valid syntax...)
  8. the best solution would be to limit the data returned from your mysql query have you tried using the keyword 'DISTINCT' in your query...just before the column 'gm_date'?
  9. The end of that line represents the actual text the user will see in the drop down list. So if you did this: <option value="3-Week" <?php if (!(strcmp("2-Week", KT_escapeAttribute($row_rstblapplication['ProgrammeName'])))) {echo "SELECTED";} ?>>2-Week</option> the user would see "2-Week" as an option to select in the drop down but the value behind it that would be used by your program would be "3-Week"
  10. It looks like you have an extra single quote after the $link variable...you have double single quotes which is not what you want...you just need one.
  11. yea...i hate it...but what can i do...im just one disgruntled employee
  12. sorry...Maq your right...im @ work now...we are strictly ASP.NET (c#) which is the mode i am in now.
  13. both posts make valid points...no need for two loops foreach ($arr as $value) { //your code here } also option is being overwritten each time in the loop...use += $option += '<option name="'.$arr.'" value="'.$arr.'">'.$arr.'</option>';
  14. You are correct that a div is not a valid form element...which is why PHP can't pick up the posted value from a div. You can still display the text in a div...but you might also want to put it to a hidden form element. <input type="hidden" name="someName" value="theSameStuffThatIsInTheDiv" />
  15. I'm confused...your talking about arrays and also writing to files ??? But like MadTechie stated using the "a" option in the fopen function appends data...the "end of file" your asking about means add data to the end of the file your writing to...its not talking about adding code to your "file" ( the php page at the end)
  16. couldn't you just group them first by parent and then category... maybe I don't quite understand but it sounds like you want to do: SELECT * FROM categories ORDER BY parent_id,category_id
  17. Ive never heard of anyone using frontpage and php but... I assume the database would be mySQL Two functions to look at for this: mysql_query <----used to set a select statement to pull comments where emailAddress equals what is entered in and mysql_fetch_array <----used to get access to the information returned from the database (if a match is found)
  18. do you have any code at all started for the add_event.php page yet?
  19. Just add another mail line after the current one to send another email: mail("me@gmail.com,you@hotmail.com", $subject, $message, $from); To send to multiple addresses you just seperate each one out by a comma.
  20. If it is already up there...it is probably just easier to rename it
  21. finding elements by className is not natively supported in all major browsers :-X but I have used this javascript function before for what you are needing to do. function getElementsByClassName(className, tag, elm){ var testClass = new RegExp("(^|\\s)" + className + "(\\s|$)"); var tag = tag || "*"; var elm = elm || document; var elements = (tag == "*" && elm.all)? elm.all : elm.getElementsByTagName(tag); var returnElements = []; var current; var length = elements.length; for(var i=0; i<length; i++){ current = elements[i]; if(testClass.test(current.className)){ returnElements.push(current); } } return returnElements; } ----->http://www.robertnyman.com/2005/11/07/the-ultimate-getelementsbyclassname/
  22. When you upload a photo (go to the database) and grab that users unique id ( we will use this when renaming the picture ). Do you have the upload functionality working yet? With this function-----> move_uploaded_file ( string $filename , string $destination ) See----> http://us3.php.net/manual/en/function.move-uploaded-file.php for help you can rename the file as part of the destination string using that members unique id that you grabbed from the database.
  23. It is probably a better idea to not store the images in your database. Assuming that each member will have one picture and that your database table for members each have a unique id...then you can store the pictures on the file system and have the pictures named with their id.(ext)
  24. do you really want to submit the form after the user makes a change? --->use the onchange event <input type="text" onchange='document.forms[0].submit();' /> or do you want to submit the form when they leave the textbox? ---> use the onblur event <input type="text" onblur='document.forms[0].submit();' />
  25. Yea you need to use the file_exists function. http://us2.php.net/manual/en/function.file-exists.php
×
×
  • 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.