Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

sql query subroutine check

by maksl (Pilgrim)
on Mar 01, 2003 at 20:59 UTC ( [id://239762]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $chk_arid = "SELECT MAX( arid ) FROM $table where flag = ?";
    my ($arid) = sql_query( $chk_arid , 1 );
    
    ...
      $pub{teaser}, $pub{text}, $pub{links}, $comment, $aid, 
      $pub{newsid}, $pub{keywords}, $pub{description}, 1 )
    or die("Failed to insert new changed sql data :( \n");
    
  2. or download this
    
    sub sql_query {
    ...
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://239762]
Approved by mattriff
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-06-21 12:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.