i have a mySQL table thats set up with userID as the primary key and its increasing by 1 every time i add another user. Login and register both work. But when i try to add data to those tables later, i get really lost. My currenty code is set like this
where title 1 and text 1 would be the title and content for one of the profile pages. But i always get an error. Does anyone know what my code should look like, or is anyone interested in joining the project?$query = "REPLACE INTO UserData (userID, title1, text1) VALUES ('$userID', '$title1', '$text1')";
if(!mysql_query($query)) {
fail("Error inserting $userID, $title1, $text1");
}