Loop through flashVars

var tf:TextField = new TextField();
tf.border = true;
tf.width = 200;
addChild(tf);

tf.appendText("params:" + "n");
try {
var keyStr:String;
var valueStr:String;
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
for (keyStr in paramObj) {
valueStr = String(paramObj[keyStr]);
tf.appendText("t" + keyStr + ":t" + valueStr + "n");
}
} catch (error:Error) {
tf.appendText(error.toString());
}

FlashVars

var thetextfield:TextField = new TextField();

thetextfield.width=200;
thetextfield.wordWrap=true;
addChild(thetextfield);

function loaderComplete(myEvent:Event)
{
var flashVars = this.loaderInfo.parameters;
var thevars1 = flashVars.var1;
var thevars2 = flashVars.var2;

thetextfield.text = thevars1;
}

this.loaderInfo.addEventListener(Event.COMPLETE, loaderComplete);

Gravity Forms file upload query

<?php

//Connect to Database
$gravity_post_id = get_the_ID();

$dbc = mysqli_connect('localhost','dankuniv_wp02','H0fx81McyP','dankuniv_wp02')
or die('Error connecting to Database');

//This query gets the secondary ID
$query = "SELECT id
FROM wp_rg_lead
WHERE post_id = $gravity_post_id
LIMIT 0 , 30";

$result = mysqli_query($dbc, $query);
$row = mysqli_fetch_array($result);

//The secondary ID from above
$secondary_id = $row[0];

if ($row[0] != ''){

//This query grabs the file URL
$query2 = "SELECT value
FROM wp_rg_lead_detail
WHERE lead_id = $secondary_id
AND field_number = 3
LIMIT 0 , 200";

$result2 = mysqli_query($dbc, $query2);
$row2 = mysqli_fetch_array($result2);

//Create Source file link:
if ($row2[0] == ''){
//Empty field - exit conditional;
}
else {
echo '<a href="' . $row2[0] . '"><img src="/graphics/download_source.png" /></a>';
}
}

//Close the Connection
mysqli_close($dbc);

?>

Alphabetize your posts

<!-- This is the Plug and Play version -->

<?php query_posts($query_string . '&orderby=title&order=asc'); ?>

<!-- This is the more specific version for your custom theme -->

<?php query_posts('cat=4' . '&orderby=title&order=asc&posts_per_page=10'); ?>

SQL Query

<?php

$dbc = mysqli_connect('localhost','the_database_user','the_database_password','the_database_name') or die('Error connecting to Database');

$query = "SELECT *
FROM table_name
WHERE id = 1
LIMIT 0 , 30";

$result = mysqli_query($dbc, $query);

$row = mysqli_fetch_array($result);

echo $row[0];

//Close the Connection
mysqli_close($dbc);

?>