Re: [PHP-DB] execute external sql script in php

2002-06-18 Thread fabrizio
Jeff, source command in mysql shell is the same like mysql -u user -p < /home/mysql/mysql_script. if i'm in the mysql shell i do: mysql> source /home/mysql/mysql_script; ...to execute the script. this look to work like a normal query, but in my php script dont work! what's wrong? regards,

Re: [PHP-DB] execute external sql script in php

2002-06-18 Thread Jeffrey_N_Dyke
is this from within the browser? if so, you'd need to open the file, read the contents and execute the script. I don't knwo what 'source' does. but i don't claim to know much either. i may not have heard of this. if you just want to do it from a command line then you use a < after your login