Search results

  1. espfutbol98

    PHP MySQL update

    I'm not sure if I specified excatly what I'm trying to do. I'm trying to replace the information user_email and country from the table users. I got part of this from a script so the password function works but the code I added doesn't. I'm not espically good with coding and I'm trying to figure...
  2. espfutbol98

    PHP MySQL update

    I got the server errors gone; now I just have the error from the code in the page "ERROR". <?php session_start(); if (!isset($_SESSION['user'])) { header("Location: login.php"); } include ('dbc.php'); if ($_POST['Submit']=='Change') { $rsPwd = mysql_query("select user_pwd...
  3. espfutbol98

    PHP MySQL update

    I'm trying to update some info from a php page to a MySQL table. I get the error: Parse error: syntax error, unexpected T_ELSE in page.php on line 41. Even if I troubleshoot, there is always another problem and I'm not to good at PHP. So far the variables are: $username = $_SESSION['user']...
  4. espfutbol98

    Help creating PHP code

    I figured it out. I had to add the user id from the MySQL table to the session cookie so it could be read with $_SESSION['user_id] outside of the database connection ($user_id). Here's the login page:<?php session_start(); ?> <?php if (isset($_SESSION['user'])) { header("Location...
  5. espfutbol98

    Help creating PHP code

    I'm trying to use a script that has usernames, passwords, and ID numbers so when you login, it takes you to your index?[ID number]. I know how to make the id specific page itself (say /123.php) into /index?123 but I don't know how to send just that user there.
Top