hello there,
I'm trying to use the &$array thing to reference the array... I'm not sure if you remember replying to my problem last time but I still can't get it to work.
Do I need the array in a class?? Or do I need to make it global??
Right now I have:
function holdSessions(&$sessionsHeldArray, $total){
GLOBAL $dbName, $orgID, $sessionsHeldArray, $sessionID, $total;
$sessionsHeldArray[$total]="$sessionID";
$total++;
listSessions(&$sessionsHeldArray, $total);
}
Then in my listSessions function:
function listSessions(&$sessionsHeldArray, $total){
GLOBAL $dbName, $orgID, $sessionsHeldArray, $total;
print"<td valign=top><a href=\"sessions.php?section=holdSessions&total=$total&sessionsHeldArray=$sessionsHeldArray&sessionID=$sessionID&orgID=$orgID\">add to cart</a></td>
}
I want it so that when you click on the "add to cart link it takes the sessionID and puts it into the array.
If you could help it would be greatly appreciated!