Hi , this is in Vb i was wondering how or if i can do this in PHP ...
Dim Splt() As String
If InStr(Username, "@") Then
Splt() = Split(Username, "@")
<a href=http://www.battle.net/war3/ladder/W3XP-player-profile.aspx?Gateway=Azeroth&PlayerName=Splt(0)>
Else
End if
That doesn't even work in VB.
Dim Splt() As String
Dim a As String
If InStr(Username, "@") Then
Splt() = Split(Username, "@")
a = "<a href=http://www.battle.net/war3/ladder/W3XP-player-profile.aspx?Gateway=Azeroth&PlayerName=" & Splt(0) & ">"
End if
'insert a in something:
Text1.Text = a & "Click Me</a>"
Fixed.
i know it dons't work in Vb i want the <a href= for php reasons... i have it like this in vb
Dim Splt() As String
If InStr(ListView1.SelectedItem.Text, "@") Then
Splt() = Split(ListView1.SelectedItem.Text, "@")
Form15.txtsite.Text = ""
Form15.txtsite.Text = "http://www.battle.net/war3/ladder/W3XP-player-profile.aspx?Gateway=Azeroth&PlayerName=" & Splt(0)
Form15.WebBrowser1.Navigate (Form15.txtsite.Text)
Form15.Show
else
end if
i need the same splt in php.... ? can it be done? \
just the splt not this
Form15.txtsite.Text = ""
Form15.txtsite.Text = "http://www.battle.net/war3/ladder/W3XP-player-profile.aspx?Gateway=Azeroth&PlayerName=" & Splt(0)
Form15.WebBrowser1.Navigate (Form15.txtsite.Text)
Form15.Show
Let me post my php maybe that will be better
//$myrow[username] = Username in frist database
$result = @mysql_query("SELECT * FROM members WHERE id = \"$id\"");
$myrow = mysql_fetch_array($result);
mysql_select_db ("**");
//$myrow2[id] = Username in 2nd database .. if $myrow2[id] == $myrow[username] then say hes online but
//$myrow[username] has to have @azeroth added to it? anyideas?
//duno if this works?
$vb=$myrow[username] . '@Azeroth'
$resualt2=@mysql_query("SELECT * FROM bot WHERE id = \"$vb\"");
$myrow2 = mysql_fetch_array($resualt2);
if ($myrow2[id] == $vb) {
echo (" $myrow2[id] is in the Channel
");
}
else {
echo("
$myrow2[id] not In The Channel
");
}
split() is explode() iirc