Jump to content

Jahren

Members
  • Posts

    66
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Jahren's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. xajax is availlable here : http://www.xajax-project.org/en/download/ I use their test files. so i use : <?php include './xajax/xajax_core/xajax.inc.php'; $xajax = new xajax(); $rqstAdd =& $xajax->register(XAJAX_FUNCTION, 'doAdd'); $rqstReset =& $xajax->register(XAJAX_FUNCTION, 'doReset'); // set the parameters $rqstAdd->setParameter(0, XAJAX_JS_VALUE, 39); $rqstAdd->setParameter(1, XAJAX_JS_VALUE, 571); $xajax->processRequest(); function doAdd($a, $b) { $response = new xajaxResponse(); $response->assign('answer', 'innerHTML', $a + $b); $response->assign('reset', 'style.display', 'block'); return $response; } function doReset() { $response = new xajaxResponse(); $response->clear('answer', 'innerHTML'); $response->assign('reset', 'style.display', 'none'); return $response; } I cant even create the Ajax object. gives me the weird error. I tried their support forums but its kinda dead :S thanks for your time
  2. I'm using the unedited files from xajax. I dont change anything, I just try to use their own test files and it doesn't let me.
  3. mysql_real_escape_string() adds slashes to those characters to escape, you need not to worry about an email, it wont inject sql code
  4. hi! I'm trying to use xajax on my server but I get a weird error : Fatal error: Call to undefined function phpdebug_print_backtrace() in /home/client/public_html/Bidup/admin/xajax/xajax_core/plugin_layer/xajaxEventPlugin.inc.php on line 1 for some reason it believes the <?php tag is part of the debug+print call. code : <?php debug_print_backtrace(); The exact same files works perfectly on my local webserver. I don't know what to do, please help xD
  5. Well, because a browser interpretation of code and url interpretation can differ alot from a version to an other. is it external hosting? (I believe so but still asking)
  6. what version of IE? any manuipulation with the url? not encoded special chars?
  7. You're going to need to be more specific
  8. Hmmm, try seperating the operations to simplify the model. first you want all types in order. then use a temp array to store the data. (declare the array before the first loop.) $query = "SELECT id_type, str_type FROM types ORDER BY str_type ASC"; then I need to understand why $i=30 ; $i<98. is it that you want to loop for each type you get from the first query?
  9. err, I misread, it's not your fault. SELECT id_type, str_type FROM types ORDER BY str_type ASC change id_type and str_type to your columns' real name
  10. This code sorts stuff alphabeticaly already. if you meant you want alpha numerical: $query = "SELECT * FROM restaurants WHERE (type LIKE '%$i%') AND (zips LIKE '%$zipcode%') AND (type NOT LIKE '99') ORDER BY name + 0 ASC";
  11. php code must be inserted into <?php ?> brackets. use of shortends is possible but not recommanded, its not multi-plateform friendly <?xml version="1.0"?> is a shortend for <?php xml version="1.0" ?> hence, php believes this is php code The answer is: disable short_open_tag in the php.ini. OR use <?php echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); ?>
  12. oh, this validator is for html only! open your browser, get to your page, right-click anywhere and click source code. copy THAT code and paste it into the validator
  13. Direct input means you copy your page's code into the validator, not only the url.
  14. you will need to read some tutorial on the subject unfortunately (or fortunately 'cuz learning is great ^^) Otherwise, you will never learn, and if you don't want to learn, we won't do your homework We are here to help if you have questions tho. http://www.tizag.com/phpT/phpsessions.php
  15. how about ORDER BY clause? $query="SELECT * FROM `calls` WHERE `status` = '1' AND `priority` != 1 ORDER BY theDate"; or $query_customer="SELECT `name` FROM `customers` WHERE `id` = $customer ORDER BY theDate"; link: http://www.w3schools.com/sql/sql_orderby.asp
×
×
  • 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.