| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: utility.inc,v 1.4.2.11 2009/08/31 04:12:20 dman Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file Utility form, conversion and rendering functions for image processes |
* @file Utility form, conversion and rendering functions for image processes |
| 5 |
*/ |
*/ |
| 372 |
$query_args[] = $fid; |
$query_args[] = $fid; |
| 373 |
} |
} |
| 374 |
|
|
| 375 |
$result = db_query("SELECT nid FROM {$tablename} WHERE ". join(' OR ', $wheres), $query_args); |
$result = db_query('SELECT nid FROM {'. $tablename .'} WHERE '. join(' OR ', $wheres), $query_args); |
| 376 |
|
|
| 377 |
while ($row = db_fetch_array($result)) { |
while ($row = db_fetch_array($result)) { |
| 378 |
// This while is a dummy loop - Just break out and return the first matching node. |
// This while is a dummy loop - Just break out and return the first matching node. |