Някой може ли да ми сложи странциране ?на този код
Изкам да извежда текс с ббкод
И да изкарва снимка?2
Като добавя това за ббкод ништо не излиза
и за снимката е същото
Код:
<?
ob_start();
include("conf.php");
include_once('bbcode.php');
if (!$_GET[ime])
{
$getime = mysql_query("SELECT * from news order by id asc");
while ($ime = mysql_fetch_array($getime))
{
// gets all the users information.
echo ("<a href=\"mem.php?ime=$ime[ime]\">$ime[ime]</a><br />\n");
// links to a page to view the user's profile.
}
}
ELSE
{
$getime = mysql_query("SELECT * from news where ime = '$_GET[ime]'");
$imenum = mysql_num_rows($getime);
if ($imenum == ime)
{
echo ("Няма хновини");
}
else
{
$profile = mysql_fetch_array($getime);
echo ("<center><b> $profile[ime]</b><br /></center>
nowina $profile[nowina]<br />
AIM Messebger: $profile[aim]<br />
avtor $profile[awtor]");
// in the above code, we display the user's information.
}
}
?>
И да изкарва снимка?2
Като добавя това за ббкод ништо не излиза
Код:
echo bbcode($r['nowina']);
Код:
echo " <img src=http://vivaaa.netau.net/site1/news/upload/$r[snimka] width=255px height=200px/><br><br>";