function getCityId( $cd )
{
$sql = "Select id,cntitle from zgy_classplace where cntitle='$cd' ";
$result = mysql_query( $sql ) or die( mysql_error());
if( mysql_num_rows($result ) )
{
$rs = mysql_fetch_array( $result );
return $rs['id'];
}
else
{
return 1;
}
mysql_free_result( $result );
}
本站原創轉載注明來自www.111cn.net/phper/php.html