View Single Post
  #3  
Old 08-07-2007, 08:26 PM
sarma sarma is offline
Junior Member
 
Join Date: Aug 2007
Posts: 10

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 
($errors);
            }
        } 
}
//findAccounts($Name);
displayTable();


global 
$errors;
if (isset(
$errors)) {
    echo 
'$errors
'
;
}




  
  
    
  

Find Name

Quote:
Originally Posted by mike View Post
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
Reply With Quote