Jump to content

envexlabs

Members
  • Posts

    256
  • Joined

  • Last visited

    Never

Everything posted by envexlabs

  1. thanks, i will look into this! *edit* I seem to be getting this error: The used SELECT statements have a different number of columns is there a way to grab the info even though the 2 tables are different in layout?
  2. Hello, I have a directory, that is pulling from 2 tables, a simple directory 'table', and a more complex 'store' table. Right now, you can either choose to look at 1 table or the other. This is working fine. I would like the user to be able to just see a master list of both mixed into one list. I'm not sure if i can use join as i'm not trying to link up values from both tables, i would just like to grab all the info from both, sort by name and display to the user. Sorry if this is confusing, but does anyone have any ideas? Thanks, envex
  3. THAT DOES MAKE SENSE GOOD SIR. THANKS FOR ALL YOUR HELP. *SORRY FOR THE CAPS, I'M RENDERING VIDEO *
  4. maybe for the switch try $month + 1, or $month - 1 instead of -- and ++
  5. Forgive my ignorance but not everyone uses Facebook. What is this? NO problem. Basically, you have the content on the site: ie. login, your friend has posted a picture, etc. When you turn on the language app, it converts it. So when you're on pirate language it all changes to: ie: login = abandon ship, your friend = your matey, etc.
  6. The only thing is with the arrays and defining, is it could be any word that i need changed. The site/cart and run dynamically, so if the client adds a new word that isn't in the array, it'll still be in english. I was hoping to have a function or something that just found words and converted them. The pirate language function on facebook is a good example. yar mateys
  7. Hmm, this seems like it will be harder than anticipated, but atleast i have a starting point. thanks!
  8. Hey, I've built my own cart, etc. I just want to be able to convert the whole site to french when a user chooses to do so. Instead of having to create multiple versions of the site in each language.
  9. Hey, I have a client who wants to run his store site in many different languages. Is there a way to install language packs that the end user can choose? Kind of like facebook's language app, where the whole site is affected, not just chunks of text if wrapped in a function?! thanks, envex
  10. new rule, no 1am postings Try this one. [attachment deleted by admin]
  11. Hey, I just finished a project using the paypal sdk. I found an example from a website that i can't seem to remember, but i have all the original files. The person stripped out all the unnecessary stuff, and it's pretty straight forward. Once again, i did not create this script, just sharing the goodness. [attachment deleted by admin]
  12. So would you be able to suggest a better way to handle the cart items?
  13. Hey, I'm building a cart for a client and i've run into a problem. I am putting the cart contents into a mysql database and using a session id to pull the contents when the user is in the cart. The products are on domain.com and the cart is located at secure.domain.com. I seem to be losing the session id between locations because of the subdomain. Is there a way i can force the session id to stay the same between domains, or is there a better way to store/retrieve the cart contents other than session id. Thanks, envex
  14. Hey, Thanks for the response. 95% of the time it's just me working on the php/mysql development. I just want a way that i can work and not interfere with the current live site, in the most productive way
  15. Hey, My company has a website that is mysql and php driven. We are constantly adding new features and tweaking old ones, but we don't like to make changes while the page is live. This is more of a "how do you do it" discussion. I'm wondering what the best way would be to setup a development environment would be. Should i just dup the file and rename it? Subversion? Subdomains? Thanks, envex
  16. That makes sense, I'm using the cron through dreamhosts panel, i'm just going to grab the absolute path, and try hard coding it in. Thanks.
  17. You'll have to figure out the id of the id of the first row: $query = mysql_query('SELECT `id` FROM `table` ORDER BY `id` ASC'); $result = mysql_fetch_assoc($query); $delete = mysql_query("DELETE FROM `table` WHERE `id` = '$result[id]' LIMIT 1");
  18. I'm using $_SERVER['DOCUMENT_ROOT'].'/inc/script.php' for all the paths. still not working.
  19. Hey, I have a set of cron php pages that are set to run everyday. When i view the page through a browser i don't get any errors, but when the cron runs and sends me an email of the status, i get this: Warning: include(/inc/config.php): failed to open stream: No such file or directory in /bill_time.php on line 4 Warning: include(): Failed opening '/inc/config.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /bill_time.php on line 4 Any ideas why the cron would be giving me errors? Thanks, envex
  20. Thanks! Worked like a charm. One more question: This is what i'm grabbing from the database: Last Pay: 2008-8-09 Today: 2008-09-16 Due On: 2008-9-09 Days Left: 7 (your output) As you can see, the payment is past due but it's showing 7 days past. Could i somehow figure out if it's over the due day and return false?
  21. Hey, My last thread wasn't explained very well, and i can't delete it, so i decided to re-word it a it better. I have 2 dates: Last payment: 2008-09-15 Today: 2008-10-02 Next Payment: 2008-10-15 I need to figure out how many days are remaining until next payment, but the overlapping of months is throwing the number off. Any one have an idea, i think i'm using mktime() and date() improperly. Thanks, envex
  22. echo "<tr><td>$row1[username]</td></tr>"; try removing the ' from the variable name.
×
×
  • 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.