php-windows Digest 21 Aug 2003 07:20:44 -0000 Issue 1880

Topics (messages 21196 through 21198):

Re: how to establish relationship in Mysql
        21196 by: Alejandro C. Garrammone

Re: Multiple selection in php
        21197 by: Mikey

Re: db connection php & mssql & win2k
        21198 by: giko

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
For what do you want to establish a relationship??...just do a inner join or
a natural join in a query and you must achieve the same results than the
relationship in access.
Or if you want you can install de odbc driver for mysql and work with the
tables in access.

Best regards,

Alex
----- Original Message -----
From: "Thomas Edward Lawrence" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 20, 2003 12:54 PM
Subject: [PHP-WIN] how to establish relationship in Mysql


> May it establish relationship in Mysql as if we can establish relationship
> between tables in Access ? If can , please tell me , I use php Myadmin and
> EMS Mysql manager version 2.5 , thank you .
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
If you mean after the page has been sent to the browser, then no, you can do
anything with PHP - you would need javascript for that.  However, if you
mean that you want certain items to appear pre-selected, the you can do it
quite simply as follows (I have chosen the simplest example, rather than the
most eloquent):

print "<select name='test_select' multiple>";
for ($i = 0; $i < 10; $i++)
{
        print "<option value='$i'";
        if ($i < 5) print " selected";
        print ">";
}

This will pre-select the first five entries, but I hope you get the gist...

Mikey

> -----Original Message-----
> From: Harpreet [mailto:[EMAIL PROTECTED]
> Sent: 19 August 2003 22:13
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Multiple selection in php
>
>
> I want to select multiple rows in a list box. I know PHP does not support
> that.What other ways can I allow user to select multiple options
> other then
> giving them check boxes for each option.
>
> Help is appreciated.
>
> Thanks
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
thak's to all but i resolved with a dsn connection

$con = odbc_connection('dsn_con','un_db','pwd_db');

and odbc function ... ?

I don't know if they function fine....

"Stephen" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Giko
>
> You will need to tell us what the error message it is you get before we
can
> help you.
>
> Stephen
>
>
> ----- Original Message ----- 
> From: "giko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, August 20, 2003 9:06 AM
> Subject: [PHP-WIN] db connection php & mssql & win2k
>
>
> > hi,
> >
> > i try
> >
> > $serdb="LOCALMACHINE"; #the name of the SQL Server
> > $dbdb="dbname"; #the name of the database
> > $userdb="userdb"; #a valid username
> > $passdb="passdb"; #a password for the username
> >
> > # one line
> > $con=odbc_connect("Driver={SQL
> > Server};Server=".$serdb.";Database=".$dbdb,$userdb,$passdb)or die("
> > connessione non riuscita");
> > # one line
> >
> > but it doesn't work ...
> >
> > can anyone help me please?
> >
> > bye
> >
> > thank's a lot
> >
> >
> >
> > -- 
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>



--- End Message ---

Reply via email to