3 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Kewne

I have made a simple code that will only save to a simple database. I have this code: register_activation_hook(samplePath, 'sample_install'); add_action('admin_menu', 'main'); add_action('user_admin_menu', 'main'); and a function like this : function main(){ <?php if (current_user_can('smessage')) { echo("admin");} else{ if(current_user_can('rmessage')){ echo("other user"); } } } and this the sample_install function from …

Member Avatar for asimegusta
0
186
Member Avatar for Kewne

I have a code: <body> <?php global $wpdb; $sql = ""; $sql = "SELECT * FROM emgAdmin"; $sql = "$sql INNER JOIN wp_posts ON wp_posts.ID = emgAdmin.ID_OfPost "; $ArrResult = $wpdb->get_results($sql); while ($emgAdminResult = mysql_fetch_object($ArrResult)) { echo($emgAdminResult->post_date); } ?> </body> and I'm getting an error that says,"Call to a member …

Member Avatar for Kewne
0
2K
Member Avatar for everton.retweets

Hi Everyone, I am needing some help with a wordpress insert query. I have this update query $qry ="UPDATE `".$wpdb->prefix."comments_real` SET `comment_country` = '$country',`comment_number` = '$phone',`comment_smvcode` = '$ref' WHERE `wp_comments`.`comment_ID` =$comment_id"; how do I change this to insert a new record in a db table called "comments_real" Thanks in advance

Member Avatar for everton.retweets
0
185

The End.