The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
a little code help please
What would I need to do here to only print the ip's that the first 5 numbers in the ip are the same?
Code:
<?php require "./con.php"; include "./header.inc"; $result = mysql_query("SELECT * FROM employees",$db); while ($myrow = mysql_fetch_array($result)) { echo "<table border=1>"; printf("<tr><td width=300><a href=\"%s?id=%s\">%s</a></td> \n", "index.php", $myrow["id"], $myrow["ip"]); printf("<td width=45><a href=\"%s?id=%s&delete=yes\">(DELETE)</td></tr></a>", $PHP_SELF, $myrow["id"]); echo "</table>"; } include "./footer.inc"; ?> |
#2
|
|||
|
|||
somthing like this but compare 1 to each NOT all
similar_text (PHP 3>= 3.0.7, PHP 4 ) similar_text -- Calculate the similarity between two strings |
#3
|
||||
|
||||
i think you could use substr(0,5) i think that takes the first 5 letters of a string
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|