Jump to content

Nelak

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Everything posted by Nelak

  1. $_FILES['uploadedfile']['type'] will return image/jpg or image/gif etc
  2. use the GD Library, nice and easy. Theres lots of tutorials too
  3. i know this isnt my post but can sum1 explain to me how modulus works and how and what % does pls  ;) cos i cud do with something like this. Thanks in advance, Chris
  4. have u tried the mysql LIKE statement?
  5. dont post ur database login info, its a major security risk.
  6. Thanks a lot m8, appreciate it.
  7. How do u send html mails using mail()? I tried just putting straight html into the mail body but it just displayed it as text. Thanks in advance.
  8. call the ssi file in the header, u should still be able to use them on the index page
  9. its throwing an error because it cant find the folder to upload to correctly, make sure the path is correct and u have permission to write to it, also u are echoing the size as the file type and the type as size
  10. while were on the subject is it possible to query 3 tables using like for a search?
  11. try to use the switch tho its much better programming
  12. if u have lots of commas in the file it will count loads of entries. Use a character which is not used in your file and put it on the end of entry. [code]explode('CHARACTER HERE',file_get_contents('file.scv')));[/code]
  13. If u have any leading zero's and its a int field it will chop them off.
  14. can ne1 see an error in my code?  :'(
  15. ok i have enclosed all my cod enow (with your create object script :) thanks!) i found the firefox console but cudent find the IE 1, but heres some error i got: Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://www.nelak.net/user/pm.php?a=new :: handleResponse :: line 40"  data: no] Source File: http://www.nelak.net/user/pm.php?a=new Line: 40 Error: uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]"  nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)"  location: "JS frame :: http://www.nelak.net/user/pm.php?a=new :: sendRequest :: line 34"  data: no] Error: not well-formed Source File: http://www.nelak.net/suggest.php?q=Ne Line: 8, Column: 35 Source Code: // add a zero in front of numbers<10----------------------------------^ Warning: Error in parsing value for property 'display'.  Declaration dropped. Source File: http://www.nelak.net/user/pm.php?a=new Line: 0 this worries me a lot as its a fair few errors :-/ thanks again, Chris
  16. [quote author=tomfmason link=topic=121365.msg499140#msg499140 date=1168204620] For a full answer to what your problem is please enclose any errors from the javascipt/error console in FF or any that you may get IE [/quote] How do i get to this? sorry being so unspecific, im new to ajax so therefor dont know what im loking for in terms of errors. Thanks a lot for your help, i really appreciate it, Chris
  17. Hi, Im using ajax as an auto complete for a PM system for my site (www.eve-resource.net) but im having some problems with IE, works perfectally in firefox. Heres the script: [code] <script language="javascript">     function createRequestObject() {     if (window.XMLHttpRequest) { // Mozilla, Safari, Opera...         var xmlhttp = new XMLHttpRequest();         if (xmlhttp.overrideMimeType) xmlhttp.overrideMimeType('text/xml');     } else if (window.ActiveXObject) { // IE         try {             var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");         } catch (e) {             try {                 var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");             } catch (e) {}         }     }     if (!xmlhttp) {         alert('Giving up :( Cannot create an XMLHTTP instance');         return false;     } return xmlhttp;   }         // Make the XMLHttpRequest object     var http = createRequestObject();         function sendRequest(q) {            // Open PHP script for requests        http.open('get', '/suggest.php?q='+q);        http.onreadystatechange = handleResponse;        http.send(null);         }         function handleResponse() {            if(http.readyState == 4 && http.status == 200){               // Text returned FROM the PHP script           var response = http.responseText;               if(response) {              // UPDATE ajaxTest content              document.getElementById("searchResults").style.display = "visible";              document.getElementById("searchResults").innerHTML = response;           }            }         } function setvalue(userid, uname){   obj = document.getElementById("searchResults");   obj.style.visibility = "hidden";   obj.style.display = "none";     document.getElementById("q").value = uname;   document.getElementById("to").value = userid; }     function refresh(){             window.location.reload( false );           } </script> [/code] In firefox uname is put into the visible text box and userid is put into the hidden field, but in IE userid is put into the visible text box and nothing is entered into the hidden field. If someone could help me with this i would be very grateful. Thanks, Chris
×
×
  • 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.