$str = ''; foreach($id_array as $value) { $str .= " or id='$value'"; } $query = "SELECT * FROM data WHERE id='".$_GET['id']."' $str ORDER BY date DESC";
WHERE id='1' or id='2' or id='3' ... or id='n'
if(isset($_GET['id'])) $id_array[]=$_GET['id']; if(count($id_array)>0) { $query = "SELECT * FROM data WHERE id in "."('".implode("','",$id_array)."')"." ORDER BY date DESC"; } else echo "не передано ни одного id";
$url = "http://gdata.youtube.com/feeds/api/videos/VIDEO_ID"; $doc = new DOMDocument(); $doc->load($url); $name = $doc->getElementsByTagName("title")->item(0)->nodeValue;
add_filter( 'the_content_more_link', 'modify_read_more_link' ); function modify_read_more_link() { return '<div><a rel="bookmark" class="more" href="' . get_permalink() . '">Читать</a></div>'; }
<p>...</p> <p>...</p> <div><a rel="bookmark" class="more" href="...">Читать</a></div> <div>...</div>