phpnewbie112
Members-
Posts
93 -
Joined
-
Last visited
Never
Everything posted by phpnewbie112
-
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
-
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?
-
yes it allows but I want the cron to be set from inside a php script not manually from cpanel
-
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
-
unfortunately none of them is returning the correct count
-
premiso I already tried it but did not work
-
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.
-
[SOLVED] dropdown send the selected value
phpnewbie112 replied to phpnewbie112's topic in PHP Coding Help
thank you all, I will try all the proposed options but I think a double form as ashishag67 mentioned is better. thanks again -
[SOLVED] dropdown send the selected value
phpnewbie112 replied to phpnewbie112's topic in PHP Coding Help
I mean the dropdown is called txtAmount, what do I have to add inside value="" to submit the selected value to my payment gateway -
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
-
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?
-
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
-
this is the part exporting the number: $sCsvStr .= '"' . str_replace('"', '""', strval($addressbook->number->CurrentValue)) . '",';
-
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?
-
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
-
[SOLVED] divide numbers strange results
phpnewbie112 replied to phpnewbie112's topic in PHP Coding Help
Thanks -
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!!!
-
Thanks I really appreciate your help
-
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
-
wow thanks a million you're a genius!
-
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?
-
rhodesa it is returning an empty page
-
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
-
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"; }
-
didn't work still storing same values twice