ballhogjoni Posted April 26, 2007 Share Posted April 26, 2007 I have some type of issue here. for some reason I cannot get these values to write to my db. Any help would be great. if (isset($too_small)) { $sql = mysql_query("SELECT * FROM contact_n_questions LIMIT $from, $max_results"); while($row = mysql_fetch_array($sql)){ if (isset($row['fname'])) { mysql_query("INSERT INTO dispo_tooSmall (fname, lname, position, email, state, areacode, prefix, linenumber, question1, question2, question2q1, question2q2, question2q3, question2q4, question2q5, question2q6, question3, question4q1, question4q2, question4q3, question4q4, question4q5, question5q1, question5q2, question5q3, question5q4, question5q5, question5q6, question6, question7, question8, question9, tandc, comments) VALUES ('$row[fname] $row[lname]','$row[position]','$row[email]','$row[state]','$row[areacode]','$row[prefix]','$row[linenumber]','$row[question1]','$row[question2]','$row[question2q1]','$row[question2q2]','$row[question2q3]','$row[question2q4]','$row[question2q5]','$row[question2q6]','$row[question3]','$row[question4q1]','$row[question4q2]','$row[question4q3]','$row[question4q4]','$row[question4q5]','$row[question5q1]','$row[question5q2]','$row[question5q3]','$row[question5q4]','$row[question5q5]','$row[question5q6]','$row[question6]','$row[question7]','$row[question8]','$row[question9]','$row[tandc]','$comments')"); Quote Link to comment Share on other sites More sharing options...
ballhogjoni Posted April 26, 2007 Author Share Posted April 26, 2007 sorry to waste your time I figured it out. I forgot to seperate 2 values with a comma. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.