Hi I'm new to php. I've been able to connect a flash project to a mysql database via amfphp. What i'd like to know is how can I filter out only one row from a table.
This is the script I'm using:
<?php
class CallWP
{
public function __construct()
{
mysql_connect ("address", "user","password");
mysql_select_db ("WordPressDS");
}
/**
* Retrieves tutorial data
*@returns title,description,and url
*/
function getWPtitle()
{
return mysql_query("SELECT post_content FROM wp_posts");
}
}
?>
What I want is to only grab one row of post_content.