PHP Code:
include ('header.inc');
require_once ('./soapclient/SforcePartnerClient.php');
require_once ('./soapclient/SforceHeaderOptions.php');
require_once ('AccountsAction.php');
session_start();
if (!isset($_SESSION['sessionId'])) {
header('Location: login.php');
exit;
}
$mySforceConnection;
$myUserInfo;
function findAccounts($Name) {
$query = "SELECT Name FROM Account WHERE Name =" . '$name';
// $queryOptions = new QueryOptions(500);
// $response = $connection->query(($query), $queryOptions);
// return $response->records;
}
function displayTable() {
global $mySforceConnection;
$accts = findAccounts($Name);
if ($accts) {
print ('There are currently ' . count($accts) . ' accounts:
');
print '';
}
}
if (isset ($_POST['FindClick'])) {
if (!$_POST['findName'])
{
global$errors;
$errors = ('Please fill name to search.');
}
else
{
$_POST['findName'] = trim($_POST['findName']);
try
{
$result = findAccounts($_POST['findName']);
}
catch (exception $e)
{
print r ($errors);
}
}
}
//findAccounts($Name);
displayTable();
global $errors;
if (isset($errors)) {
echo '$errors
';
}
Find Name:
Quote:
Originally Posted by mike
Sarma I was able to move just this one thread and create a new thread by being an admin on my own site, go figure, lol
Listen I will look into your question today or tomorrow, not sure I will get a chance though, I am getting ready to go on vacation.
Thanks
Mike
|
@mike
its ok mike
have a wonderfull vacation