Jump to content

phporcaffeine

Members
  • Posts

    361
  • Joined

  • Last visited

    Never

About phporcaffeine

  • Birthday 02/12/1979

Contact Methods

  • Website URL
    http://mycodetree.com

Profile Information

  • Gender
    Male
  • Location
    Ohio, USA

phporcaffeine's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Script sends out text/plain email using php's mail() construct .... all working fine. However, I had a user use Novell GroupWise to receive an email and it chops the formatting up pretty hard. Specifically, any \r\n characters are translated into =09=0D=0A and carriage returns are replaced with =5F=5F Right now, I am setting UTF-8 in the mail header, anyone know of a better, more universally accepted charset?
  2. A registy class in PHP is a design pattern. http://develturk.com/2009/04/18/php5-object-registry-implementation-a-registry-design-pattern/ All about PHP sessions: http://php.net/manual/en/features.sessions.php
  3. Wrong forum but, window.open(), alert() .... ?
  4. All HTML option tags, like most other HTML tags, must be closed (i.e <option value=''></option>)
  5. Well, your code says that if mysql_affected_rows() != (does not equal) 1, then it will use the header url of the one you specified. So that indicates mysql_affected_rows() is not equaling 1, when you think it should be. Ask yourself why that is? TIP: mysql_query($sql) or die(mysql_error());
  6. Not the right forum however, you'll need a combination of mod_rewrite and mod_alias http://httpd.apache.org/docs/current/mod/mod_rewrite.html http://httpd.apache.org/docs/2.0/mod/mod_alias.html
  7. Although I will tell you that reading any sort of manual in 5 seconds is utterly preposterous and that I think your statement about no one ever having tried this before is rude and absurd (considering the heavyweight attention your post has got from some seriously sick LAMP (that's, Linux, Apache, MySQL and PHP) pros); I'll give you the answer (to your specific question, not that it is the best way to do it) just to satisfy myself. $sql2="SELECT attrb2 fromt table2 where attrb3=".$sql[attrb1]; You had a period, at the end, right before the semi-colon. I knew that because I have tried this before, thousands of times perhaps.
  8. Firstly, $sql2="SELECT attrb2 fromt table2 where attrb3=" . $sql['attrb1']; Here is the part of the manual that deals with quoting: http://php.net/manual/en/language.types.string.php
  9. Sure, that works too. I always try to stick to the OP's logic as much as possible - unless it's a blatant syntax violation or they have specifically asked for alternatives. Your suggestion implements the solution in more of a PHP way of doing things while the double loop scenario is more of a language agnostic way of doing things. Admittedly, this is a PHP forum, so one should expect answers to be language biased. Either way, both solutions would work just fine.
  10. It is not possible to extend multiple classes; a class can only inherit from one base class. So in your illustration, you're trying to get the root class to extend the properties of both a and b? You could do it this way: Base Class | Class A | Class B | Root Class Perhaps you could use some conditional logic to determine which class (a or b) to load? If the methods are similar, could you combine them or use logic to change the behaviors of the methods and eliminate the need for one of the classes altogether.
  11. I would have expected you to replicate the database that your trying to connect to into another database and put me in that one; I wouldn't let anyone in my LIVE database either.
  12. Admittedly, not sure why you would want to ... but here you go: <?php for ($row = 10; $row > 0; $row--) { for ($cnt = 0; $cnt < $row; $cnt++) { $star .= "*"; } echo $star . "<br />"; $star = NULL; } ?> Now, if you want the stars to go the other direction (1-10 instead of 10-1), just flip the direction in which the variables are evaluated.
  13. I appreciate that. Everything that I have is in this thread, the code, and screen shots of the db. If you're asking for credentials to log in to the db, that, I cannot do. Look, I understand about security ... etc - personally I don't care about what is in your database. Regardless, 'everything' that you have, that is posted here, obviously isn't working - so, you try something different. Maybe there is something that you think is irrelevant but is actually the reason it isn't working .... that's what I am getting at. The definition of insanity is doing the same thing, over and over, expecting different results each time. Hope it works out for you.
  14. Purely because I am curious why this wouldn't be working; if you want to PM me some credentials, I have some time to take a look personally.
  15. While I do agree that you need to filter your request down a lot, I'll give you a little shove in the right direction. Start with the area that is echoing out TBA instead of what you think it should be. Why is that variable set to TBA instead of what it should be? Where is that variable set at? Most (if not all) diagnosticians think this way; reverse engineering. Start with the end (albeit undesired) result and work your way all the back to the beginning if needed. Its like doing a maze in reverse. Start with the answer and use it to figure out what the question is.
×
×
  • 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.