[PHP-DB] problem in connecting to mysql from php

2011-06-13 Thread C0mf0rtably Numb
Hello everyone, I am in the process of learning php and I was trying to connect to a mysql database on my own computer(localhost). I have done the following as prerequisites: copied the dll files in system32 removed the semicolon(;) from extension=php_mysqli.dll In spite of doing the above when

Re: [PHP-DB] problem in connecting to mysql from php

2011-06-13 Thread C0mf0rtably Numb
Okay. I tried using that too. If I run this: ?php $link = mysql_connect('localhost', 'root', 'Password123'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; mysql_close($link); ? I get the error: *Fatal error*: Call to undefined function

Re: [PHP-DB] problem in connecting to mysql from php

2011-06-13 Thread Richard Quadling
On 13 June 2011 13:26, C0mf0rtably Numb 08.kus...@gmail.com wrote: Okay. I tried using that too. If I run this: ?php $link = mysql_connect('localhost', 'root', 'Password123'); if (!$link) {    die('Could not connect: ' . mysql_error()); } echo 'Connected successfully';

[PHP-DB] Re: problem in connecting to mysql from php

2011-06-13 Thread C0mf0rtably Numb
Any help? On Mon, Jun 13, 2011 at 5:38 PM, C0mf0rtably Numb 08.kus...@gmail.comwrote: Hello everyone, I am in the process of learning php and I was trying to connect to a mysql database on my own computer(localhost). I have done the following as prerequisites: copied the dll files in

Re: [PHP-DB] Re: problem in connecting to mysql from php

2011-06-13 Thread Richard Quadling
On 13 June 2011 14:12, C0mf0rtably Numb 08.kus...@gmail.com wrote: Any help? On Mon, Jun 13, 2011 at 5:38 PM, C0mf0rtably Numb 08.kus...@gmail.comwrote: Hello everyone, I am in the process of learning php and I was trying to connect to a mysql database on my own computer(localhost). I have

Re: [PHP-DB] Re: problem in connecting to mysql from php

2011-06-13 Thread Richard Quadling
On 13 June 2011 15:28, C0mf0rtably Numb 08.kus...@gmail.com wrote: My php and apache are working fine together. I was doing good with php and apache until I decided to work with mysql. I will have a look at all the links you provided and see if gives me a solution. Thanks. On Mon, Jun 13,

[PHP-DB] Help with AVG()

2011-06-13 Thread Ron Piggott
Hi Everyone I am trying to figure out how to write a SELECT query that will give me the average of `bible_anagrams`.`views` starting on the date specified in `bible_anagrams_rss_feed`.`rss_feed_date` and the previous 6 calendar days (for a total of 7 days). What I am trying to figure out is

[PHP-DB] Re: Help with AVG()

2011-06-13 Thread Jim Giner
you have no WHERE clause in your query. Ron Piggott ron.pigg...@actsministries.org wrote in message news:F6C4EF096B4446CA8AECD201C1E86C39@RonPiggottPC... Hi Everyone I am trying to figure out how to write a SELECT query that will give me the average of `bible_anagrams`.`views` starting on the

[PHP-DB] delete message function

2011-06-13 Thread Chris Stinemetz
I created the below delete function, but it doesn't seem to be working correctly. When I enter the correct password it get my echo Incorrect Password Did not Delete! When I leave the password blank the message will delete from mysql table. Am I missing something?? Thanks in advance, Chris

[PHP-DB] Re: delete message function

2011-06-13 Thread Chris Stinemetz
On Tue, Jun 14, 2011 at 12:31 AM, Chris Stinemetz chrisstinem...@gmail.com wrote: I created the below delete function, but it doesn't seem to be working correctly. When I enter the correct password it get my echo Incorrect Password Did not Delete! When I leave the password blank the message