quote:
Originally posted by Ezra
That's not really what I mean, and yes I use MySql.
I'll try to explain better
In my database I type title_query(3), in my code I query the info from the database to the page, but before it ouputs the data to the website I want title_query($id) to be executed.
as far as i know theres no internal function 'title_query' so i asume thats your php function.
code:
$link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password')
or die('Could not connect: ' . mysql_error());
echo 'Connected successfully';
mysql_select_db('my_database') or die('Could not select database');
$query = 'SELECT * FROM my_table';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
mysql_close($link);
to help theres a basic sql query