Jump to content

thunderbird22

New Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

thunderbird22's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi guys. What I want to create is really complicated. Well I have a login system that works with post on an external website. I have my own website, but they do not give me access to the database for security reasons, therefore I have to use their login system to verify my users. What their website does is that it has a post, with username and password. The POST website is lets say "https://www.example.com/login". If login is achieved (i.e. username and password are correct), it will redirect me to "https://www.example.com/login/success" else it will redirect me to "https://www.example.com/login/retry". So I want a PHP script that will do that post, and then according to the redirected website address it will return me TRUE for success, FALSE for not successful login. Any idea?? Thanks
  2. Hi guys, I have no idea if this is under AJAX thread, therefore if the moderators can help me, just move it to the correct area. Here is my problem. Using PHP and MySQL I retrieve information from a database and I put them in an html table. After the table is presented, I want the column headers to be clickable and when I click them I want the table to be dynamically ordered by that column. my code goes like this: if (mysql_num_rows($result) > 0) { echo '<table border=1 cellpadding=10>'; echo '<tr><td>ID</td><td>USER</td><td>DEPARTMENT</td><td>AGE</td></tr>'; while ($row = mysql_fetch_object($result)) { echo '<tr>'; echo '<td>' . $row->id; echo '</td>'; echo '<td>' . $row->user; echo '</td>'; echo '<td>' . $row->department; echo '</td>'; echo '<td>' . $row->age; echo '</td>'; echo '</tr>'; } echo '</table>' }
×
×
  • 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.