RE: [PHP] Php with mysql

2005-05-23 Thread Jay Blanchard
[snip] $sql = "SELECT `User_name` AND `User_pass` FROM `user` WHERE `User_name` = '$_POST['user_id']' AND '$_POST['user_id']' "; [/snip] echo $sql; //to see the query and check the syntax $sql = "SELECT `User_name` AND `User_pass` FROM `user` WHERE `User_name` = '" . $_POST['user_id'] . "' AND

RE: [PHP] Php with mysql

2005-05-23 Thread Mark Rees
(posted again with another syntax error corrected) This is a beginner's guide to SQL syntax, please review it http://www.webdevelopersnotes.com/tutorials/sql/mysql_guide_querying_mys ql_tables.php3?PHPSESSID=fb6c7c7a548b6a271a75d623ce04cc9c The answer to your question (which someone has already g

RE: [PHP] Php with mysql

2005-05-23 Thread Mark Rees
This is a beginner's guide to SQL syntax, please review it http://www.webdevelopersnotes.com/tutorials/sql/mysql_guide_querying_mys ql_tables.php3?PHPSESSID=fb6c7c7a548b6a271a75d623ce04cc9c The answer to your question (which someone has already given in a previous reply to you) is SELECT `User_n

RE: [PHP] php with mysql ( support data manipulation or not )??

2004-08-19 Thread Jay Blanchard
[snip] Regarding to php with mysql , if the php with mysql implement data manipulating like (insert , update , delete ..etc) or just implement the query operation only ??. [/snip] You can do any SQL operation with PHP and MySQL. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] php with mysql COUNT, DISTINCT syntax, might be a bit 0T

2004-02-09 Thread Ryan A
Hey, Thanks for replying. Nope, that didnt work, but i modified my search terms on google and kept on trying with different search terms and got the solution here: http://dbforums.com/arch/230/2002/11/623223 Cheers, -Ryan On 2/10/2004 3:14:21 AM, Shaunak Kashyap ([EMAIL PROTECTED]) wrote: > Try

Re: [PHP] php with mysql COUNT, DISTINCT syntax, might be a bit 0T

2004-02-09 Thread Shaunak Kashyap
Try this: "SELECT COUNT(*), order_number FROM " . $prefix . "_purchases GROUP BY order_number" as your query. Shaunak - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 09, 2004 8:36 PM Subject: [PHP] php with mysql COUNT, DISTINCT sy

Re: [PHP] PHP with MySQL

2002-05-02 Thread Bogdan Stancescu
Ok. Then the second message was even more idiotic. Damn! :) Bogdan Miguel Cruz wrote: >Your message? Actually you're right. I just noticed in the manual: > > The simple form user is a synonym for user@"%". > >miguel > >On Fri, 3 May 2002, Bogdan Stancescu wrote: > >>Um. Sorry. That was idiot

Re: [PHP] PHP with MySQL

2002-05-02 Thread Miguel Cruz
Your message? Actually you're right. I just noticed in the manual: The simple form user is a synonym for user@"%". miguel On Fri, 3 May 2002, Bogdan Stancescu wrote: > Um. Sorry. That was idiotic. > > Bogdan > > Bogdan Stancescu wrote: > > > You can simply grant username instead of usern

Re: [PHP] PHP with MySQL

2002-05-02 Thread Bogdan Stancescu
Um. Sorry. That was idiotic. Bogdan Bogdan Stancescu wrote: > You can simply grant username instead of username@machine. > > Bogdan > > Paras Mukadam wrote: > >> Hi Gurus, >> one MySQL - PHP query : while granting permissions to particular user in >> MySQL, the administrator has to give usernam

Re: [PHP] PHP with MySQL

2002-05-02 Thread Miguel Cruz
On Thu, 2 May 2002, Paras Mukadam wrote: > one MySQL - PHP query : while granting permissions to particular user in > MySQL, the administrator has to give username@machine_address !! Then how > can we connect to MySQL through PHP only by passing "username" as one of the > arguments to mysql_connec

Re: [PHP] PHP with MySQL

2002-05-02 Thread Bogdan Stancescu
You can simply grant username instead of username@machine. Bogdan Paras Mukadam wrote: >Hi Gurus, >one MySQL - PHP query : while granting permissions to particular user in >MySQL, the administrator has to give username@machine_address !! Then how >can we connect to MySQL through PHP only by pas

RE: [PHP] PHP with MySQL

2002-05-02 Thread John Holmes
mysql_connect("host","username","password"); If there is no password, leave it blank. "host" is the name or IP address of the MySQL server. Set it to localhost if it's on the same machine as the script. ---John Holmes... > -Original Message- > From: Paras Mukadam [mailto:[EMAIL PROTECTE

Re: [PHP] PHP with MySQL doubt

2001-03-09 Thread Richard Lynch
You're done. Just add the port into your mysql_connect function. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Pablo Pasq