Jump to content

Imad

Members
  • Posts

    205
  • Joined

  • Last visited

    Never

Everything posted by Imad

  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?
  16. I couldn't find the form, I had to click everywhere until I finally hit the input form. Maybe try selecting using javascript onload?
  17. Glad you like it. Any suggestions for improvement?
  18. You sure? Everyone who has been visiting it said it's working fine. If you previously visited it, make sure to clear your cache.
  19. I just updated the website & signature application based on your feedback. Check it out and let me know what you guys think. Now, all tweets are cached for an approx of 15 minutes; app should be much faster now. Hope you guys like it.
  20. Thanks for your comments guys. New features and new site design coming later this week.
  21. I thank you for your constructive criticism. I do have a new theme coming along, I just need to finish the caching system. The domain itself use to be for my startup company before recently shutting down, the logo was designed for the startup, and will be remade in the future. Not too sure what you mean by "make the content fit the box", does it not already? As for the AJAX, it is also planned for the new theme which should be coming soon. The About us is below the form, image, code box, etc. I didn't want to make a bunch of useless pages just to list an "About Us" for the first day of launch. As for the donation part, I plan on moving it to another page. However, just an FYI, the money isn't being pocketed, the money is going directly for the operation costs and toward the new server. I'm pretty sure a little donate image to help us help you wouldn't hurt? Lastly, emphasizing the form will be the vocal point of the new theme. However, not too sure if I can make it larger than it already is for the users not to "miss" it. Don't take any of my responses against you, I definitely appreciate your constructive criticism and I'll more than definitely implement it in the upcoming design. Best Regards.
  22. You read my mind exactly. I did want to link it to the Twitter account instead since nearly everyone who are using it did so. As for the username in the image, that as well is planned, I just want to change the image a bit to fit the text. Thanks for your comments!
  23. Hi Guys, I just finished my new Twitter Application which puts your latest tweet into a signature image. I need opinions and or suggestions on the application itself and not the website design (I still need to think of a good design to make ). Here's the site: http://dynno.com Best Regards.
  24. Hello All, For some reason PHP won't configure with MySQL. I have all the PHP dependencies installed and up-to-date. Operating System: Fedora Core 7 My MySQL version is: 5.1.31 PHP Version: 5.2.8 PHP Config Error: checking whether to include mime_magic support... no checking for MING support... no checking for mSQL support... no checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. PHP config.log Error: configure:19949: checking for xml2-config path configure:20107: checking whether libxml build works configure:20134: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5 /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status configure: failed program was: #line 20123 "configure" #include "confdefs.h" char xmlInitParser(); int main() { xmlInitParser(); return 0; } Any help will be greatly appreciated.
  25. Thanks for your reply. It returned as "Query was Empty". I'm quite puzzled here on why it's returning that. ??? EDIT: reading your new post. EDIT again: I get the Query empty thing I described above.
×
×
  • 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.