Hi therealairness,
I am taking the user ID as :
var user_id = '<?php echo $HTTP_SESSION_VARS["ses_cid"]; ?>' ;
so it has to be "user_id" in the query and not "$user_id", isn't it?
I am trying to display the result for checking as :
var del_rec = '<?php echo mysql_query("DELETE FROM member_activity_r WHERE contact_id = user_id"); ?>' ;
alert ( "DEL REC " ) ;
alert (del_rec) ;
It does not show value for del_rec. Whereas for
var quote = '<?php echo mysql_num_rows(mysql_query("SELECT * FROM activity_m")); ?>';
alert ( " QUOTE " ) ;
alert ( quote) ;
This shows the count of rows returned by the query.
Is it that, query returning single row can be processed and query involving multiple rows does not support ?
Can anybody help me further? Is there any other way to solve this problem?