[UPHPU] Update/Replace MySQL query

OgdenNights.com lists at ogdennights.com
Mon Nov 22 11:38:17 MST 2004


That worked beautifully. Thank you very much.
Timothy

On Nov 22, 2004, at 11:25 AM, Lonnie Olson wrote:
> $spec_sql = "REPLACE gen_test_questions  
> (id,category,question,answer_1,answer_2,answer_3,answer_4,corr_answer,e 
> xplination,points,status)
> VALUES (?,?,?,?,?,?,?,?,?,?,?)";
>
> $values = array($new_id, new_category, $sl_question, $sl_answer_1,  
> $sl_answer_2, $sl_answer_3, $sl_answer_4, $new_corr_answer,  
> $sl_explination, $new_points, $new_status);
>
> $spec_result = $db->query($spec_sql, $values);




More information about the UPHPU mailing list