Jump to content

exeterdad

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

exeterdad's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Either one should work!? Are you accessing the script with [a href=\"http://localhost\" target=\"_blank\"]http://localhost[/a] or 127.0.0.1 (loopback) or [a href=\"http://yourIPaddresshere\" target=\"_blank\"]http://yourIPaddresshere[/a]? All of them make a difference. Obviously your colleagues will have to use [a href=\"http://yourIPaddresshere\" target=\"_blank\"]http://yourIPaddresshere[/a] since they are outside of your network. Try it, I bet it works [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] Easy way to test which one works for you is to run phpinfo() with all three methods mentioned above. You will see the difference.
  2. So your suggesting that I add another colum to my articles table and name it something like "appearance", assign each article a "appearance number" Then when I add or edit another article and want it to appear in let's say the 5th slot, I have a function increment each "appearance number" in the table greater than 5? Then have a function that does the exact opposite when that article is deleted? Then when my script displays the article, it sorts them ascending using the numbers from my new "appearance" colum? BTW I'm really thankful for your input.
  3. I don't even have a clue how to go about this. Basically I'm creating a PHP/MySQL site from the ground up. One because I want to understand everything that is going on with the code so I will be able to work on it. I guess I'm making a lite CMS. I have a nice template made, a "backend" so I can write/edit/delete "articles". And many other useful features created. But what I can't figure out, is how to make each article appear in a particular order. I don't know if this is something that is done purely with MySQL or what? I'm not talking about sorting acsending or decending, or by the date. I need to assign a order to the articles, and when I decide that another article should be shown up higher on the list, how will the order of the other articles be updated? I'm not looking for someone to write me the code. But I can't figure out what keywords to Google with to find the answer for myself. Any insight would be greatly appreciated.
  4. [!--quoteo(post=351596:date=Mar 4 2006, 10:15 AM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ Mar 4 2006, 10:15 AM) [snapback]351596[/snapback][/div][div class=\'quotemain\'][!--quotec--] Try this: [code]<?php $config = file('config.pl'); foreach($config as $line) {     if (substr($line,0,1) != '#')         eval($line); } ?>[/code] You really don't need the "if test". Ken [/quote] Brilliant! I'm going to save that for future use! [div align=\"center\"][img src=\"http://www.yamahafz1oa.com/forum/images/smilies/worship.gif\" border=\"0\" alt=\"IPB Image\" /][/div]
  5. If it's simply a config file.... Make a copy of it and rename it???? Then add your tags.
  6. Maybe not the shortest way.... but works for me. [code]<?php $days = floor((strtotime("now") - strtotime("2006-2-25")) / 86400); print $days; ?>[/code]
×
×
  • 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.