I think you want mysql_query(), not mysql_execute().
On Sat, Jun 21, 2003 at 02:30:29PM -0700, Erin! wrote:
> ok... so i'm trying to do this database project in php, and it's giving
> me one big problem. the program confirms that it was able to connect
> to my database (mySql running on localhost with apache), but when i try
> to execute a query with it, it returns: Fatal error: Call to undefined
> function: mysql_execute()...
> the line it croaks on is:
> $results = mysql_execute($query);
> my connection:
> $connection = mysql_connect("localhost", "ErinS");
> i have it set up (temporarily) to not require a password. i don't
> understand why it would have problems with mysql_execute() if it has no
> problems with mysql_connect()... i'm rather certain that my sql query
> is correct because i've used sql rather extensively with ASP.
> thanx in advance!!!
> ~Erin
>
>
> =====
> ?The pledge of allegiance to the flag is a pledge to the ideals of our forefathers,
> the men who fought and died in the building of this great nation. It is a pledge to
> fulfill our duties and obligations as citizens of the United States, and to uphold
> the principles of our constitution. And last but not least, it is a pledge to
> maintain the four great freedoms treasured by all Americans: freedom of speech,
> freedom of religion, freedom from want, and freedom from fear.?
> ~Lee Greenwood
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> _______________________________________________
> newbies mailing list
> [EMAIL PROTECTED]
> http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
--
Phillip Hellewell <[EMAIL PROTECTED]>
_______________________________________________
newbies mailing list
[EMAIL PROTECTED]
http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies