/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$placeholders = db_placeholders($values); $result = db_query("SELECT t.s FROM {table} t WHERE t.field IN ($placeholders)", $values); while ($row = db_fetch_object($result)) { $items[] = l($row->title, "node/{$row->s}"); }
Comments
