Jump to content

trying to use mysql_fetch_array but diffrant way Help :-)!!


Monshery

Recommended Posts

some kinda of post replay form .
it has a continuance in my page :-)
[code]
        $INSERTD = mysql_query("INSERT INTO xxxxxx (id, name, email, massage, show_mail) VALUES                ('$f','$_POST[name]', '$_POST[email]', '$_POST[massage]', '$_POST[show_email]')",$post_LINK);
$post_LINK=mysql_connect('xxxxx','xxxxxx','xxxxxx') or die("Connection fail");
mysql_select_db('xxxxxx',$post_LINK);
$MASSAGES_links = mysql_query("SELECT * FROM xxxxxx",$post_LINK);
/* basicaly here i start showing the table */
while($MASSEGES=mysql_fetch_array($MASSAGES_links))
{
?>
            <table width="427" height="54" border="0">
              <tr>
                <td width="26" height="23"><?php echo $MASSEGES['id'];?></td>
                <td width="117"><span class="style2"><strong>Name:</strong> <?php echo $MASSEGES['name'];?></span></td>
                <td width="250"><span class="style2">
                  <?php if ($MASSEGES['show_mail'] == "show_email") { echo "<strong>Email: </strong> ". $MASSEGES['email']; }?>
                </span></td>
              </tr>
              <tr>
                <td height="23" colspan="3"><p><span class="style2"><strong>Massage: </strong><?php echo $MASSEGES['massage'];?></span> </p>
                    <p>-----------------------------------------------------------------</p></td>
              </tr>
            </table>
          <?php } ?>
[/code]

what i am trying to do and dont know how it
i want it to show the resualt in backward order instead it will show newest raw as last i want it to show the newest as first in page and go on down the table to the oldes

This suppost to be some kinda of post replay form . you have a window to post a replay after you do its just add it to database and then show it in table with fatch array. but its showing me the oldest replay as first in page instead of doing it like a forum which the first replay show's first in the page ..

if anyone will help i will realy much appricate it thanks in advanced.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.