Hi, I'm just starting out with PHP and would like to use it with MYSQl databases
I created a simple test and it doesn't return anything, no errors either. I type php test.php at the comand line and it just just runs without errors or any output. I do have data in the database. Any ideas if this simple test can work? I also want to be able to input data to this databsase using variables later on and could use some input / help on that as well.
<?php
mysql_connect('localhost', 'mysql', '');
mysql_select_db('test');
mysql_query('SELECT rtable FROM test') >'/tmp/test.txt';
?>
I created a simple test and it doesn't return anything, no errors either. I type php test.php at the comand line and it just just runs without errors or any output. I do have data in the database. Any ideas if this simple test can work? I also want to be able to input data to this databsase using variables later on and could use some input / help on that as well.
<?php
mysql_connect('localhost', 'mysql', '');
mysql_select_db('test');
mysql_query('SELECT rtable FROM test') >'/tmp/test.txt';
?>