Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

	header('Content-Type: text/html; charset=utf-8');
<!doctype html >
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if IE 9]>    <html class="no-js ie9 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="tr-TR"> <!--<![endif]-->
		<base href=""> 
		<meta charset="UTF-8" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
		<meta property="og:locale" content="tr_TR" />
$dbhost  = "XXX";   
$dbkullanici = "XXX";  
$dbsifre  = "XXX";
$dbadi = "XXX"; 
$baglan = mysql_connect($dbhost,$dbkullanici,$dbsifre);

   { ('MYSQL Bağlanamıyor..!!');}  
   { ('MYSQL bağlantısı kuruldu...'); }

mysql_select_db($dbadi,$baglan) or die ("veri tabanına bağlanamıyor");

mysql_query("SET NAMES 'utf8'");

$sor = mysql_query("SELECT post_title, post_name, post_content FROM wp_posts WHERE post_status = 'publish' AND  post_type = 'post' ORDER BY ID DESC limit 6");
$sor2 = mysql_query("SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,140) AS com_excerpt FROM wp_comments LEFT OUTER JOIN wp_posts ON (wp_comments.comment_post_ID = wp_posts.ID) WHERE comment_author != 'TeknoDiyalog' AND comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 6");

while ($listele = mysql_fetch_array($sor)) {
	$post_title = $listele['post_title'];
	$post_name      = $listele['post_name'];
	$post_content            = substr(strip_tags(trim($listele['post_content'])),0,140); 
	echo "
		<a href='$post_name'>

while ($listele = mysql_fetch_array($sor2)) {
	$post_title = $listele['post_title'];
	$comment_author = $listele['comment_author'];
	$com_excerpt = $listele['com_excerpt'];
	echo "
		$comment_author adlı üyemiz $post_title için yorum yazdı.<br/>

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.