Jump to content

cmgmyr

Members
  • Posts

    1,278
  • Joined

  • Last visited

    Never

Everything posted by cmgmyr

  1. Well my code right now is structured well and is easy to maintain and reuse. Usually I have something like this: /css --style.css /includes --/classes ----class.mysql.php ----class.functions.php ----ect. --/nav ----header.php ----footer.php --includes.php <- this is to include all of the classes and config file /js --main.js about.php contact.php index.php but it's not as dynamic as it could be
  2. if you are getting things like BB code in the messages, you can filter for that and not send the email if you find any.
  3. I've been reading up on MVC though some posts on here and some other site with tutorials on them. I also downloaded CodeIgniter and have been playing around with that a little. I was wondering how many people use these frameworks and why? I would rather make my own once I know how they work a little more, any insight on this? Pro's/Con's with using MVC? Thanks, -Chris
  4. I just skimmed through your post so forgive me if this doesn't fit in, but it looks like you just need something to reflect an image. Check this out: http://cow.neondragon.net/stuff/reflection/ all you have to do is include the JS file and add class="reflect" to the image in question. hope that helps
  5. @bills - The next time you feel like that why don't you just sit down and try to meditate (just thinking to yourself in a calm manner) and try and connect with this spirit. It might sound cheesy but if you try and make friends with it, it might make the situation better. It's probably feeling your uneasiness and anxiety about IT being there. If you calm yourself and the spirit then the spirit might feel better about you.
  6. Well I use some other things out there to download music, I was just saying before there was Napster out and other ones it was pretty hard to learn new music.
  7. I think it's a cool fact that they did that. Being a musician the "digital download" has always been a topic since back when Napster first started. I know that there are a few other musicians here, so I'm sure they will appriciate this. On one hand I like downloading tunes to check something out...or to learn it. With playing in a cover band it's insane to think to go out and buy 30 different CD's to learn all the songs you need to fill a set. BUT on the other hand downloading the mp3 is taking some money out of the bands' hands. I think that it's insane that CD's cost $16+ each and some are a lot more. Who ever figures out the balance between physical CD's and digital downloads are going to make a TON of $$$
  8. I like helping here and there where I can. I don't know everything, but I do know a lot. Learning something is easy, using it for something useful isn't that bad, but you don't really KNOW it until you can teach someone else how to do it. Thats the only way that you can master something. It can be as simple as knowing what an IF statement is and how to use it, or it could be a whole programming language.
  9. if you are going to do that, then why make a whole site about it? Just make a plug in for facebook
  10. *bump*
  11. hey roop, thanks for the input. I'll have to put a little more thought into it. The master plan would be to make some other system so that I wouldn't have to change the associations that much. any other ideas?
  12. well..."You get what you pay for". There are TONS of people out there that will do it for a few hundred bucks...but it's only worth a few hundred bucks
  13. I've been working on an admin section that I've been using in a handful of websites so far. I have a structure that works pretty well so far. I would like some insight on how to make a "module". Right now I have a few options in my admin section: - Catalog/Products - Customers - Orders - Files ect... I would like to make these more modular...almost like a plugin where I can upload a directory into "plugins" or something like that and that whole plugin with function 100% (something like wordpress?). Have you guys done something like this before? Any ideas? Suggestions? Problems? Thanks! -Chris
  14. I had a project a little while ago that I had to re-create a front end and back end of a site while keeping the same type of database structure/column names. After I got done my client came to me and said that they wanted certain column names changed after I got done with the work. They pretty much wanted: dealers ======= dname daddress demail ect... turned into: dealers ======= name address email ect... So I had to do back through and change all of those references in a bunch of pages and then re-test everything. So I was wondering if there was a way (easily and efficiently) to make some sort of database map so that I could just change these values in one spot instead of many spots. I was thinking of putting this in some sort of array? So I would have: <?php $dealers = array('dname', 'daddress', 'demail'); $sql = "INSERT INTO dealers (".$dealers[0].",".$dealers[1].",".$dealers[2].") VALUES ('$name','$address','$email')"; //OR $dealers = array('name' => 'dname', 'address' => 'daddress', 'email' => 'demail'); $sql = "INSERT INTO dealers (".$dealers['name'].",".$dealers['address'].",".$dealers['email'].") VALUES ('$name','$address','$email')"; ?> so then I could change that array to: <?php $dealers = array('name' => 'name', 'address' => 'address', 'email' => 'email'); ?> in about 3 keystrokes. I hope this makes sense how I explained it. Any ideas? Suggestions? Problems with this? Anything else? Thanks! -Chris
  15. You can do a couple things: 1. Use something like SMF or PHPBB 2. Read tutorials about how to make a simple BB
  16. no problem. You should do a quick google search or look through the PHP manual for little things like that.
  17. Can you include you code here? and maybe a live link to a site showing us?
  18. <?php echo strlen($email); ?>
  19. <?=BANNER ?> is only used to echo that variable you still need <?php include "defaults.inc"; ?> at the top of your index page
  20. Yes, but it's also good to have that info backed up to reference it later. There is a million things that can happen to your email.
  21. It would be better if you used a MySQL database along with the emails.
  22. Now just try this on one page: <?php define(BANNER, "images/top.jpg"); ?> <div id="PageTitle"> <img src="<?php echo BANNER ?>" alt="Banner"> </div> Then if that works do: defaults.inc <?php define(BANNER, "images/top.jpg"); ?> and your index page: <?php include "defaults.inc"; ?> <div id="PageTitle"> <img src="<?php echo BANNER ?>" alt="Banner"> </div> and you shouldn't have to do this: $banner = BANNER; it kind of defeats the purpose of your defaults file
  23. or you could just start the auto_increment at 100000
  24. do you have short tags enabled on your server?
  25. can you show us the code that you are using?
×
×
  • 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.