Jump to content

phpnewbie112

Members
  • Posts

    93
  • Joined

  • Last visited

    Never

Posts posted by phpnewbie112

  1. Hi all, I have a students php application that I currently host online with user access over different sections based on special permissions.

     

    I would like to distribute this application on stand-alone PCs  to work offline and synchronize the data once connected to the net.

     

    what is the secure way to deploy the application offline without the risk of being able to get the mysql data and thus be able to mess up the permissions bearing in mind that I have encrypted the code, so the main issue now is how to protect the mysql data. thanks

  2. Hello, does any have any experience with ZeusCart 2.3 shopping cart? I am confused on which script to install as a start, I liked the zeus demo but I did not find any review/feedback or live sites running it. what do you advice?

  3. Hello and Happy New Year 2009!

     

    could you pls advice if we can setup a cron from php.

     

    I have a small email script and I want to be able to schedule a given email let's say on 7/1/2009 15:00

  4. Hello, how can I send only a selected value in a dropdown bearing in mind that I cannot use the $_POST['total']

     

    I am using a payment gateway, I have to submit in hidden form for example:

     

    <input type="hidden" name="txtAmount" value="">

     

    where  the value should be extracted from the "selected" value of the dropdown. thanks a million

  5. Hello, I have a small script done under phpmaker to manage my database entries, in one column I have number that starts all with 0 ex 08653, 03658

     

    when I export to csv, I am loosing this 0, could you pls advice how can I maintain this 0 maybe by changing the variable format?

  6. Hello,

     

    I have the following piece of code:

     

    $out = "1.1";

    $rate = "1.1";

    $after =  $out/$rate;

    print $after;  //Result is showing 1 normally

     

    the problem is with the following wrong result

     

    $a = "1";

    $cnt = "1";

    $b = (($out/$rate) - ($cnt * $a));

    print $b;

     

    the result is supposed to be 0 but I am having as a result:

    1.11022302463E-15

     

    very wierd!!!

  7. One more question if you don't mind, I tried to include the following:

     

      if isempty($row['rate']) {

          echo "Not Included";

      }

     

    so when there is no return rate, it gives "not included" message but it is return nothing. pls advice. thanks a million

  8. Hello,

     

    I really need your advices and ideas about the given problem.

     

    I have a field in a form dedicated to enter international format mobile numbers example 1928123456, 336123456789, 4156897526, 2010102030

     

    I have a mysql tables with 3 fields:

    Country - Code - Rate

     

    example:

    France - 336 - 5

    USA - 1 - 4

     

    How can I make the following code work but while reading the values from the db rather than a manual one:

     

    if(substr($num,0,3)=="336") {

        $rate = "5";

    }

     

    else

    if(substr($num,0,1)=="1") {

        $rate = "4";

    }

     

     

     

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