Jump to content

DjNaF

Members
  • Posts

    42
  • Joined

  • Last visited

    Never

Everything posted by DjNaF

  1. Hi, I have a DB with lots of property information in it and I need to return all the properties and order them by price. However, I at the moment my query is sorted incorrectly: c1 c10 c11 c12 c2 c20 c21 c3 c31 They should be more like: c1 c2 c3 c11 c12 c20 c21 c31 How would I go about this? My existing query is as follows: Code: SELECT * FROM <table> ORDER BY itemno ASC Thanks in advance...
  2. Anyone got an idea how this concept is working? and The image tagging thing, i think its in AJAX maybe, any ideas how to do that, or already scripts using this? Thank you
  3. Anyone got an idea how this concept is working? and The image tagging thing, i think its in AJAX maybe, any ideas how to do that, or already scripts using this? Thank you
  4. Hello i am trying to make an invoice system using php, i made a design of the invoice when i add it throught php code as a background the image is destroyed :S is there anyother way to include an image with same good quality? or to edit an already PDF file, to add text to it throught php, because i managed to export the design to a psd with the a very good quality any solution for the two options? Thank You $pdf = pdf_new(); pdf_open_file($pdf, "C:\AppServ\www\bennyboy.pdf"); pdf_set_info($pdf, "Author", "Djnaf"); pdf_set_info($pdf, "Title", "Creating a pdf"); pdf_set_info($pdf, "Creator", "Goo"); pdf_set_info($pdf, "Subject", "Creating a pdf"); pdf_begin_page($pdf, 595, 842); pdf_set_font($pdf, "Helvetica-Bold" , 12, winansi); //PDF_show_boxed($pdf, $text, 50, 100, 400, 300, "left"); //pdf_show_xy($pdf, "hire eieie ue euihe uih weuie ueuiweuiweuiwe uiweuiwe weui iuweuiweuiwe",50, 10); //$gif_image = pdf_open_png($pdf, "tt.png"); //pdf_place_image($pdf, $gif_image, 15, 0, 1.0); $gif_image = pdf_open_image_file($pdf, "png", "2.png"); pdf_place_image($pdf, $gif_image, 10, 10, 1.0); pdf_close_image($pdf, $gif_image); pdf_end_page($pdf); pdf_close($pdf); echo "<A HREF=\"bennyboy.pdf\" TARGET=\"_blank\">Open pdf in a new window</A>"
  5. its still returning this new Array("AAAA","BBBB","CCCC","DDDD","EEEE","FFFF"); i used this code! preg_match('/new Array\(.*\);/i', $data, $result); echo strip_tags($result[0]); i need a solution to return the 3 arrays, and save them into new 3 php arrays
  6. i am reading a txt fiel from the internet using fread i get this data from the file i am trying to parse the 3 arrays into 3 php arrays! can anyone help in that. i tried preg_match('/new Array(.*);/i', $data, $result); not working fine thank you all
  7. header("location: login.php");
  8. whats the code to load this module?
  9. hello; i 'v been trying to find a way to get this data for example 2 requests currently being processed, 8 idle servers in shell exec, i just care in a way to get number of requests currently being processed!! I can view it in WHM, but i need a command so i include it in PHP script. Thank you all
  10. hello; i 'v been trying to find a way to get this data for example 2 requests currently being processed, 8 idle servers in shell exec, i just care in a way to get number of requests currently being processed!! I can view it in WHM, but i need a command so i include it in PHP script. Thank you all
  11. do you have another solutions other than mine?
  12. :) wow at last after thinking in a tricky way i found a devils solution i used thin in body onLoad="setTimeout('call2()',500);setTimeout('call()',1000);setTimeout('call3()',1500);" i gave some time between calling the functions so by this it will break the onload limitation i hope it will be useful for you all thank you
  13. it's not working :( it loads yourAjax('1') only and when i refresh the page sometimes it loads yourAjax('1') in 2 divs! not one! the div that is supposed to be for function1() and the div for function2(); i dont know why! please i need help in this it's driving me crazy!
  14. [code] function ajaximusic(id){ var url = "page.php?id="+id; //alert (url); try{ Answer = new XMLHttpRequest(); }catch(error){ try{ Answer = new ActiveXObject("Microsoft.XMLHTTP"); }catch(error){ Answer = null; return false; } } Answer.onreadystatechange = change_rests_infoo3; Answer.open("POST", url); Answer.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); Answer.send(null); } function change_rests_infoo3(){ if (Answer.readyState == 4){ if(Answer.status == 200){ document.getElementById('rests3').innerHTML = Answer.responseText; } } } [/code] i have 3 functions like the above but everyone with different document.getElementById('rests3').innerHTML when i change order , it apply only the last one
  15. hello; i have got ajax function that load data into div, 3 functions with 3 divs now i want to call those functions when page loads i've tried onload="function1(rr);function2(rr);function3(rr);" but the only function that works really is Function3 , the last one called! i want the 3 function to work! anyone got an idea? Thank you
  16. Wow! I amanged to fix it, its now working at firefox and IE the link is http://www.****.net/cards/index2.php but there is one problem left, it's when you put the mouse on the bottom edge of a card, it's not stable it keep moving 2 cards not one card which i put my move over it. this problem is with IE now, it works 100% good with firefox
  17. Hello i am trying to make a cards table design http://www.***.net/cards/ when you look at the page in IE it works great, when you put mouseover the middle of any card and up... except when you put the mouse over the bottom of the card, it starts vibrating but when you open the link again in firefox it doesn't work at all!! i 've made a function for the first 3 cards from the left , and i added alert to the function , it worked displaying the OBJ, but its still not working for the moving thing!! and i don't know if you noticed that the div is already .top=300 in firefox ( its over the table cell line, but in IE its not!), i used postion:absolute to put images over each others! i'd appreciate your help thank you
  18. i want to same functionality
  19. i want to get the exact tabs in the pictures i took it from yahoo.com url
  20. Hello please i am trying to get the tabs in yahoo homepage this is a screen shot of what i am sufering to get. [img]http://img168.imageshack.us/img168/2993/image6jc9.gif[/img] Thank You for your help
  21. hello; i didn't know where to post it, in php forum or javascript. i have a once order page, where you choose items from different drop menus. when ever a user choose am item it add its price in the total text field, in addition i want to save the form in the database mysql. <option value="ProductID">Product Name</option> i use the ProductID to save it in mysql, i found a way to calculate price if i placed the price instead of ProductID for the value, but then i can't save the ProductID in the database. anyone got a solution? Thank you
×
×
  • 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.