Advertisement
Advertisement
| 05.03.2008 at 03:41AM PDT, ID: 23373663 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.03.2008 at 09:30AM PDT, ID: 21492846 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: |
my @next_user = get_next($dbh, $cust_id);
my @previous_user = get_previous($dbh, $cust_id);
sub get_next {
my ($dbh, $id) = @_;
my $sth = $dbh->prepare("select * from sql_table where cust_id = ?");
$sth->execute($id + 1);
my @cust_record = $sth->fetchrow_array;
$sth->finish;
return @cust_record;
}
sub get_previous {
my ($dbh, $id) = @_;
my $sth = $dbh->prepare("select * from sql_table where cust_id = ?");
$sth->execute($id - 1);
my @cust_record = $sth->fetchrow_array;
$sth->finish;
return @cust_record;
}
|
| 05.03.2008 at 09:34AM PDT, ID: 21492865 |
| 05.03.2008 at 09:44AM PDT, ID: 21492903 |
| 05.03.2008 at 10:51PM PDT, ID: 21494678 |
| 05.04.2008 at 10:31PM PDT, ID: 21498270 |
| 05.05.2008 at 12:16PM PDT, ID: 21502264 |
| 05.05.2008 at 12:56PM PDT, ID: 21502527 |
| 05.05.2008 at 01:49PM PDT, ID: 21502885 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: |
my $sth;
if ($r_in->{'sql_read_back'}) {
$sth = $dbh->prepare("SELECT *
FROM sql_table
WHERE cust_id < $r_in->{'id'}
ORDER BY cust_id DESC
LIMIT 1");
}
elsif ($r_in->{'sql_read_forward'}) {
$sth = $dbh->prepare("SELECT *
FROM $sql_table
WHERE cust_id >$r_in->{'id'}
ORDER BY cust_id ASC
LIMIT 1");
}
$sth->execute();
my $result = $sth->fetchrow_hashref();
|