I have a script, testsql.php that I run and it works well.
Here are the guts:
session_start() ;
require_once("s qlLoginDB.php") ;
mssql_select_db ($database_apbL ogin, $apbLogin);
$_SESSION['curSpeaker'] = '1000129';
query = "SELECT * FROM speakers WHERE iOldSpeakerId=' " .
$_SESSION['curSpeaker'] . "'";
$result = mssql_query($qu ery, $apbLogin);// or die(mssql_error ());
echo "Result: " . $result;
It gives me a resource ID number.
When I call a function from another function from the a main page, and this
script is cut and pasted in, the result comes up empty.
I am at a total loss here.
Shelly
Here are the guts:
session_start() ;
require_once("s qlLoginDB.php") ;
mssql_select_db ($database_apbL ogin, $apbLogin);
$_SESSION['curSpeaker'] = '1000129';
query = "SELECT * FROM speakers WHERE iOldSpeakerId=' " .
$_SESSION['curSpeaker'] . "'";
$result = mssql_query($qu ery, $apbLogin);// or die(mssql_error ());
echo "Result: " . $result;
It gives me a resource ID number.
When I call a function from another function from the a main page, and this
script is cut and pasted in, the result comes up empty.
I am at a total loss here.
Shelly
Comment