Jump to content

habib009pk

Members
  • Posts

    59
  • Joined

  • Last visited

    Never

Posts posted by habib009pk

  1. Hi fellow,

     

    I am facing a problem, in joomla 1.7 administrator and in content adding when i am clicking article button the list article is appearing but when i am clicking anyone of title of the article then following error is appearing.

    "tinyMCE.getContent is not a function"

    Nothing appearing in text editor article not added in text editor.

    Kindly provide me best solution I will be very thankful to all of you.

     

    In another same version of website it is working perfectly which thing will be disturbed so i will fix it.

    Waiting for your reply

     

    Thanks

  2. Dear Friends,

     

    I need that type of customize php code in which admin will create form from the backend and these form will be displayed on front end. If anyone know that that type of code or url which faciliate me please give.

     

    I will be very thankful to all of you.

     

    Early response will highly be appreciated

     

    Best Regards

    Habib Ahmad

  3. Dear friends,

     

    I am facing a problem I am working on cars project there is a transmission feilds, these transmission values depends on different different values i.e 'CA','FA','AT','FAT','CAT','IAT','SQ' Now I have two options in searh criteria either I want to get records having these transmission values and these values aur automatic (AT). And other is Manual (MT).

     

    When client select At values then following query will be executed:

    $where.=" AND transmission_en IN ($str)";

    and it is working very well, Now I want to get records other then these values so kindly tell me which sql comman can be use through which can i get the the records other then these values.

     

    Simply says (Not IN ($str));

     

    Waiting for your reply

     

    Best Regards

    Habib

  4. Dear Friends,

     

    From last few days I am in very big problem. I am the developer of kansai group and my website is kansaigroup.jp.

    I am running a site in which I am displaying cars data on my site. I am getting this data from russians company from last two years in xml format.

     

    I was getting more then 80 thousands records daily but now the process has become very slow and it comes on just 12~13 records. I will give you the code of insert query in the end.

     

    I disscussed with russian company the data fetching on russian sever is perfect so there is no problem in data fetching the problem is in just insert query. The other reason is that the query is running perfectly on my local systerm Insertion and fetching is well on my local maching so there is just problem in on live server.

     

    Query is :

    while ($xml) {
    $sql = '?sql='.urlencode("select l.* FROM auct_lots_full l WHERE 1=1 order by lot_date asc limit ".$i.",1000");
     $xml = @file_get_contents($url);
     $i += 1000;
     if ($is_gzip) $xml = @gzuncompress($xml); 
     if ($xml)
    $xml2 = simplexml_load_string($xml);
    $loopend = count($xml2);
    //insert Query;
    for($a=0;$a<$loopend;$a++)
                    {
                    if (!isset($xml2->item[$a])) continue; // it's new line
    $lot_id=addslashes($xml2->item[$a]->lot_id);
    $lot_date=addslashes($xml2->item[$a]->lot_date);
    $bid=addslashes($xml2->item[$a]->bid);
    $company=addslashes($xml2->item[$a]->company);
    $model_year_en=addslashes($xml2->item[$a]->model_year_en);
    $model_name_en=addslashes($xml2->item[$a]->model_name_en);
    $model_detail=addslashes($xml2->item[$a]->model_detail);
    $grade_en=addslashes($xml2->item[$a]->grade_en);
    $model_type_en=addslashes($xml2->item[$a]->model_type_en);
    $mileage_en=addslashes($xml2->item[$a]->mileage_en);
    $mileage_num=addslashes($xml2->item[$a]->mileage_num);
    $inspection_en=addslashes($xml2->item[$a]->inspection_en);
    $equipment_en=addslashes($xml2->item[$a]->equipment_en);
    $transmission_en=addslashes($xml2->item[$a]->transmission_en);
    $awd=addslashes($xml2->item[$a]->awd);
    $left_hd=addslashes($xml2->item[$a]->left_hd);
    $truck=addslashes($xml2->item[$a]->truck);
    $special_num=addslashes($xml2->item[$a]->special_num);
    $special=addslashes($xml2->item[$a]->special);
    $displacement=addslashes($xml2->item[$a]->displacement);
    $displacement_num=addslashes($xml2->item[$a]->displacement_num);
    $start_price_en=addslashes($xml2->item[$a]->start_price_en);
    $start_price_usd=addslashes($xml2->item[$a]->start_price_usd);
    $end_price_en=addslashes($xml2->item[$a]->end_price_en);
    $end_price_usd=addslashes($xml2->item[$a]->end_price_usd);
    $average_price=addslashes($xml2->item[$a]->average_price);
    $color_en=addslashes($xml2->item[$a]->color_en);
    $color_basic_ref=addslashes($xml2->item[$a]->color_basic_ref);
    $scores_en=addslashes($xml2->item[$a]->scores_en);
    $result_en=addslashes($xml2->item[$a]->result_en);
    $result_num=addslashes($xml2->item[$a]->result_num);
    $chassis_no=addslashes($xml2->item[$a]->chassis_no);
    $company_ref=addslashes($xml2->item[$a]->company_ref);
    $model_ref=addslashes($xml2->item[$a]->model_ref);
    $auct_ref=addslashes($xml2->item[$a]->auct_ref);
    $auct_system_ref=addslashes($xml2->item[$a]->auct_system_ref);
    $auction_name=addslashes($xml2->item[$a]->auction_name);
    $pics_urls=addslashes($xml2->item[$a]->pics_urls);
    
    //Insert query
    $insert="INSERT INTO auct_lots_temp (lot_id,lot_date,bid,company,model_year_en,model_name_en,model_detail,grade_en,model_type_en,mileage_en,mileage_num,inspection_en,equipment_en,transmission_en,awd,left_hd,truck,special_num,special,displacement,displacement_num,start_price_en,start_price_usd,end_price_en,end_price_usd,average_price,color_en,color_basic_ref,scores_en,result_en,result_num,chassis_no,company_ref,model_ref,auct_ref,auct_system_ref,auction_name,pics_urls)VALUES ('$lot_id','$lot_date','$bid','$company','$model_year_en','$model_name_en','$model_detail','$grade_en','$model_type_en','$mileage_en','$mileage_num','$inspection_en','$equipment_en','$transmission_en','$awd','$left_hd','$truck','$special_num','$special','$displacement','$displacement_num','$start_price_en','$start_price_usd','$end_price_en','$end_price_usd','$average_price','$color_en','$color_basic_ref','$scores_en','$result_en','$result_num','$chassis_no','$company_ref','$model_ref','$auct_ref','$auct_system_ref','$auction_name','$pics_urls')";
                 
                    $result=mysql_query($insert) or die(mysql_error("Invalid Query :"));
                    mysql_free_result($result);
    }
    

    Dear my friends kindly give me suggestion why it is running well on local system and why it is very slow on live server.

     

    Waiting for your urgent response

    Best Regards

    Habib

  5. use this function to get the desired result

     

    You are all late

     

     

    function han_kaku_to_jen_kaku($str){

            $replace_of = array('ヴ','ガ','ギ','グ',

                                'ゲ','ゴ','ザ','ジ',

                                'ズ','ゼ','ゾ','ダ',

                                'ヂ','ヅ','デ','ド',

                                'バ','ビ','ブ','ベ',

                                'ボ','パ','ピ','プ','ペ','ポ');

            $replace_by = array('ヴ','ガ','ギ','グ',

                                'ゲ','ゴ','ザ','ジ',

                                'ズ','ゼ','ゾ','ダ',

                                'ヂ','ヅ','デ','ド',

                                'バ','ビ','ブ','ベ',

                                'ボ','パ','ピ','プ','ペ','ポ');

            $_result = str_replace($replace_of, $replace_by, $str);

           

            $replace_of = array('ア','イ','ウ','エ','オ',

                                'カ','キ','ク','ケ','コ',

                                'サ','シ','ス','セ','ソ',

                                'タ','チ','ツ','テ','ト',

                                'ナ','ニ','ヌ','ネ','ノ',

                                'ハ','ヒ','フ','ヘ','ホ',

                                'マ','ミ','ム','メ','モ',

                                'ヤ','ユ','ヨ','ラ','リ',

                                'ル','レ','ロ','ワ','ヲ',

                                'ン','ァ','ィ','ゥ','ェ',

                                'ォ','ヵ','ヶ','ャ','ュ',

                                'ョ','ッ','、','。','ー',

                                '「','」','゙','゚');

            $replace_by = array('ア','イ','ウ','エ','オ',

                                'カ','キ','ク','ケ','コ',

                                'サ','シ','ス','セ','ソ',

                                'タ','チ','ツ','テ','ト',

                                'ナ','ニ','ヌ','ネ','ノ',

                                'ハ','ヒ','フ','ヘ','ホ',

                                'マ','ミ','ム','メ','モ',

                                'ヤ','ユ','ヨ','ラ','リ',

                                'ル','レ','ロ','ワ','ヲ',

                                'ン','ァ','ィ','ゥ','ェ',

                                'ォ','ヶ','ヶ','ャ','ュ',

                                'ョ','ッ','、','。','ー',

                                '「','」','”','');       

            $_result = str_replace($replace_of, $replace_by, $_result);

            return $_result;

        }

  6. Dear friends,

     

    I want to solve a problem kindly help me. I have table named as 'colors' it has color_reference, color_name_english and color_name_japanees.

     

    I have a color name, it is also in japanese language. I want to compare this value with color table and want to pick the color_name_english and color_reference and use it.

     

    Now the problem is that color_name_japanese in color table is in "full width katakana" and the value which I am getting and want to compare with color table is in "half width katakana". Both are in japaneese but due to its width the comparison doesn't gives the correct result.

     

    Kindly help me, how will I compare both of these and how I will make resemblance with each other. I am using in php and in php i used the function "mb_convert_kana" but it also doesn't give accurate result.

     

    Waiting for your urgent reply

    Thank and regards

  7. Dear friends,

     

    I am sending a code for crawling a page,

     

    That is the code:

    ==================================

      $ch = curl_init();

      curl_setopt($ch, CURLOPT_URL, $url); 

      curl_setopt($ch, CURLOPT_USERAGENT, $agent);

      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

      curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);

      curl_setopt($ch, CURLOPT_FTP_SSL, CURLFTPSSL_TRY); 

      curl_setopt($ch, CURLOPT_REFERER, $reffer);

      curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_file_path);

      curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_file_path);

      $res1 = curl_exec($ch);

      curl_close($ch);

    ------------------------------------------------------------------------------

    Dear friends please tell which code is use for displying its result in browser i want to display all the crawled page in browser

     

    Waiting for your reply

     

    Thanks and Regards

  8. Is it correct or where i can place you given statement

     

    ------------------------------------------------------------------

    mysql_select_db($database_kansai, $crawler);

    $query_rscolor = "SELECT color_id, name_en from tblcolors where name_jp ='$color_japan'";

    mysql_query("SET NAMES 'utf8'");

    $rscolor = mysql_query($query_rscolor, $crawler) or die(mysql_error());

    $row_rscolor = mysql_fetch_assoc($rscolor);

    ------------------------------------------------------------------

  9. My dear friends,

     

    I am facing a problem, I have a table which has approximately 5000 colors in japanese, english and russian language and each color has a reference number. Now i want to pick this reference number and color name in english and want to dump in another table. I have only color in japanese language for the comparison.

     

    Now i am using this query:

     

    SELECT color_id, name_en from tblcolors where name_jp ='$color_japan'

     

    where $color_japan having string in japanese chracters. But when i am running this query it is not comparing with the colors table.

     

    Kindly help me how can i get my desired result.

     

    Waiting for my reply

     

    Thanks and Regards

  10. Dear Friends,

     

    I am sending a mail through SMTP authentication through a Host Gator server, it is working before very well, but at once the working has been stopped and the following error is coming.

     

    ======================

    authentication failure [sMTP: Invalid response code received from server (code: 535, response: Incorrect authentication data)]

    ======================

    I have a authenticated e-mail address. and the same SMTP mail authentication code as it was before.

     

    The code i am using is:

    ======================

    require_once "Mail.php";

     

    $from = "Discount English <admin@discountenglish.com>";

    $to = "<".$email.">";

     

    $subject = "Confirmation!";

    $body = $message;

     

    $host = "mail.discountenglish.com";

    $username = "admin@discountenglish.com";

    $password = "*****";

     

    $headers = array ('From' => $from,

      'To' => $to,

      'Subject' => $subject);

    $smtp = Mail::factory('smtp',

      array ('host' => $host,

        'auth' => true,

        'username' => $username,

        'password' => $password));

     

    $mail = $smtp->send($to, $headers, $body);

     

    if (PEAR::isError($mail)) {

      echo("<p>" . $mail->getMessage() . "</p>");

    } else {

      echo("<p>Message successfully sent!</p>");

    }

     

     

    ======================

     

    Kindly help me what are the main reasons for this problem.

     

    I am in deep worry.

     

    Waiting for yours act of kindness

     

    Regards

  11. Dear Friends,

     

    I have a problem i have a checkbox whose id are day_1, day_2......day_7 depending on different names of days sunday monday respectively. And below that each day has different Auctions when i click on any check box of any day then all check boxes of this will has been checked.

     

    This action will be performed on check on checkbox. Now i want when I load this page then today checkboxes will be checked for each day

     

    So when i use this code No action will be performed on onload of the page.

     

     

    document.getElementById('day_6').checked = true;

    CheckAll(document.getElementsByName('day6[]'));

     

     

    function CheckAll(chk)

    {

    for (i = 0; i < chk.length; i++)

    chk.checked = true ;

    }

     

    But the same code is giving the Correct result when i call these functions on onclick of the button

     

    Why it is not giving the correct result on calling fuction on onload

    and

    Why it is giving the correct result on calling function on onclick

     

    Please Help me

     

    Thanks And Regards

     

     

  12. Hi Friends

     

    i m working on my space site for someone and just have a css file. now i have to change the title of the browser but i dont have html file for change.

    kindly tell me how to change the text of title bar through css without html file or how to hide it.

    any suggestion will be appriciated

    regards

  13. Hi Friends,

     

    I have a little problem i have a div with position: absolute and other div with position: relative. now my problem is i want to display the absolute div above the relative div but now absolute div hide before the relative div.

     

    Kindly help me how i remove this error.

     

    Thanks and Regards

  14. Dear friends,

     

    I am facing a problem i want to create a section in my site in which the admin talk with the user through voice chat, and in reply the user just talk with text msgs. I am searching that type of component from early in the morning, but i am totally failed. kindly if anyone know the solution of my site then please help me. I will be very thankfull to him..

     

    component either in joomla or in php is very easy for me.

     

    Thanks and Regards.

     

  15. Dear friends,

     

    I am facing a problem i want to create a section in my site in which the admin talk with the user through voice chat, and in reply the user just talk with text msgs. I am searching that type of component from early in the morning, but i am totally failed. kindly if anyone know the solution of my site then please help me. I will be very thankfull to him..

     

    component either in joomla or in php is very easy for me.

     

    Thanks and Regards.

  16. Hi Friends,

     

    I am facing a problem, i want to download a file on a specific loacation. Actually i have the URL of the image file through which i want to download that image.

     

    I am using a code which is use for download the same images

     

    i.e

     

    header("Content-Type: application/octet-stream;");

    header("Content-Transfer-Encoding: binary");

    header('Content-Disposition: attachment; filename='.$filename.'');

    readfile($file);

     

    but this code can open the save dialog box but i want that image can be saved in the temporary directory for temporary time then i want to attach these images in a mail but this is the next phase.

     

    Kindly help me regarding this that image can be save in any directory(fixed) without opening the save dialog box.

     

    Waiting for you reply

     

    Regards

     

  17. Dear friends i have a problem, i want to explain it first

     

     

    I want to display one div over another div

     

    i have the div structure as it is

     

    <div>

      <div id="a">it has searching form with click event</div>

      <div id="b">and it has table which show the data after the clicking the form<div>

    </div>

     

    now let me explain you, div 'a' has the system when we clicked on the content of div aa' the form will appears with sliding panel.

    now when i gave the fixed width for the div 'a' it is working fine. the form will be contract and expand on click event.

     

    Now my requirement is when i click on the content of div 'a' the form will expand on the div 'b'

     

    Means div 'a' appears on the other div 'b'.

     

    Kindly Helps Me Regarding This

     

    Thanks

  18. Dear Friends

     

    I need a help, I have a search page which of cars related, which has different search criteria e.g. maker, model, color, displacement etc. when i give any search criteria and click the search button i got the result according to my search criteria and it is working good

     

    Now i have another form on the left side on the search result page which will refine my search. e.g i gave the search of company Toyota and Suzuki and it will give me the records related to the Toyota and Suzuki now i want to refine it.

     

    From the left form i will just give the Suzuki and it will give me the result of suzuki or i will just give me Bid no and It will give me those bid nos which will come in the search criteria of Toyota and Suzuki.

     

    Now my question is that how can i save my old recordset on which when i will give the further search it will give me the result from my old recordset. is it possible that i will give the further search Criteria on my old recordset.

     

    Kindly help me Regarding this.

     

    I am waiting for you reply

     

    Thanks

     

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