Jump to content

phpnewbie112

Members
  • Posts

    93
  • Joined

  • Last visited

    Never

Everything 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. yes it allows but I want the cron to be set from inside a php script not manually from cpanel
  4. 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
  5. unfortunately none of them is returning the correct count
  6. premiso I already tried it but did not work
  7. Hello I usually use strlen($text) to count the total characters of a text but how can I do it with unicode text? I tried it but it is returning false values.
  8. thank you all, I will try all the proposed options but I think a double form as ashishag67 mentioned is better. thanks again
  9. I mean the dropdown is called txtAmount, what do I have to add inside value="" to submit the selected value to my payment gateway
  10. 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
  11. I want to display the correct format no matter what software is used to open the csv file. do you think we can do it?
  12. actually it is the code generated by phpmaker. I just notice something that the problem might be coming from Excel when opening the csv file it is deleting the zero coz I opened the file in notepad and it is working fine
  13. this is the part exporting the number: $sCsvStr .= '"' . str_replace('"', '""', strval($addressbook->number->CurrentValue)) . '",';
  14. 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?
  15. Hello, does anyone knows how to convert a text basically an Arabic or Chinese one to utf-16BE under php. as an example the word عربي must return 063906310628064A
  16. 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!!!
  17. 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
  18. interesting; we have some hints now; it is showing: Array ( [id] => 1 [country] => USA [c0de] => 1 [rate] => 4 ) how can we extract only the rate value from this array?
  19. wildteen88 I am showing this as an example. I want to get both code and rates from database based on the number I have, the phpcode shall give based on the number the appropriate code and corresponding rate. rhodesa I will test your code thanks
  20. 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"; }
  21. didn't work still storing same values twice
×
×
  • 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.