Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2
mga idol pa check naman po ng codes ko anu po ba mali?
dapat po kasi i didisplay nya lahat ng userid ng mga emails na ilalagay sa textbox kaso ang ng yayari yung last na email lang ang dinidisplay yung id
thanks po
up po pa help
mga idol pa check naman po ng codes ko anu po ba mali?
//explode all separate lines into an array
$textAr = explode("\n", $text);
//trim all lines contained in the array.
$textAr = array_filter($textAr, 'trim');
//loop through the lines
foreach($textAr as $line){
$uid = mysql_query("SELECT * FROM dr_users where mail LIKE '".$line."'; ")
or die(mysql_error());
$data = mysql_fetch_array( $uid );
echo "$line";
dapat po kasi i didisplay nya lahat ng userid ng mga emails na ilalagay sa textbox kaso ang ng yayari yung last na email lang ang dinidisplay yung id
thanks po
up po pa help
Last edited: