Jump to content

beerguts

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

beerguts's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Good news! It now recognises the subdomain but says there is no site content!?/
  2. Okay. I've created the subdomain but obviously haven't got the path correct as it still isn't showing. The path in the code is declared in variable ( $path ) and it's relative. The main folder is httpdocs and the subdomain folder titled "pilots" is held in there. I tried using the relative path /httpdocs/pilots but doesn't seem to work
  3. No problem. So essentially if I create the subdomain exactly the same as previously (except with the new domain name included). From there find the path to which it refers and amend that to the new subdomain name, that should be all that is required? Thanks for your help and your patience!
  4. Hi Everyone, I have just restarted a website that has been offline for a few months (I didn't design it originally). We have relaunched it under a different domain name. When it was up last time it not only had the main domain ( http://www.mysite.net ) but also had an additional url ( http://somename.mysite.net ). I assume the second one was a subdomain and now it does not display (just blank). The question is, where in my code would I find the path to this site and secondly do I need to create a new subdomain? Any help appreciated.
  5. Awesome! Thanks for your help and the easy to understand explanation - I really appreciate it.
  6. Hi All, I am setting up news articles on the front page of my website so that only the date and subject of the article is displayed as a hyperlink. When the user clicks on the hyperlink they are directed to a page which displays the whole article. I have created the code for the front page no problem: $result = mysql_query("SELECT news_title, news_body, news_id, DATE_FORMAT(news_date, '%D %b %Y') AS formattedRacedate FROM news ORDER BY news_id DESC LIMIT 10 ")or die(mysql_error()); while($article=mysql_fetch_array($result)) { echo "<tr>"; echo "<td width=100px valign='top'>".$article['formattedRacedate']."</td>"; echo '<td><a href="news.php?article=' . $article['news_id'] . '">'. $article['news_title'] . '</a></td>'; echo "</tr>"; } echo "</table>"; this is where my limited PHP knowledge starts to dry up! What code do I need for "news.php" to ensure the correct article is displayed? The URL is correctly displaying the news_id at the end. Thanks in advance for your help
×
×
  • 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.