[PHP-DB] Re: delete message function

2011-06-13 Thread Chris Stinemetz
On Tue, Jun 14, 2011 at 12:31 AM, Chris Stinemetz 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 > will delete from mysq

[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: Help with AVG()

2011-06-13 Thread Jim Giner
you have no WHERE clause in your query. ""Ron Piggott"" 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 date specified in `bible_a

[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 t

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 1

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.com>wrote: > >> Hello everyone, >> >> I am in the process of learning php and I was trying to connect to a mysql >> database on my own computer(loc

[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.com>wrote: > 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

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: > $link = mysql_connect('localhost', 'root', > > 'Password123'); > if (!$link) { >    die('Could not connect: ' . mysql_error()); > } > echo 'Connected successfully'; > mysql_close($

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: I get the error: *Fatal error*: Call to undefined function mysql_connect() in *C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\a.php* on line *2 *I think there is something wrong with my configuration. On Mon, Jun 13, 2011 at 6:00 PM, mr

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

2011-06-13 Thread mrfroasty
Your error message is about class not found.That means there is no class named "MySQLi".Please use a textbook with online manual http://www.php.net/manual/en/ref.mysql.php On 06/13/2011 02:08 PM, C0mf0rtably Numb wrote: > Hello everyone, > > I am in the process of learning php and I was trying to

[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