Ето кода
Имам проблем с изкарване на снимка и на ббкоде
като е така дава грешка и на снимката е същото
Някой да помогне?[/code]
Код:
<?
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.
}
}
?>
Код:
echo bbcode($r['nowina']);
Код:
echo " <img src=http://vivaaa.netau.net/site1/news/upload/$r[snimka] width=255px height=200px/><br><br>";