Re: [PHP-DB] Working query not able to run with PHP script.

2003-09-19 Thread Sean Burlington
Jonathan Villa wrote: Sorry, I meant referenced in another table not database On Thu, 2003-09-18 at 16:09, Jonathan Villa wrote: I have several tables I want to delete as well as their reference in another database The query produced is this: ==

Re: [PHP-DB] Problem in executing linux command from PHP

2003-09-07 Thread Sean Burlington
Gnanavel wrote: $output=exec("cp file1 file2"); echo "$output"; does not works. can any one help me out of this problem When I was executing the "cp" command it doesn't return anything. But it returned the name of the last file when i executed the "ls" `cp file1 file2` doesn't return anything -

Re: [PHP-DB] SQL Join problem (Firebird)

2003-09-03 Thread Sean Burlington
Evan Morris wrote: Hi all Say you have two tables, TABLE1 and TABLE2. Each table contains (amongst others) a field called SOMEVALUE Now, in TABLE1 SOMEVALUE contains "string1", but in TABLE2 SOMEVALUE contains "string2". Now you join these tables (on SOMEOTHERVALUE) and you loop through the result

Re: [PHP-DB] Problem in executing linux command from PHP

2003-09-02 Thread Sean Burlington
Gnanavel wrote: I have problem in executing linux command $output=exec("ls -a"); echo "$output"; the above coding works, but $output=exec("cp file1 file2"); echo "$output"; does not works. can any one help me out of this problem When I was executing the "cp" command it doesn't return anything.

Re: [PHP-DB] Fw: Mysql Query

2003-08-25 Thread Sean Burlington
Mohammad Saadullah wrote: Hi guys, I am resending the same query again because still stuck on it. I have been working in php/oracle for quite some time now but recently had to shift myself to mysql and I am struggling with a particular query here. what is the query you would write for oracle ?

Re: [PHP-DB] howto merge tables..

2003-08-22 Thread Sean Burlington
FB wrote: Hi, I have 3 similar tables. I want to merge them. The thing I use is 1) SELECT * 2) Make a while statement 3) INSERT each raw into the other table is there a easier way? FB if the columsn are identical insert into table1 select * from table2; insert into table1 select * from table3;

Re: [PHP-DB] array fill/sort question

2003-06-11 Thread Sean Burlington
Snijders, Mark wrote: hi, no the both sollutions won't work cause: I can't sort within a query cause subnetaddr is a varchar ("10.10.10.10") so it will be ordere like this 10.10.10.10 100.10.10.10 60.10.10.10 and that's not good cause 60 is smaller as 100, so with the function ip2long() i will

Re: [PHP-DB] TIMESTAMP -> Y-m-d

2003-06-05 Thread Sean Burlington
nabil wrote: Please help me how to print a timestamp string retrived from the database, and print it as -MM-DD use the mysql date_format fumction DATE_FORMAT(date,format) select date_format(date_field, '%Y-%m-%d') from data; see the mysql docs for more details -- Sean -- PHP Database Mail

[PHP-DB] Access denied for user: '@localhost'

2003-06-03 Thread Sean Burlington
Hi, this problem seems to have appeared after a system upgrade ... command line works fine mysql -uschool -pbonfire school BUT /* Connecting, selecting database */ $link = mysql_connect("localhost", "school", "bonfire") or die("Could not connect : " . mysql_error()); print