Jump to content

Batosi

Members
  • Posts

    32
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.lsrpg.net

Profile Information

  • Gender
    Male
  • Location
    No where

Batosi's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well why dont you just combine both methods. Have your login possible on any page which sends you to logincheck.php, but record the last page visited in a session variable so once they login they will be redirected to that page again.
  2. No once the page loads php will not do any more, you need to use ajax
  3. Yea he can but the point is to make it complex
  4. Exactly so do global $t, $sitename;
  5. <?php $comment = $comment . "\n" . $rec['comment']; ?>
  6. One little update dont just sanitize POST do it for GET aswell. Say you have a profile page and you use profile.php?id=## if you dont sanitize $_GET[id] that can be used against you aswell.
  7. Im not sure I am following what you are doing here but hit me up in mail with a bit more detail into what you are trying to accomplish, rpgs are what I learned to program on I should be able to help you out here.
  8. Either I am tired or this looks pretty good. What you want to do though is declare $counter2 for ($counter=1; $counter<$totalAssets; $counter+=1) { $counter2 = 0; Other than that I dont see any reason it shouldnt work right, when you do this though echo $counter and $counter2 with your other variables
  9. You have to declare your class before you call it so place the full class above it then call it below. Just switch things around but dont try to declare it twice.
  10. Ok when you use $id in the url you then have to get the information with a query in info.php <?php $id = $_GET['id']; $id = mysql_real_escape_string($id); ## always do this!!!! $result = mysql_fetch_assoc(mysql_query("SELECT * FROM `table` WHERE `id` = '$id'")); echo $result['info']; ?>
  11. <?php $sql="update tblstudentsinformation set " . " Last_Name = '$Last_Name'," . " Middle_Name = '$Middle_Name' " . " First_Name = '$First_Name' " . " where Student_Number='$Student_Number'"; // Should be this $sql="update tblstudentsinformation set " . " Last_Name = '$Last_Name'," . " Middle_Name = '$Middle_Name', " . " First_Name = '$First_Name' " . " where Student_Number='$Student_Number'"; ?>
  12. Umm yea dont use get or post for that, umm if you dont want to do database your best bet is use $_SESSION
  13. <?php $_SESSION['extrapart'] = (isset($_GET['county'][0]))?"WHERE County='".mysql_real_escape_string($_GET['county'])."'":""; $query = "SELECT * FROM locations $_SESSSION[extrapart]"; ?>
  14. <?php if (!$error) { ## query } ?>
×
×
  • 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.