View Single Post
  #2  
Old 06-06-2017, 07:22 AM
 
simetria simetria is offline
 

Advanced Member
  
Join Date: Jul 2013
Posts: 77
 

Default Re: Using an ID array to perform a db query

Ok, fixed it.
I will leave it here for anyone looking for something similar...

PHP Code:
require './auth.php';

$prodId = array(177541775517756);
$ids implode(",",$prodId);

$qry "SELECT clean_url AS url FROM xcart_clean_urls WHERE resource_id IN ($ids) ";
$resultTst db_query($qry);

while (
$result_row db_fetch_array($resultTst)) {
   echo 
$result_row['url'];
   
$urls[] = $result_row;

__________________
Thanks.
Reply With Quote