Using mysql_init() when creating a connection

2004-03-30 Thread Ben Whitesell
I'm having some problems with this function. I have a conn.inc file that
each of my web pages accesses to create the connection to my database, and
I'm trying to use the mysql_init() function but am getting a Call to
undefined function: mysql_init() error. Can someone help me with this?
 
Ben Whitesell
Vysys Support Dept.
918.858.6412
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
 


Issues using Week() or Weekofyear() functions with php

2004-01-16 Thread Ben Whitesell
I'm trying to use the week() or weekofyear() functions in a php script.
Here's a clipping of the code:
 
$sql = SELECT WEEK('2004/06/01');
echo $sql; //used for checking purposes
$week = mysql_query($sql, $link);//where $link is in an inc file
linking that file to this page
echo $week;
 
Here is the result I get:
 
SELECT WEEK('2004/06/01')
Resource id #3
 
Am I doing something wrong? Is this supposed to work? Please help!!! :P
 
Thanks,
Ben