Help with EUMySQL
- Posted by CK Lester <cklester at yahoo.com> Feb 14, 2001
- 470 views
------=_NextPart_000_0068_01C096A6.DE21F9C0 charset="iso-8859-1" include mysql015a.e object dbh, listof, junk dbh =3D mysql_connect({"WIN2000","Administrator",""}) listof =3D mysql_list_dbs( {dbh} ) puts(1,"\n") puts(1, mysql_tablename( listof , 1 ) ) puts(1,"\n") puts(1, mysql_tablename( listof , 2 ) ) puts(1,"\n") puts(1, mysql_tablename( listof , 3 ) ) puts(1,"\n") junk =3D wait_key() ---- The above works. What I want to do, however, is define = Number_of_Open_Databases so I can loop through them (if necessary). When I try x =3D length( listof ), it says length of atom is undefined = (or somesuch). So, listof is an atom... how am I supposed to know how = many databases are open? Thanks! ck ------=_NextPart_000_0068_01C096A6.DE21F9C0 charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2> <DIV><FONT face=3DArial size=3D2>include mysql015a.e</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>object dbh, listof, junk</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>dbh =3D=20 <DIV><FONT face=3DArial size=3D2>listof =3D mysql_list_dbs( {dbh} = )</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>puts(1,"\n")<BR>puts(1, = mysql_tablename( listof , 1=20 ) )<BR>puts(1,"\n")<BR>puts(1, mysql_tablename( listof , 2 )=20 )<BR>puts(1,"\n")<BR>puts(1, mysql_tablename( listof , 3 )=20 )<BR>puts(1,"\n")</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>junk =3D wait_key()</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>----</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>The above works. What I want to do, = however, is=20 define Number_of_Open_Databases so I can loop through them (if=20 necessary).</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>When I try x =3D length( listof ), it = says length of=20 atom is undefined (or somesuch). So, listof is an atom... how am I = supposed to=20 know how many databases are open? </FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks!</FONT></DIV> <DIV><FONT face=3DArial = size=3D2>ck</FONT></DIV></FONT></DIV> ------=_NextPart_000_0068_01C096A6.DE21F9C0--