Hello! I have a problem with the HTML version add link ... wml version in the works perfectly, but in html version shows that the link is added but can not see subtitles link ...
in this code echo "$link $del<br/>";
$link can not be. Help please
Code:
else if($action=="links") { addonline(getuid_sid($sid),"<b> Add link HTML</b>","index.php?action=$action"); $pstyle = gettheme($sid); echo xhtmlhead("Dodaj link",$pstyle); $nick = getnick_uid(1); echo "<p align=\"center\"><b>Pre nego sto postavis tvoj link obrati se Adminu </b><br/> <a href=\"index.php?action=viewuser&who=1&sid=$sid\">srecnici</a><br/><br/></p>"; echo "<p align=\"center\">"; $url = $_GET["url"]; $title = $_GET["title"]; $links[0]= $_GET["links[0]"]; $query = mysql_query("SELECT url, title FROM lib3rtymrc_links"); while ($links = mysql_fetch_array($query)) { $link = "<a href=\"$links[0]\">$links[1]</a>"; if (isowner(getuid_sid($sid))) { $del = "<a href=\"modproc.php?action=linkdel&sid=$sid&link=$links[0]\">[Obrisi]</a>"; } echo "$link $del<br/>"; } echo "<br/><br/><br/>"; //if(ismod(getuid_sid($sid))) { echo "<a href=\"index.php?action=addlink&sid=$sid\">Add Link</a><br/>"; } $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "<img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/> <a href=\"index.php?action=main&sid=$sid\">"; echo "HAPPY</a>"; echo "</p>"; echo xhtmlfoot(); } ////////////////////////// link////////////////////////// else if($action=="addlinks") { addonline(getuid_sid($sid),"<b> Add link HTML</b>","index.php?action=$action"); $pstyle = gettheme($sid); echo xhtmlhead("Dodaj link",$pstyle); echo "<p align=\"center\">"; $url = $_POST["url"]; $title = $_POST["title"]; $url = $_GET["url"]; $title = $_GET["title"]; echo $site; $res = mysql_query("INSERT INTO lib3rtymrc_links SET url='".$url."', title='".$title."'"); if($res) { echo mysql_error(); echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Link $title je uspesno dodat<br/>"; }else{ echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Greska u dodavanju Linka<br/>"; } echo "<br/>"; echo "<a href=\"index.php?action=links&sid=$sid\">Linkovi</a><br/>"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "<img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/> <a href=\"index.php?action=main&sid=$sid\">"; echo "HAPPY</a>"; echo "</p>"; echo xhtmlfoot(); } ///////////////// Add link else if($action=="addlink") { addonline(getuid_sid($sid),"<b> Add link HTML</b>","index.php?action=$action"); $pstyle = gettheme($sid); echo xhtmlhead("Dodaj link",$pstyle); echo "<p align=\"center\">"; echo "Unesi url adresu linka<br/>"; echo "<form action=\"index.php?action=addlinks&sid=$sid\" method=\"post\">"; echo "<b>Url</b><br/>"; echo "<input name=\"url\"/><br/>"; echo "<b>Naziv linka</b><br/>"; echo "<input name=\"title\"/><br/>"; echo "<br/><input type=\"Submit\" Name=\"Submit\" Value=\"Add\"></form>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=links&sid=$sid\">Linkovi</a><br/>"; $thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'")); $themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'")); echo "<img src=\"images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/> <a href=\"index.php?action=main&sid=$sid\">"; echo "HAPPY</a>"; echo "</p>"; echo xhtmlfoot(); }
$link can not be. Help please
Comment