|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
problem inserting and altering
Here is the code, when you go to process the form it comes up
"Unable to create your user information. Please Contact the webmaster for help." I dont understand what the problem is. It worked just last week. Altering the table gives me the same problem, it dies after the MySQL_query Thanks for the comments.. Chris <?php // This gathers the information collected from the form $nname = $_POST["newname"]; $npass = $_POST["newpass"]; // This inserts an new entry into the User data base using the collected values mysql_query ("INSERT INTO tphp ('name' , 'pass') VALUES ('$newname' , '$newpass')") or die ("Unable to create your user information. Please Contact the webmaster for help."); // Generates the ID # information to use in the creation of the field data base. $baseid = mysql_query ("SELECT ID FROM tphp WHERE '$nname' = name") or die ("Unable to select your user ID please contact the administrator"); $uid = mysql_fetch_assoc($baseid); $fid = $uid["ID"]; mysql_query ("INSERT INTO flags (intro, user_id) VALUES ('1' , '$fid')") or die ("Unable to create content entry please contact the administrator."); echo "$fid"; ?> |
|
#2
|
|||
|
|||
|
RE: problem inserting and altering
try getting some more error reporting, try for example to insert:
after your mysql_query();... what does it say? |
|
#3
|
|||
|
|||
|
RE: problem inserting and altering
Hey, Thanks for looking at my code, It was a simple quoting problem... Sorry for the bother
Chris |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > problem inserting and altering |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|