Jump to content

hm_ncsm

New Members
  • Posts

    2
  • Joined

  • Last visited

hm_ncsm's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. tnx man ! but my problem dont relate to mysqli and way to connect , I successfully connetct to db and also insert my data but in that 2 rows insert NULL
  2. hello every body hop to have a good day my friends I have a site based on wordpress that I get author id and post id by following codes : <؟php echo (the_author_meta('ID') ); //author id echo (get_post_field('ID', $post_id)) ;//post id ?> now I want save this details in other data base but I cant who know true Answer?? ... by the way I must say that I try to save that details on new data base by this way : <?php $one = the_author_meta('ID') ; $two = get_post_field('ID', $post_id) $con = mysqli_connect('localhost','hm','123','user'); $res = mysqli_query($con,"insert into db (col1,col2) values ('$one','$two') "); ?> but not work
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.