Please help me with my code Php noob here
Posted: Tue May 23, 2006 8:42 pm
Jcart | Please use
Jcart | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Guys please help me with my syntax, im still familiarizing myself with php tyCode: Select all
$rs4= mysql_query("SELECT IP4 FROM ipadd ORDER BY IP4")or die(mysql_error());
$info4 = (mysql_fetch_array( $rs4 ));
ctr=31;
if (ctr=.$info['IP4'].)
{
print "The available IP is:".$info4['IP4'].;
}
else
{
Print "<b>IP4:</b> ".$info4['IP4']. " <br>";
while($info4 = mysql_fetch_array( $rs4 ))
{
while (ctr==.$info4['IP4'].)
{
ctr++;
if (ctr!=.$info4['IP4'].)
{
print "It works";
}
}
Print "<b>IP4:</b> ".$info4['IP4'] . " <br>";
}
}Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]