[PHP-DB] variable if statement

2001-08-23 Thread Brian Weisenthal
i want to do something like this: $string=($a==1) OR ($b==2); if ($string) { do something ; } any ideas? i tried using if (eval($string)) but that just gave me errors. thanks -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP-DB] quick http question

2001-08-15 Thread Brian Weisenthal
i need a script to access a html file on the web. i need to pass a login and password to the server. i tried doing http:[EMAIL PROTECTED]:[EMAIL PROTECTED] , it didnt work, anyone have an idea how to do this? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP-DB] some crazy interesting file read business

2001-08-15 Thread Brian Weisenthal
ok so i am trying to read in a file from the webthe catch is there is a username and password involved. my script works becuase i can read in www.yahoo.com. i have tried using file, fopen, and readfile, but with no success. when i try my file which looks like, http://username:[EMAIL

[PHP-DB] simple database question

2001-07-26 Thread Brian Weisenthal
ok this should be an easy one, i am just blanking on it here. i want to link two tables together, a user table and address table. i create the user entry first, then create the address entry. after creating the address entry how do i get the auto_id that was entered in to enter it into the user

[PHP-DB] Re: simple database question

2001-07-26 Thread Brian Weisenthal
oh, using ms sql Brian Weisenthal [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ok this should be an easy one, i am just blanking on it here. i want to link two tables together, a user table and address table. i create the user entry first, the

[PHP-DB] porting from ms sql to mysql

2001-07-26 Thread Brian Weisenthal
anyone know of a good website for information on taking on the task of porting from ms sql to mysql? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

[PHP-DB] MS SQL datetime format problem

2001-07-24 Thread Brian Weisenthal
Hi, I am having trouble setting a datetime in a ms sql database. I can put in a date, but when I add the time i always get an error. this is likely something simple, any thoughts? thanks --Brian -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]