Aaron Wolski wrote:
Here's some functions I use in my development which save on connect and
query calls for me.
aaron: i do more or less the same thing. allow me to criticize your
functions in one very important respect: you do not check the return
value of your calls! i would suggest that an
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> I have been writing my queries like this...
>
> $link = mysql_connect ($host, $username, $password);
> $query = "insert into $table ('joe', 15)";
> if ( mysql_db_query($dbname, $query, $link)) { }
>
> But then I was r
Michael,
You can select the Database to run the queries on by using
mysql_select_db($dbname) after you have connected. for example:
$link = mysql_connect($host, $username, $password);
mysql_select_db($dbname, $link);
$query = "INSERT INTO $table ('joe', 15)";
if(mysql_query($query, $link)) {