Jump to content

Imad

Members
  • Posts

    205
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male

Imad's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Thanks for the help guys. Since my system is working with dollar amounts, the penny makes a difference. Additionally, no item will cost half a penny, or break the two decimal barrier. However, to make sure it doesn't, I decided to create my system to remove the cents if it's not going to affect the deduction, then append them after the arithmetic calculations. If the price affects the account balance's cents, then it performs the calculations as normal. This seems like it's working excellently and performed all sorts of testing. The entire system would have been easier if the user didn't have 2 different balances, one is the deposited amounts, and the other is the earnings they make on the site. Since purchasing allows them to use both balances it makes everything more difficult. I will continue testing my system with different senarios and see if it's the ideal way of doing things, otherwise, I'll go with the arbitrary precision library. Thanks again for the help.
  2. Hey Guys, I'm starting to get a little frustrated here with this. I'm performing a simple subtraction here $account_balance - $price. Let's say the account balance was 100.01, and the price was 5.00. The end result when I perform the subtraction is: 95.00 when it should be 95.01. Is there anyway to get php to stop rounding? I gave round & double a try to no avail. Thanks Much.
  3. Currently, there is no need for the terms of use or privacy policy as we just sell products through PayPal and the giveaway is through Twitter. The terms of use is useless for such a site as you aren't using anything on the site except browsing (no user accounts or user input). However, the products have their own license & of liability. The giveaway has its own Rules & Regulations and no data is being collected but the username from Twitter as you'd expect, so no issues there. Will update the navigation links. The header as in the giveaway image? If so, it's just temporary until the giveaway ends. The clearing issue is strange, sometimes a refresh fixes the issue, but I'll look into it a bit more. I'll put the color variations into consideration, possibly a light green as with the buttons in the product details page? Will definitely add a short explanation; we basically sell Twitter scripts, but we'll probably expand into more categories in the future. Thanks for the Critique btw, much appreciated.
  4. @lostprophetpunk Thanks for the critique. Definitely going to the changes you mentioned. Never looked at things the way you described, but now I see exactly what you mean. Thanks again.
  5. Thanks for the critique. Will take your words for suggestion on improving it. Not sure about cramming all my pages into one though.
  6. Hey guys, got another site setup (seems like I'm on a roll this year ), need you guys to throw critique on the site design and whatever bothers you about the site. Here's the site: http://dynno.net Any critique will be appreciated, Thanks Much.
  7. Thanks for your feedback, greatly appreciated. Love your feedback, very descriptive and down to the point. Will modify the changes accordingly. Thanks again.
  8. Finished this Twitter application search system, and need some input on it. So definitely throw in your suggestions, comments, and critique. The site is http://twappfinder.com Thanks much.
  9. As the title describes, I keep getting that error. /usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)' Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists! (I've installed MySQL a dozen times on other servers and never encountered such an error, so I'm pretty much puzzled.) Sometimes I can get it to work, and when I do, it clears the root password and everything up so I have to do it all over again. If I attempt to shutdown the MySQL server, then try to restart, I get stuck with the sock 2 error for a bunch of times until it decides to work again. This is very unstable and unworkable. Any ideas on why it's doing this? I installed it manually using the tar.gz source files version 5.0.83 on Redhat Linux Enterprise 5. The config I used was "./configure --prefix=/usr/local/mysql --with-charset=utf8 --with-collation=utf8_general_ci" Despite /tmp/mysql.sock exists, it returns the error. Any help will be greatly appreciated. Best Regards.
  10. Change the query to: mysql_query(" UPDATE 'Customers' SET balance= balance + $_POST[transfer] WHERE acountNumber= $_POST[acountID] ") or die(mysql_error()); And see what it returns.
  11. Definitely. I'm currently working on offering support for other languages, so that's my current focus. Thanks for your comments.
  12. Applied some more updates. Hope everyone likes them.
  13. Imad

    PHP GD utf8?

    Thanks for your reply. I already have everything you mentioned. However, because I'm generating an image and writing the text to it, I'm using a different type of font selected. It's probably that? If so, is there a way to detect if it's Chinese, and if it is, change the font selection?
  14. Alright, I'm trying to work with UTF8 to accept the Chinese language in a PHP image to no avail. I keep getting a bunch of squares. I'm using imagettftext(); to write text to the image, I tried using the utf8_encode function to encode the chars, but it doesn't seem like it wants to work. Any ideas?
  15. Doesn't look half bad. The brick is interesting. Maybe give the overall main site look a more outdoor look to match the brick? How about some green grass near the footer to give it a lively look?
×
×
  • 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.