Author | Message | Time |
---|---|---|
blinkdude | Hi , this is in Vb i was wondering how or if i can do this in PHP ... [code] 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 [/code] | November 10, 2003, 6:11 PM |
Grok | That doesn't even work in VB. [code] 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>" [/code] Fixed. | November 10, 2003, 7:05 PM |
blinkdude | i know it dons't work in Vb i want the <a href= for php reasons... i have it like this in vb [code] 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 [/code] i need the same splt in php.... ? can it be done? \ just the splt not this [code] 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 [/code] | November 10, 2003, 9:13 PM |
blinkdude | Let me post my php maybe that will be better [code] //$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 "); } [/code] | November 10, 2003, 9:24 PM |
St0rm.iD | split() is explode() iirc | November 11, 2003, 3:58 AM |