[PHP] Re: howto set variablevalue with link?

2003-08-01 Thread Craig Roberts
Yeah - then access the variable in page.php - $_GET['lang'] == "en"; You could then store the language variable in a cookie, session or just pass it from page to page by calling each page with "page.php?lang=xx". Craig Roberts "Kalle Saarinen" <[EMA

[PHP] Re: COUNT(*)

2003-08-01 Thread Craig Roberts
use mysql_fetch_rows(); $result="SELECT COUNT(*) FROM pet"; $sql=mysql_query($result); $number_of_rows = mysql_fetch_rows($sql); while ($row=mysql_fetch_array($sql)){ $pet_name=$row['pet_name']; echo ..; } Craig Roberts "Yury B ." <[EMAIL PROTECTED]> wr

[PHP] Re: reading variables in other script files

2003-08-01 Thread Craig Roberts
inc.php file. Messy: Open file1.php from file2.php and read the variable out of it... ***MESSY, SLOW AND DIRTY*** Craig Roberts "Kalle Saarinen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello > > I was just wondering how can I get value of a varia

Re: [PHP] connecting access (*.mdb) database with PHP

2003-08-02 Thread Craig Roberts
Have a look for MyODBC. I've got Access talking to SQL easily, dont know if it can be done the other way round. Craig Roberts "Skate" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > how can I connect access database(*.mdb) with php? what is

[PHP] Re: LDAP_connect()

2003-08-02 Thread Craig Roberts
Have you enabled the module in php.ini? Uncomment the line extension=php_ldap.dll in php.ini (windows..) I think LDAP support needs to be complied in on Linux but I've never used it so cant say. Craig Roberts "Ron Allen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL P

[PHP] Re: subtracting dates...

2003-08-02 Thread Craig Roberts
arted typing craig :) "John Ryan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > yeah, i was thinking that before i decided to post to the newsgroup. i > thought there was some simple way of doing it and id be wasting my time. > obviosuly not > > > "

[PHP] Re: subtracting dates...

2003-08-02 Thread Craig Roberts
Try something along the lines of if($current_MM < $MM) { $age = $calculatedage - 1; } you'll also need to do something like this with the day of the month if the user's bday is in the current month. at least... i think that works out :$ Craig Roberts "John Ryan" &l