Jump to content

vijayfreaks

Members
  • Posts

    110
  • Joined

  • Last visited

    Never

Posts posted by vijayfreaks

  1. Hi..

    For getting shipping cost m requesting following url via socket in php

    http://www.ups.com/using/services/rave/qcostcgi.cgi

    and passing following params: 10_action,13_product,14_origCountry,

    15_origPostal,19_destPostal,

    22_destCountry,23_weight,47_rateChart,48_container,49_residential

    now I am getting ship cost only for US location but other than US..

    I am getting error "The requested service is unavailable between the

    selected locations." with Code: "1210"

     

    Is there any other API or Class / Method via I can get accurate UPS

    Shipping Cost..

     

    Please help me.. Its Urgent..!

     

    Thanks and Best Regards,

    Vijay

  2. Hi...

            first one start time: 12:00 then 1200 end time: 1:00 -> 1300

            store data like this.. (or it would be time stamp)

     

         

            then whoever is going for reservation for that check condition like this

            fetch rec. frm qry: ( suppose 1230 is new entered time )

     

       

            select count(*) as reserve from table where 1230 not between start_time and end_time

            if reserve > 0 then its reserved otherwise not..

     

    Regards,

    Vijay

             

     

     

  3. Hi..

          for that you have to use regexp in mysql query or after retrieving result you have to check whether http:// exist or not...

        then accordingly you have top take decision

        or

        compulsory input w/o http://

    and @ the time of showing records you can add http://

     

    -Vijay 

  4. Hi..

    I m not sure what you wanna do.. but if that mean if some one selected whatever from selectbox that would be retain as it is afer post back.. that you want to say..? or any thing else..

    if yea then that would be done via..

    <?php 
    while{$rs=mysql_fetch_array($result))
    {
    $val_from_db_loop = $rs['select_val'];
    ?>
    <option value="<?php echo $val_from_db_loop;?>" 
              <?php if($_POST['select_box_name']==$val_from_db_loop) { ?> selected="selected" <?php } ?>
    >
    <?php echo $rs['select_show_val'];?>
    </option>
    }
    

     

    Regards,

    Vijay

  5. Hi.. see the following code:

     

    $dbcnx = @mysql_connect("localhost", "user", "pass****");
    if(!$dbcnx)
    {
         $db_sel = mysql_select_db('db_name',$dbcnx);
         if($db_sel)
          {
           $subject=$_POST['subject'];
    $body=$_POST['body'];
    
                  // before adding it in to db do some validation over subject and body posted var..
                  // is it contain valid data...
    $sql = 'INSERT INTO `tritusco_news`.`news` (`subject`, `body`) VALUES ($subject, $body);';
    
    
    if (@mysql_query($sql)) {
       echo '<p>News added</p>';
    } else {
       echo '<p>Error adding News</p>';
       }
          }
    }
    

    Regards,

    Vijay

  6. Hi..

      for that use directory function to create directory with the help of mkdir() and give specific permission and that directory would be named using unique fileld from the table member in that you can store that pdf file, with particular name.. (that would also you can store in to db)

     

    Regards,

    Vijay

  7. Hi..

            see the round function for this.. echo round(3.5); will result in 4..

            its bit differ from ur result u want above 5..

            probably for that you have to go for user defined function.. and you have to define your own logic..

     

     

    -Vijay

             

  8. Hi..

            for that you have to use userdefined class that will help youo to generate this excel file..

            like follow this link:

                    http://sourceforge.net/projects/psxlsgen/

     

            and for simple usage u can do like this:

     

                    http://www.pyramidlinking.com/phptoexceltutorial.php3

                    http://www.999tutorials.com/tutorial-create-excel-files-with-php.html

    Regards,

    Vijay   

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