KD,
thanks for your reply first ..
the adminstrator will input abput 40 name with emails ( maybe without emails )
so, If I did as u said .. it will be very hard ^_^
liter :
thanks you too, I had the idea .. but I didn't know how to make it ..
but Now thanks to my god, I did it ..
and that's :
PHP Code:
$all = "alahli[www.com]-zamalik-wa7dat[www.e.com]";
$a = explode('-',$all);
$v = array();
//
foreach($a as $val){
$v = explode('[',$val);
$v[1] = str_replace('[','',$v[1]);
$v[1] = str_replace(']','',$v[1]);
echo "Name: $v[0] - Site: $v[1]<br>";
$ins = @mysql_query("INSERT INTO allteams (at_name,at_url)
VALUES ('$v[0]','$v[1]')");
if(!$ins){
echo "<br>[Error] in $v[0]:$v[1]<br>";
}
}
Bookmarks