Hey guys im getting really stuck and could use some help,
I have a query that runs like this
$query = sprintf("SELECT TN,point,source FROM table LIMIT ".$_POST['cases']."");
$result = mysql_query($query);
Then in the while loop i am able to echo
echo " ".$row['0']." and ".$row['1']." and ".$row['2']."<br>";
And get the proper result for each $row['']
My problem is when adding these into the insert statement.
mysql_query("INSERT INTO assigned (TN,point,date1,dude,test,row,rows) VALUES (".$row['0'].",".$row['1'].",'$date','$df','$dx','$num',".$row['2'].")");
The only thing holding the queryback is the $row['2'], if i remove and make it '123' it will properly insert row 0 and 1 and the rest of the data. Ive tried almost all combination to get this to work and im having no luck.
%placeholders in the target string.