amar
Posts: 8
|
| Posted: 02/27/2010, 11:40 PM |
|
I was just wondering if CodeCharge has a standard functionality to perform read only transactions? i.e. No insert, update or delete events.
Just imagine a situation where you want to send a forgot password mail to user where NO insert, update or delete is required. All you need to do is do a select query to check if email exists for the user then send an email. How can this be achieved in codecharge way?
Any comment is much appreciated!
_________________
~~ |
 |
 |
datadoit
|
| Posted: 02/28/2010, 11:27 AM |
|
A PHP sample:
global $Connection1;
$db = new clsDBConnection1();
$Result = CCDLookUp("email", "tbl_users", "user_id=" .
CCToSQL(CCGetUserID(), ccsInteger), $db);
$db->close();
if ($Result) {
send'em some mail!;
}
|
|
|
 |
amar
Posts: 8
|
| Posted: 02/28/2010, 1:32 PM |
|
thanks for ur reply... :)
_________________
~~ |
 |
 |
|