[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

Need to display articles on thier own page using their id from MySQL Database using PHP.

Asked by Rumbanana in PHP and Databases, MySQL Server, PHP Scripting Language

Tags: PHP and MySQL, http://www.freakshowmafia.com

I would like to create a page with a list of links to articles stored in the updates table in my MySQL database that each link to their own separate pages. I know that I can make one article page and link each article to display content dynamically. Example: Click an article title in a list, this link takes you to a page where the article information is shown. I know this can be done by using something like... <a href=\"$self?id=$id\">$title</a></li>\r\n" but I am still very fresh to php and MySQL.

Goals for this question:
1) Display a list of articles ordered by 'id'
2) Each article will have a link that redirects you to a page with the more information from the selected title.

THE CODE FOR THE ARTICLE LIST IS: (Saved as edithome.php)

<div id="edit">
<div id="editupdates"> </div>
<div id="editMiddle">
  <div id="formleft">
 
  <?php

$db = mysql_connect("p41mysql71.secureserver.net", "DBFSM", "PASSWORD");
mysql_select_db ("DBFSM");

if (isset($_POST["save"])) {
$title=htmlspecialchars(trim($_POST["title"]));
$hook=htmlspecialchars(trim($_POST["hook"]));
$content=htmlspecialchars(trim($_POST["content"]));
$tags=htmlspecialchars(trim($_POST["tags"]));
if($title!="") {
$sql="INSERT INTO updates (`title`,`hook`,`content`,`tags`) VALUES ('$title','$hook','$content','$tags')";
$result=mysql_query($sql) ;
}
echo "<b>Article '$title' added!</b>";
}
?>
 
  </div>
      <div id="form" > <br>
        <form method="post">
          <table width="100%" border="0">
            <tr>
              <td>TITLE:</td>
              <td><input name="title" type="text" value="Simple title only." size="45"></td>
            </tr>
            <tr>
              <td>HOOK:</td>
              <td><input name="hook" type="text" value="Keep this text short." size="60"></td>
            </tr>
            <tr>
              <td>CONTENT:</td>
              <td> <textarea name="content" cols="65" rows="13">Tips To Writing A Great Article!-
1. DELETE THIS POST BEFORE POSTING THIS ARTICLE.
2. Make your opinion known.
3. Link like crazy.
4. Write less.
5. 250 Words is enough.
6. Make Headlines snappy.
7. Write with passion.
8. Include Bullet point lists.
9. Edit your post.
10. Make your posts easy to scan.
11. Be consistent with your style.
12. Litter the post with keywords.</textarea></td>
            </tr>
            <tr>
              <td>TAGS</td>
              <td><input name="tags" type="text" value="Separate by commas!" size="60"></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><input name="save" type="submit" value="Post Article"></td>
            </tr>
          </table>
        </form>
      </div>
  </div>
<div id="editBottom"> </div>

<div id="articlelist">
<div id="displayupdates">
</div>
<div id="editMiddle">
LIST OF LINKED ARTICLES GOES HERE
</div>
<div id="editBottom"> </div>
</div>

THE CODE FOR THE RETURNED ARTICLE GOES HERE: (saved as article.php)

<div id="edit">
<div id="editupdates"> </div>
<div id="editMiddle">
RETURNED DATABASE ARTICLE GOES HERE
</div>
<div id="editBottom"> </div>

<div id="articlelist">
<div id="displayupdates">
</div>
<div id="editMiddle">

</div>
<div id="editBottom"> </div>
</div>
</div>

<div id="footer">
<div id="footerImage"></div>
</div>
</div>

</body>
</html>

THANKS VERY MUCH
 
Related Solutions
Keywords: Need to display articles on thier own p…
 
Loading Advertisement...
 
[+][-]09/29/07 10:16 AM, ID: 19984563Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/29/07 10:30 AM, ID: 19984602Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/07 10:47 AM, ID: 19984668Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: PHP and Databases, MySQL Server, PHP Scripting Language
Tags: PHP and MySQL, http://www.freakshowmafia.com
Sign Up Now!
Solution Provided By: Phatzer
Participating Experts: 1
Solution Grade: A
 
[+][-]09/29/07 11:02 AM, ID: 19984734Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/07 11:05 AM, ID: 19984746Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/29/07 11:30 AM, ID: 19984855Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/07 11:33 AM, ID: 19984880Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09/29/07 11:41 AM, ID: 19984897Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/07 11:46 AM, ID: 19984915Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/29/07 11:47 AM, ID: 19984926Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/29/07 11:52 AM, ID: 19984942Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/07 11:53 AM, ID: 19984945Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/29/07 11:55 AM, ID: 19984949Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/29/07 11:56 AM, ID: 19984955Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 / EE_QW_2_20070628