Re: update query confusion

2002-06-14 Thread Nick Wilson
ue, MySQL ignores the update > for efficiency.) > *You explicitly set the TIMESTAMP column to NULL. > > HTH! Sure does, cheers Jay. - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: Gn

update query confusion

2002-06-14 Thread Nick Wilson
his is current date when 'updating'? * title VARCHAR * text TEXT I need the date col to remain the same, what am I doing wrong? Much thanks... - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE9CeQ3HpvrrTa

Re: use of substring()

2002-06-13 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Nick Wilson declared > You have an error in your SQL syntax near 'desc FROM news ORDER BY date ' at line 1 Ooops, reserved word! Works great ;-) Any way to add something to it like "" or should I do that

Re: use of substring()

2002-06-13 Thread Nick Wilson
not that, at least not first anyway. Here is what I've get: You have an error in your SQL syntax near 'desc FROM news ORDER BY date ' at line 1 That comes from exactly what you have above, it works without the 'as desc' part but then I have no way to get at it? C

use of substring()

2002-06-13 Thread Nick Wilson
ate' and the first 30 chars from 'text' I've tried this sql: SELECT date, SUBSTRING(text, 0,30) as description FROM table WHERE id = '2'; to no avail. Could someone please explain what I *should* be doing? Many thanks... - -- Nick Wilson // www.explodi

Re: duplicate entries mystery

2002-06-13 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Nick Wilson declared > I'm having some weirdness when inserting from the php api, I do not get > the same results if I use the mysql server directly. Here is the code: Please disregard. It appears to be some bizzare Apache

duplicate entries mystery

2002-06-13 Thread Nick Wilson
value\")"; mysql_connect("localhost", "user", "pass"); mysql_select_db("dbmt"); $result=mysql_query($qry); As you can see, there is nothing special there... So what would cause it to insert *2* records? Many thanks... - -- Nick Wilson // www.explodi

Re: Re: Order by date

2002-05-07 Thread Nick Wilson
s! How strange, the penny dropped whilst I was making a cup of tea and I was sure I had it. Now I /know/ I do. Many thanks Victoria :-) sql - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE81+GXHpvrrTa6L5oRAuMXAJ0clmt

Re: Order by date

2002-05-07 Thread Nick Wilson
not be needed as it is a regular date column and mysql should sort it for me right? - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE819tsHpvrrTa6L5oRAkUjAJ0WsLUYpOkKmWAwvn08m8ewQ6cgM

Re: Order by date

2002-05-07 Thread Nick Wilson
ARY KEY(id) ) and here is my select: $qry="SELECT id, module, week, "; $qry.="DATE_FORMAT(date, \"%d %m %Y\") as date, "; $qry.="ektione, title, teacher_id "; $qry.="FROM $this->table "; $qry.=&quo

Order by date

2002-05-07 Thread Nick Wilson
2003 See what I mean? I can't beleive there is nothing that can be done with sql about this but I can't seem to find anything that will tell me how to do it so a little pointer would be smashing. Many thanks... - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATU

Re: Access denied irregularities

2002-05-06 Thread Nick Wilson
rivileges because as I said, I can connect sometimes and not others. - -- Nick Wilson // www.tioka.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE81oh/HpvrrTa6L5oRApPXAJ4uZhnlEh1uVOUva5QJRXtFq8H82ACfedLj ss8aXzi5/Spgwn2migqqnW4= =HVzX -END PGP

Re: Access denied irregularities

2002-05-06 Thread Nick Wilson
d to user 'nick@localhost using passwore YES' error. - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE81n36HpvrrTa6L5oRAsTCAKCmYg8C6gO98Ci95gUJFFDP29KIGgCgh3AF nA5

Access denied irregularities

2002-05-06 Thread Nick Wilson
f(!$this->link_id) { return FALSE; } $db=mysql_select_db($this->db) or die ("can't select db"); return TRUE; } Many thanks for any help :-) - -- Nick Wilson // www.explodingnet.com -BEGIN

Re: lost root password trouble

2002-04-30 Thread Nick Wilson
Can anyone help me get it right? many thanks everyone :-) - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8zvREHpvrrTa6L5oRAqv1AJ9/HX1j7setmC/ykfa9ztpYHAG/BwCfc3OV

Re: lost root password trouble

2002-04-30 Thread Nick Wilson
t; And of course - are your databases in /var/lib/mysql? yep, they sure are... - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD4DBQE8zuxFHpvrrTa6L5oRAglVAJ4tYxwBLjKVO6LPF1TP9XXh9PfUkwCVGY4t BPPTG3iJQ4w9RzYxuGMbGg== =LuRo

Re: lost root password trouble

2002-04-30 Thread Nick Wilson
ounds reasonable, 2 questions though: * how will I tell where the db's are and how to point it at 'em? * where will I find the error log? Apologies for being so clueless, but many thanks for all the help... - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE---

Re: lost root password trouble

2002-04-30 Thread Nick Wilson
gs > > > It just wrote that message over the command prompt. > It is not hung. > > Just hit enter. Nope, it's hung, I get nothing and not even CTRL-C will stop it, I have to physically close the terminal. - -- Nick Wilson // www.explodingne

Re: lost root password trouble

