sybase modules 4 python

Christos Ricudis ricudis at paiko.gr
Thu Mar 25 11:49:43 EET 1999


Hello Constantinos!

  On 25 Mar 99, Constantinos A. Kotsokalis wrote to Christos Ricudis with
subject "Re: sybase modules 4 python":


 >> Egw mporw na sou pw pws na kaneis connections apo PHP kai
 >> C/embedded SQL, esy

 CAK> Telika, pws kanw apo PHP3 connection se remote sybase? :-)))

Arpa ena paradeigma poy eftiaksa :

(nai, nai, kserw, xrhsimopoiw to sa account, kai nai, nai, kserw, den exei
password - psemmata, exei :>)

                                      ,,,
                                     (o o)  File: database.php3
---*reiss*------*schnippel*------oOO--(_)--OOo-------*knabber*-----*fetz*---

<HTML>
<HEAD>
</HEAD>

<BODY>

<?

$cid=sybase_connect("nana","sa","");
if ($cid<0) {
        echo ("Error connecting to server<br>");
        exit;
}
echo ("Sybase Link Identifier : $cid<br>");
$sres=sybase_select_db("phones",$cid);
if ($sres==false) {
        echo ("Error selecting database");
        exit;
}
$r=sybase_query("SELECT * FROM phones",$cid);
echo ("Result query status : $r<br>");
$nof=sybase_num_fields($r);
echo ("<b>0: ");
for ($i=0;$i<$nof;$i++) {
        $finfo=sybase_fetch_field($r,$i);
        echo ($finfo->name);
        echo (" ");
}
echo ("</b>");
echo ("<br>");
$nor=sybase_num_rows($r);
for ($i=0;$i<$nor;$i++) {
        $arr=sybase_fetch_row($r);
        echo("$i: ");
        for ($j=0;$j<$nof;$j++) {
                echo ("$arr[$j] ");
        }
        echo ("<br>");
}

?>

</BODY>
</HTML>

---*reiss*------*schnippel*--------------------------*knabber*-----*fetz*---



--
Christos Ricudis
Prof:    So the American government went to IBM to come up with a data
         encryption standard and they came up with ...
Student: EBCDIC!
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list