View Full Version : سوال: کد من درسته
capitan_nemesis
یک شنبه 30 فروردین 1394, 14:10 عصر
با سلام
به این عکس نگاه کنید
http://8pic.ir/images/vsc2gg40bymogscabirp_thumb.png (http://8pic.ir/viewer.php?file=vsc2gg40bymogscabirp.png)
یه نوشته داره
سلام خوبی ؟؟؟ چه خبر ؟؟؟
ولی این اشتباه هستش
این درسته
سلام
خوبی ؟؟؟
چه خبر؟؟؟
چکار کنم این درست بشه ؟؟؟
ممنون
j_naroogha@yahoo.com
یک شنبه 30 فروردین 1394, 14:16 عصر
خب br چاپ کن.....
capitan_nemesis
یک شنبه 30 فروردین 1394, 14:20 عصر
<!DOCTYPE html>
<html>
<head>
<link href="css/normalize.css" rel="stylesheet">
<link href="css/header.css" rel="stylesheet">
<link href="css/body.css" rel="stylesheet">
<link href="css/menu.css" rel="stylesheet">
<link href="css/contect.css" rel="stylesheet">
<link href="css/footer.css" rel="stylesheet">
<link rel="stylesheet" href="css/block.css">
<title>مطالب</title>
<meta charset="utf-8">
</head>
<body>
<!-- header -->
<header id="header">
<hgroup>
<h1>خوش آمدید به سایت من</h1>
<h4>نویسنده سایت دکتر حمید رضا صادقی صدر</h4>
</hgroup>
<menu id="menu">
<li><a href="main.php">صفحه اصلی</a></li>
<li><a href="gallery.php">گالری</a></li>
<li><a href="typic.php">مطالب</a></li>
<li><a href="about_us.php">درباره ما</a></li>
<li><a href="contact_us.php">تماس با ما</a></li>
</menu>
</header>
<!-- contect -->
<div id="contect">
<br>
<?php
$local = "localhost";
$user = "root";
$pass = "";
$data = "smakian";
$conn = new mysqli ( $local , $user , $pass , $data);
$conn->query('set names utf8');
$conn->set_charset("utf8");
$res = $conn->query("select * from tb_typic");
while($rol = $res->fetch_assoc())
{
?>
<div class="block">
<div style="background-color:#9F9; width:auto; height:40px; margin-bottom: 10px; line-height:38px; padding-right: 10px;">
<p style="color:#F00;"><?php echo $rol['typic_title']; ?></p>
</div>
<div style="padding-right: 20px; padding-left: 20px;">
<?php
echo '<img src="url/'.$rol['typic_image'].'" title="" width="150">';
echo '';
?>
<br>
<p><?php echo $rol['typic_text']; ?></p>
<br>
</div>
</div>
<?php } ?>
<br><br>
</div>
<!-- footer -->
<footer id="up_bg_footer">
<font color="#000000" size="2">تمامی مطالب این سایت مربوط به صدر ماکیان می باشد و هرگونه کپی برداری پیگرد قانونی دارد</font>
</footer>
<address id="down_bg_footer">
<font color="#000000" size="2" id="underline"><a href="mailto:alieclipsephp@gmail.com">برنامه نویس علی چوبدار</a></font>
</address>
</body>
</html>
thacker
یک شنبه 30 فروردین 1394, 14:54 عصر
<!DOCTYPE html>
<html>
<head>
<link href="css/normalize.css" rel="stylesheet">
<link href="css/header.css" rel="stylesheet">
<link href="css/body.css" rel="stylesheet">
<link href="css/menu.css" rel="stylesheet">
<link href="css/contect.css" rel="stylesheet">
<link href="css/footer.css" rel="stylesheet">
<link rel="stylesheet" href="css/block.css">
<title>مطالب</title>
<meta charset="utf-8">
</head>
<body>
<!-- header -->
<header id="header">
<hgroup>
<h1>خوش آمدید به سایت من</h1>
<h4>نویسنده سایت دکتر حمید رضا صادقی صدر</h4>
</hgroup>
<menu id="menu">
<li><a href="main.php">صفحه اصلی</a></li>
<li><a href="gallery.php">گالری</a></li>
<li><a href="typic.php">مطالب</a></li>
<li><a href="about_us.php">درباره ما</a></li>
<li><a href="contact_us.php">تماس با ما</a></li>
</menu>
</header>
<!-- contect -->
<div id="contect">
<?php
$local = "localhost";
$user = "root";
$pass = "";
$data = "smakian";
$conn = new mysqli ( $local , $user , $pass , $data);
$conn->query('set names utf8');
$conn->set_charset("utf8");
$res = $conn->query("select * from tb_typic");
while($rol = $res->fetch_assoc())
{
?>
<div class="block">
<div style="background-color:#9F9; width:auto; height:40px; margin-bottom: 10px; line-height:38px; padding-right: 10px;">
<p style="color:#F00;"><?php echo $rol['typic_title']; ?></p>
</div>
<div style="padding-right: 20px; padding-left: 20px;">
<?php
echo '<img src="url/'.$rol['typic_image'].'" title="" width="150">';
echo '';
?>
<p><?php echo nl2br($rol['typic_text']); ?></p>
</div>
</div>
<?php } ?>
</div>
<!-- footer -->
<footer id="up_bg_footer">
<font color="#000000" size="2">تمامی مطالب این سایت مربوط به صدر ماکیان می باشد و هرگونه کپی برداری پیگرد قانونی دارد</font>
</footer>
<address id="down_bg_footer">
<font color="#000000" size="2" id="underline"><a href="mailto:alieclipsephp@gmail.com">برنامه نویس علی چوبدار</a></font>
</address>
</body>
</html>
capitan_nemesis
یک شنبه 30 فروردین 1394, 15:01 عصر
دستت درد نکه
vBulletin® v4.2.5, Copyright ©2000-1403, Jelsoft Enterprises Ltd.