PHP interesse |
|
sql = "SELECT title, language, script FROM " + SubmitTable + " WHERE title = '" + Convert.ToString(lstSnippets.Items[lstSnippets.SelectedIndices[0]].Text) + "'";
cmd = new MySQLCommand(sql, con);
reader = cmd.ExecuteReaderEx();
while (reader.Read())
{
string Snip_Title = reader[0].ToString();
string Snip_Lang = reader[1].ToString();
byte[] Snip_ScriptBytes = (byte[])reader[2];
string Snip_ScriptString = "";
for (int i = 0; i <= Snip_ScriptBytes.GetUpperBound(0); i++)
{
Snip_ScriptString += Convert.ToChar(Snip_ScriptBytes[i]);
}
sql = "SELECT title, language, script FROM " + SubmitTable + " WHERE title = '" + Convert.ToString(lstSnippets.Items[lstSnippets.SelectedIndices[0]].Text) + "'"; cmd = new MySQLCommand(sql, con); reader = cmd.ExecuteReaderEx(); while (reader.Read()) { string Snip_Title = reader[0].ToString(); string Snip_Lang = reader[1].ToString(); byte[] Snip_ScriptBytes = (byte[])reader[2]; string Snip_ScriptString = ""; for (int i = 0; i <= Snip_ScriptBytes.GetUpperBound(0); i++) { Snip_ScriptString += Convert.ToChar(Snip_ScriptBytes[i]); }
werkt perfect |