2002-04-30 Thread Nick Wilson
says 'starting mysqld daemon with databases from /var/lib/mysql' and just hangs any ideas? thanks james.. - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8ztUxHpvrrTa6L5oRAlCrAKC3HOrhNL2XkeUB68EHuYExKzPMIQCdGdji

lost root password trouble

2002-04-30 Thread Nick Wilson
27;ve done: (running on Linux) service mysqld stop /etc/init.d/mysqld --skip-grant-tables // no joy /usr/libexec/mysqld --skip-grant-tables // no joy service mysqld --skip-grant-tables start // no joy I'd appreciate a little help :-) - -- Nick Wilson // www.tioka.com -BEGI

Re: MySQL off-the-shelf product

2002-02-19 Thread Nick Wilson
ojects, Forums and +Articles for website owners - -- Nick Wilson -- |and designers. -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8c029HpvrrTa6L5oRAv0KAKCHcho4UkbYNGUEYEwz7A+4WGrDEwCffSRe Xe8bDDQbSkUwyJn5a6m7RHs= =m5b9

Access denied to apache@localhost

2002-02-12 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sql Hi all I've just set up and the latest problem I have getting started is that 'Access denied for user: apache@localhost' msg. How can I put that right? - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.e

Re: permissions problem

2002-02-12 Thread Nick Wilson
ql_connect($host, $user, $pass); Is that what you mean? BTW er... I have your book here :) - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8ZaNXHpvrrTa6L5oRAiPrAJ435aYGm+c3

Re: visualizing my queries

2002-02-12 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Diana Soares declared > On Wed, 2002-02-06 at 11:22, Nick Wilson wrote: > > 2 tables > > content TipId | AuthId | title | keywords | desc | section | text > > author AuthId | name | email | bio > >

visualizing my queries

2002-02-12 Thread Nick Wilson
other entry in author? I'll be using PHP for the front end. I don't need tecnical help (yet) just a hand seeing how I might plan the code. Many thanks in advance - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATU

Re: permissions problem

2002-02-12 Thread Nick Wilson
FLUSH > PRIVILEGES? Certainly have. - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8ZbGfHpvrrTa6L5oRAmGHAJ4i/zpcnuo+l9NZedwdRi1s923tVACfV2v/ YUD5rUO5rge/da

Re: permissions problem

2002-02-12 Thread Nick Wilson
cess denied to user apache@localhost What next Paul? Much thanks BTW -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com - Before posting, please check: http://www.mysql.com/manual.

permissions problem

2002-02-12 Thread Nick Wilson
mand line but if I try to do the same from a php script I get 'Access denied for user: '@localhost' .. Can somebody please tell me what to do? Many thanks... - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATU

Re: visualizing my queries

2002-02-12 Thread Nick Wilson
d it to insert a new tip in the "content" table), and then > you'll know if the author exists or not. > Hope someone gives a better solution! No, I think you're right, Query the 'author' table first and eiter insert into both or just 'content' using

Access denied to apache@localhost

2002-02-10 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sql Hi all I've just set up and the latest problem I have getting started is that 'Access denied for user: apache@localhost' msg. How can I put that right? - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.e

Re: permissions problem

2002-02-09 Thread Nick Wilson
FLUSH > PRIVILEGES? Certainly have. - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8ZbGfHpvrrTa6L5oRAmGHAJ4i/zpcnuo+l9NZedwdRi1s923tVACfV2v/ YUD5rUO5rge/da

Re: permissions problem

2002-02-09 Thread Nick Wilson
cess denied to user apache@localhost What next Paul? Much thanks BTW -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com - Before posting, please check: http://www.mysql.com/manual.

Re: permissions problem

2002-02-09 Thread Nick Wilson
ql_connect($host, $user, $pass); Is that what you mean? BTW er... I have your book here :) - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8ZaNXHpvrrTa6L5oRAiPrAJ435aYGm+c3

permissions problem

2002-02-09 Thread Nick Wilson
mand line but if I try to do the same from a php script I get 'Access denied for user: '@localhost' .. Can somebody please tell me what to do? Many thanks... - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATU

Re: visualizing my queries

2002-02-06 Thread Nick Wilson
1) deal with the author 'issue', and (2) save the > tip. Fantastic, thanks for taking time out to help me, very much appreciated and you're right of course. - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGI

Re: Re: visualizing my queries

2002-02-06 Thread Nick Wilson
> > I'm not sure I understand you recommendation, would kindly explain a > little more? > > Much thanks... > > - -- > > Nick Wilson > > Tel: +45 3325 0688 > Fax: +45 3325 0677 > Web: www.explodingnet.com > > > > -BEGIN PGP SIGNATURE- >

Re: visualizing my queries

2002-02-06 Thread Nick Wilson
d it to insert a new tip in the "content" table), and then > you'll know if the author exists or not. > Hope someone gives a better solution! No, I think you're right, Query the 'author' table first and eiter insert into both or just 'content' using

Re: visualizing my queries

2002-02-06 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Diana Soares declared > On Wed, 2002-02-06 at 11:22, Nick Wilson wrote: > > 2 tables > > content TipId | AuthId | title | keywords | desc | section | text > > author AuthId | name | email | bio > >

visualizing my queries

2002-02-06 Thread Nick Wilson
other entry in author? I'll be using PHP for the front end. I don't need tecnical help (yet) just a hand seeing how I might plan the code. Many thanks in advance - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATU