I am new to php. I know this is going to seem very dumb, but I cannot find a tutorial that details what I need to do with my script. I know there are other ways to do things in my script, but I am trying to walk before I run.
I have converted an html design to php and automated the unique user data from a Php file into the pages.
I don’t seem to be able to transfer by user_id from my table into the unique pages.
The unique webpages work perfectly from the php file I created, so, it is in my databse connection and fetching the data.
I have a id.php page that contains:
<?php $User_Id = "1"; ?>I have a user_data.php page that contains:
<?php require("id.php"); $connect = mysql_connect("localhost", "root", "root"); if(!$connect){ my_sql_select_db("Contact Points",$connect); $query = "SELECT * FROM College WHERE User_Id='" . $User_Id . '"; $results = mysql_query($query); while($row = mysql_fetch_array($results)){ $row[User_Id] = $myUser_Id; $row[username] = $myUsername; $row[password] = $myPassword; $row[active] = $myActive; $row[First_Name] = $myFirst_Name; $row[Last_Name] = $myLast_Name; $row[Year_Grad] = $myYear_Grad; $row[School] = $mySchool; $row[Major] = $myMajor; $row[BIO_info] = $myBIO_info; $row[Home_Phone] = $myHome_Phone; $row[Home_Phone_Dial] = $myHome_Phone_Dial; $row[Cell_Phone] = $myCell_Phone; $row[Cell_Phone_Dial] = $myCell_Phone_Dial; $row[Street_Address] = $myStreet_Address; $row[Address_Line2] = $myAddress_Line2; $row[City] = $myCity; $row[State] = $myState; $row[Zip_Code] = $myZip_Code; $row[Country] = $myCountry; $row[Email] = $myEmail; } } else { die(mysql_error()); } ?>I appreciate any help you can provide.