| visionofheaven Wrote: : |
where are all the nukie heads!! |
| Code: : |
| function LinksAddLink($new, $lid, $title, $url, $cat, $description, $name, $email, $submitter) { global $prefix, $dbi; $result = sql_query("select url from ".$prefix."_links_links where url='$url'", $dbi); $numrows = sql_num_rows($result, $dbi); if ($numrows>0) { include("header.php"); GraphicAdmin(); OpenTable(); echo "<center><font class=\"title\"><b>"._WEBLINKSADMIN."</b></font></center>"; CloseTable(); echo "<br>"; OpenTable(); echo "<br><center>" ."<font class=\"option\">" ."<b>"._ERRORURLEXIST."</b><br><br>" .""._GOBACK."<br><br>"; CloseTable(); include("footer.php"); } else { /* Check if Title exist */ if ($title=="") { include("header.php"); GraphicAdmin(); OpenTable(); echo "<center><font class=\"title\"><b>"._WEBLINKSADMIN."</b></font></center>"; CloseTable(); echo "<br>"; OpenTable(); echo "<br><center>" ."<font class=\"option\">" ."<b>"._ERRORNOTITLE."</b><br><br>" .""._GOBACK."<br><br>"; CloseTable(); include("footer.php"); } /* Check if URL exist */ if ($url=="") { include("header.php"); GraphicAdmin(); OpenTable(); echo "<center><font class=\"title\"><b>"._WEBLINKSADMIN."</b></font></center>"; CloseTable(); echo "<br>"; OpenTable(); echo "<br><center>" ."<font class=\"option\">" ."<b>"._ERRORNOURL."</b><br><br>" .""._GOBACK."<br><br>"; CloseTable(); include("footer.php"); } // Check if Description exist if ($description=="") { include("header.php"); GraphicAdmin(); OpenTable(); echo "<center><font class=\"title\"><b>"._WEBLINKSADMIN."</b></font></center>"; CloseTable(); echo "<br>"; OpenTable(); echo "<br><center>" ."<font class=\"option\">" ."<b>"._ERRORNODESCRIPTION."</b><br><br>" .""._GOBACK."<br><br>"; CloseTable(); |
| visionofheaven Wrote: : |
| very strange.... still told me URL existed, only added one URL yet link count has gone up by two. |