RE: [PHP-DB] douplicate entry

2002-08-29 Thread Russ
mislaid it. Perhaps you could ask for one here or go looking at hotscripts.com. Hope that's of some help... Russ -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 3:06 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] douplicate entry Hi guys, I have

RE: [PHP-DB] How to pass multiple checkbox values thru form??

2002-08-29 Thread Russ
whatver you will with them.. echo checkbox value: $val; } :-) HTH Russ -Original Message- From: Smita Manohar [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 12:19 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] How to pass multiple checkbox values thru form?? hii i have

RE: [PHP-DB] Mail Function

2002-08-27 Thread Russ
$mailTo = [EMAIL PROTECTED]; $mailFrom = From:[EMAIL PROTECTED]; $mailSubject = This is an email...; $mailBody = This is a message; @mail($mailTo,$mailFrom,$mailSubject,$mailBody); Try this, it works for me ;-) Russ -Original Message- From: Manoj Japher [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP-DB] Mail Function

2002-08-27 Thread Russ
Oops! wrong order of arguments... I meant: $mailTo = [EMAIL PROTECTED]; $mailFrom = From:[EMAIL PROTECTED]; $mailSubject = This is an email...; $mailBody = This is a message; @mail($mailTo,$mailSubject,$mailBody,$mailFrom); Russ -Original Message- From: Manoj Japher [mailto:[EMAIL

RE: [PHP-DB] auto_increment problem???

2002-08-25 Thread Russ
)?? Thanks a lot for your help. :-) -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 24, 2002 12:12 AM To: Russ; [EMAIL PROTECTED] Cc: Ross Gerring Subject: Re: [PHP-DB] auto_increment problem??? Russ, Check your docs to confirm this, as you

[PHP-DB] SQL guru needed!

2002-08-20 Thread Russ
as the wrong results are returned. MySQL doesn't throw up an error either. I'm using MySQL 3.23.49-nt-log. Can anyone enlighten me please ?? Cheers Mr Russ Michell Web Applications Developer Itomic.com Email: [EMAIL PROTECTED] Tel: +61 (0)8 9321 3844 Fax: +61 (0)8 6210 1364 Post: PO Box 228, Innaloo

RE: [PHP-DB] SQL guru needed!

2002-08-20 Thread Russ
Cheers for helping me out guys. It proved to fiddly and kludge-like to do what I wanted in SQL (I'll wait until MySQL 4 stable version is about) So I did some stuff with PHP arrays which worked fine. Thanks a lot anyway. Russ -Original Message- From: Ignatius Reilly [mailto:[EMAIL

RE: [PHP-DB] keeping form field data when reloading a form

2002-08-20 Thread Russ
Chip: Just use the names of the fields as the values too: input type='text' name='Email' value='$Email' / HTH :-) Russ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 1:58 AM To: PHP_DB Subject: [PHP-DB] keeping form field data

Re: [PHP-DB] Re: select distinct with all columns

2002-08-13 Thread russ arbuthnot
Perfect! Thanks. I'm still trying to get a handle on the GROUP BY command. It's still a little bit like magic to me. And in the manual, they don't really show how to use it like the way I wanted to use it. Thanks again, russ On Monday 12 August 2002 01:27 pm, Dan Koken wrote: SELECT * FROM

[PHP-DB] select distinct with all columns

2002-08-12 Thread russ arbuthnot
, manufacturer, model, description, picture, created, modified, published FROM equipment WHERE class = microphones; I just got the exact same answer as if i would have done this: SELECT * FROM equipment WHERE class = microphones; so it didn't help. Can anyone offer a hint? Thanks, russ -- PHP

RE: [PHP-DB] Re: Random

2002-08-11 Thread Russ
ORDER BY RAND() Russ -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 1:08 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Re: Random In article 003601c241ad$225775e0$[EMAIL PROTECTED], [EMAIL PROTECTED] says... can someone help me

RE: [PHP-DB] Mail problem

2002-08-01 Thread Russ
email addresses are stored in your DB: @mail($email,$from,$subject,$body); } or am I missing something?? Russ -Original Message- From: Bartek Pawlik [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Mail problem Sorry to be a little

RE: [PHP-DB] Mail problem

2002-08-01 Thread Russ
Just looking at our php.ini file and we use an external machine to send mail with when calling the mail() function. I think you just need to change the directive for the path/URI to the mail server you wish PHP to use, in your php.ini file. HTH :-) Russ -Original Message- From: Bartek

RE: [PHP-DB] problem with where clause

2002-07-24 Thread Russ
In MySQL - SQL you can't use the column alias ('score' in your case) until after the query has been executed. There is a workaround though - see: http://www.sitepointforums.com/showthread.php?s=postid=501671 for more info. Cheers. Russ -Original Message- From: JJ Harrison [mailto

RE: [PHP-DB] the space in php (2)

2002-07-21 Thread Russ
as possible: echo(tda href=javascript:popUp('bios/bio_ . str_replace(% %,,$scoutname) . .html') . $scoutbio . /a/td); } //4). Complete your HTML table: echo /tr /table ; I'm not sure the syntax is 100% correct - best check out the manual eh? ;-) HTH Russ :-) -Original

RE: [PHP-DB] Warnings and Error messages

2002-07-17 Thread Russ
Stick a '@' in front of the function/statement generating the error: @unlink($filname); for example... Russ -Original Message- From: Gabor Niederlaender [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 5:54 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Warnings and Error messages

[PHP-DB] SQL Solution??

2002-07-17 Thread Russ
Hi all: I have a simple MySQL SELECT query: Mr Russ Michell Web Applications Developer Itomic.com Email: [EMAIL PROTECTED] Tel: +61 (0)8 9321 3844 Fax: +61 (0)8 6210 1364 Post: PO Box 228, Innaloo, WA 6918, Australia Street: Suite 24, 158 William St, Perth, WA 6000, Australia

[PHP-DB] SQL query prob

2002-07-17 Thread Russ
to deploy it. Can anyone help me out? Cheers. Russ Mr Russ Michell Web Applications Developer Itomic.com Email: [EMAIL PROTECTED] Tel: +61 (0)8 9321 3844 Fax: +61 (0)8 6210 1364 Post: PO Box 228, Innaloo, WA 6918, Australia Street: Suite 24, 158 William St, Perth, WA 6000, Australia No proof

RE: [PHP-DB] SQL prob (DATE_FORMAT)

2002-07-07 Thread Russ
George: Thanks for that. That's pretty much what I realised anyway, while composing the email. But I thought I'd send it off anyway! Thanks a lot. Russ :-) -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 2:52 PM To: PHP DB Mailing List (E

[PHP-DB] DATE vs INT

2002-07-02 Thread Russ
content as a valid date simply an integer (that we modify for display using PHP) Does anyone know of a way (kludge or otherwise) I may be able to perform such an ORDER BY, so that the dates in an HTML display table column are ordered AS dates while using an INT field format?? Cheers folks. Russ

RE: [PHP-DB] Populating a dropdown list with ENUM values...

2002-06-26 Thread Russ
$select .= \r/select; return $select; }//end function All the best. Russ -Original Message- From: NIPP, SCOTT V (SBCSI) [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 3:38 AM To: '[EMAIL PROTECTED]' Subject: [PHP-DB] Populating a dropdown list with ENUM

RE: [PHP-DB] Finding numbers in a string

2002-06-23 Thread Russ
Seth: You should have another colon ' : ' after your alnum expression: if(ereg([[:alnum:]]+, $textandnumbers, $numbers)) { print($numbersBR); } I'm not sure but you also may want to lose the double quotes or maybe escape them. Good luck. Russ -Original Message- From: Seth

RE: [PHP-DB] Converting values from text to numerical

2002-06-20 Thread Russ
suppose you need to do this to, othewise you'd store your numerical data in another column) like so: Russ|27|6|Michell (stored as a single string in your table) This is my first name, age, height, and surname respectively. You could then just use the explode() function to remove the pipes, and pick

RE: [PHP-DB] Converting values from text to numerical

2002-06-20 Thread Russ
with it..; } else { echo This aint a number so it must be a string, so do stringy things with it...; } Any good? Russ -Original Message- From: Matthew Nock [mailto:[EMAIL PROTECTED]] Sent: Friday, June 21, 2002 1:00 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Converting values from text

Re: [PHP-DB] duplicated entry for key #

2001-12-18 Thread Russ Michell
into the DB will automatically create a new row in which to insert this data. You should really do some basic checking before you do inserts, to ensure you don't have multiple entries: $check = mysql_num_rows($query); if($check != 0) { echo You have a duplicate entry!; } Cheers Russ On Mon, 17 Dec 2001

Re: [PHP-DB] Dumb Question??

2001-12-17 Thread Russ Michell
Russ - Why not (MySQL) extract the field always, and code into your (php) generic mechanism whether or not a particular field under that name appears? Using mysql_fetch_assoc() you could exclude 'modified' from your generic mechanism under particular circumstances. This avoids coding

Re: [PHP-DB] Is MySQL enough for a huge amount of data?

2001-12-14 Thread Russ Michell
Did you go look at: www.mysql.com?? Russ On Fri, 14 Dec 2001 13:27:03 +0100 Andy [EMAIL PROTECTED] wrote: Hi there, I am wondering if I could have MySQL as a DB for an Application which needs to have access a table of 1 Mio entries. And how long would it take to get an entry out

[PHP-DB] Dumb Question??

2001-12-13 Thread Russ Michell
specific to my problem. I have an incling this may not be as easy as I think, so does anyone know of a bodge,kludge or workaround?? Thanks for your time. Russ #---# Believe nothing - consider everything

Re: [PHP-DB] Dumb Question??

2001-12-13 Thread Russ Michell
Sorry! just read-read my post, it should have been: particular column ('modified') *NOT* to appear under specific circumstances, somewhere along... Cheers. Russ On Thu, 13 Dec 2001 12:03:09 + (GMT Standard Time) Russ Michell [EMAIL PROTECTED] wrote: Hi there everyone: I have

Re: [PHP-DB] query to check valid emails

2001-11-28 Thread Russ Michell
'email' respectively. Russ On Sat, 24 Nov 2001 13:06:50 -0500 Noah Spitzer-Williams [EMAIL PROTECTED] wrote: what's the LIKE query to see if an email address is valid? For example, in PHP it's something like if (eregi(^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3

Re: [PHP-DB] query to check valid emails

2001-11-28 Thread Russ Michell
Glad someone knows more than I do, or that chap would be right up a certain creek without a paddle.. Cheers Russ On Wed, 28 Nov 2001 09:44:26 - Jon Farmer [EMAIL PROTECTED] wrote: No this will not do what the original poster requested it will be something like the following select

[PHP-DB] query + loop problem

2001-11-28 Thread Russ Michell
using relevant field names to display correct page content while($row = mysql_fetch_array($result)) { //generic method of extracting rownames according to '$table' (above) goes here }//end loop Does anyone have a clue how to do this??? Many Thanks! Russ

Re: [PHP-DB] query + loop problem

2001-11-28 Thread Russ Michell
. (and a little bit of RFTM on my part r.e: mysql_fetch_assoc() and mysql_fetch_array() ... Many thanks for your help. Russ On Wed, 28 Nov 2001 17:49:54 +0200 Andrey Hristov [EMAIL PROTECTED] wrote: echo table\r\n; while($row = mysql_fetch_assoc($result)) { // if assoc is not available - will work

Re: [PHP-DB] Coding methods (was RE: [PHP-DB] gzip image files)

2001-11-27 Thread Russ Michell
I use the former method when concatenating say a complex SQL query thru a loop or loops, and me being the person I am like to keep things standard and consistant so I use the same method when I wish to concatenate simpler strings. Russ On Tue, 27 Nov 2001 09:28:37 -0600 Boget, Chris [EMAIL

[PHP-DB] Checking inserts

2001-11-21 Thread Russ Michell
don't see how these might do the job. Any help or pointers to web-resources would be most helpful! If useful, I'm using the old fella: MySQL3.22.32 Cheers all. Russ #---# Believe nothing - consider everything

Re: [PHP-DB] consult different databases on different machines

2001-11-20 Thread Russ Michell
Miguel: 1). Are you trying to connect an MS Access database to a MySQL database? 2). Are the databases and servers both/individually remote or local? See if: http://gertrude.anglia.ac.uk/webteam/tips/php_sql/odbc.htm helps you any. Good luck. Russ On Tue, 20 Nov 2001 12:35:29 + Miguel

Re: RE: [PHP-DB] consult different databases on different machines

2001-11-20 Thread Russ Michell
In which case you're best off helping him as I have no idea! Russ On Tue, 20 Nov 2001 08:10:02 -0600 Rick Emery [EMAIL PROTECTED] wrote: 1. He's not trying to connect MS Access to mySQL. He's trying TO ACCESS a mySQL database on a Win-NT machine. 2. Both mySQL servers are remote

Re: [PHP-DB] consult different databases on different machines

2001-11-20 Thread Russ Michell
connections? I guess it depends on the type of query you want from both DB's... I'm sorry but that''s about as far as I can go! Good luck though. Russ On Tue, 20 Nov 2001 14:12:58 + Miguel Loureiro [EMAIL PROTECTED] wrote: Hello Russ: Russ Michell wrote: Miguel: 1). Are you

Re: RE: [PHP-DB] consult different databases on different machines

2001-11-20 Thread Russ Michell
Exactly what I just suggested - hey do we have telepathic abilities or what?? :-) Russ On Tue, 20 Nov 2001 08:21:24 -0600 Rick Emery [EMAIL PROTECTED] wrote: Hey Russ, I'm wondering. Maybe this might work. What do you think?: $server1 = mysql_connect(server_1,user1,password1

[PHP-DB] Retrieve HTML from db

2001-11-20 Thread Russ Michell
* You could cheat and wrap anchor tags around the DB content you want to display as a hyperlink * If you know which variable from the DB you wish to be displayed as a link then: $variable = a href=\yourpage.php\$variable/a; HTH :-) Russ On Tue, 20 Nov 2001 11:54:25 -0400 Joe Van Meer [EMAIL

Re: [PHP-DB] PHP results bold in HTML

2001-11-16 Thread Russ Michell
Do you have a URL we can look at? Russ On Fri, 16 Nov 2001 12:44:14 +0100 Kevin Schaaps [EMAIL PROTECTED] wrote: Hi everyone, I've noticed something strange, and I was wondering if you knew the answer: When I put the results of a query on a HTML page, the data that comes from

Re: [PHP-DB] PHP results bold in HTML

2001-11-16 Thread Russ Michell
Maybe that's it?? Russ On Fri, 16 Nov 2001 12:53:07 +0100 Kevin Schaaps [EMAIL PROTECTED] wrote: Thanks Matt, Here it is: mysql_select_db ($dbname); // - -- // FLEET LIST

Re: [PHP-DB] Need Help on subtract Time

2001-11-15 Thread Russ Michell
Kelvin: If you're using MySQL - go check out: http://www.mysql.com/doc/D/a/Date_and_time_functions.html It has some great little MySQL data and time functions. I have personally found it invaluable. Good luck! :-) Russ On Wed, 14 Nov 2001 15:49:03 -0500 kelvin [EMAIL PROTECTED] wrote: Hi

Re: [PHP-DB] Validation of multiple variables using single include file

2001-11-14 Thread Russ Michell
See the thread at: http://www.phpbuilder.com/forum/read.php3?num=2id=163227thread=162776 for a php solution to this. Thanks to that Vincent chap over there in the netherlands. Russ On Tue, 13 Nov 2001 22:33:12 -0500 CK Raju [EMAIL PROTECTED] wrote: I use PHP with MySQL on Linux box. I

Re: RE: [PHP-DB] inserting array into mySQL

2001-11-09 Thread Russ Michell
As we say here in Dallas: there are two kinds of people...those who live in Texas...and those who wish they did. Texas?? Never heard of it! Is that somewhere north of Manchester? ;-) Russ On Fri, 9 Nov 2001 14:22:22 - matt stewart [EMAIL PROTECTED] wrote: As we say here in Dallas

Re: [PHP-DB] Newbie Question

2001-11-08 Thread Russ Michell
Yes there is: Using a php function called: nl2br() When the data is called from the db and printed to the page use $textdata = nl2br($textdata) This will preserve the enter button being pressed. Regards: Russ On Thu, 08 Nov 2001 09:54:16 -0600 Jay Fitzgerald [EMAIL PROTECTED] wrote: Ok, I

Re: [PHP-DB] mySQL LOAD DATA INFILE

2001-11-06 Thread Russ Michell
be called 'myfile.txt' (with a file suffix) HTH Russ On Tue, 6 Nov 2001 14:56:00 +0200 =?iso-8859-1?Q?Niklas_Lamp=E9n?= [EMAIL PROTECTED] wrote: I have this code: ? $dir = getcwd(); $fpName = tempnam($dir, tableData); $fp = fopen($fpName, w); fputs($fp, $strData); fclose($fp

Re: [PHP-DB] sending bulk emails

2001-11-02 Thread Russ Michell
$email_array_name;$i++( { $mail .= $values,; } $mail .= \$subject\,\$body\,\From: $from\);; Something like that anyway (that's just off the top of my head) Regards. Russ On Fri, 2 Nov 2001 11:26:22 - Cami [EMAIL PROTECTED] wrote: Hi guys, Does anybody know how to send bulk emails

Re: RE: [PHP-DB] sending bulk emails

2001-11-02 Thread Russ Michell
Hmmm this is true - but as someone once wrote on this list: If someone want's to build a car with 4 reverse gears, we can tell them it's not a very good idea, but we can also show them how to do it. Granted though - spam is a little different than cars! Cheers. Russ On Fri, 2 Nov 2001 07:26

Re: [PHP-DB] php bulletin/dicussion board

2001-11-01 Thread Russ Michell
http://phorum.org/ Russ On Thu, 1 Nov 2001 15:52:01 - Tom Hodder [EMAIL PROTECTED] wrote: Hi, can anyone recommend a good php discussion/bulletin board thats free, as I need to choose one and have been over whelmed by the variety available. Cheers Tom Hodder -- PHP

Re: [PHP-DB] Learning PHP Sessions

2001-10-31 Thread Russ Michell
* currently registered session vars Note that a variable used in this way is refered to as 'myvar' and referenced a snormal within the script as: $myvar HTH you out. Russ On Wed, 31 Oct 2001 09:55:33 -0600 Steve Cayford [EMAIL PROTECTED] wrote: This is really off-topic for this list, but... From

[PHP-DB] Re: RE: that book:

2001-10-30 Thread Russ Michell
this is right (and I'm not even convinced myselfanyone??) Cheers Russ On Mon, 29 Oct 2001 15:26:58 - [EMAIL PROTECTED] wrote: Russ: see below for the question I posted and the reply I got. I hope it makes some sense. My Question was: I have a RedHat 7.2 server which I configured

Re: [PHP-DB] Access to MySQL denied

2001-10-26 Thread Russ Michell
the server. Make sure the 'username' @lsh101.siteprotect.com has been granted all the right privileges on the desired database: GRANT SELECT,INSERT,UPDATE,DELETE ON mydb.* TO username@localhost (or [EMAIL PROTECTED]) IDENTIFIED BY 'your_password'; FLUSH PRIVILIGES; HTH. Russ On Fri, 26 Oct 2001

Re: [PHP-DB] date

2001-10-26 Thread Russ Michell
User inserts date as a select menu for day, month and year: $day, $month, $year You swap it around for an insert: $dateinsert = $year . $month . $day Then query the DB: Select blah from blah where blah=blah order by datefield (Let MySQL do the rest) Good luck! Russ On Fri, 26 Oct 2001 12:10

Re: [PHP-DB] mySQL Query and blank fields

2001-10-25 Thread Russ Michell
Assuming you're using MySQL - 35 seconds is all it took to find: http://www.mysql.com/doc/P/a/Pattern_matching.html Good luck! Russ. On Thu, 25 Oct 2001 14:16:40 +0300 =?iso-8859-1?Q?Niklas_Lamp=E9n?= [EMAIL PROTECTED] wrote: How can I query for specified fields that has to contain atleast

[PHP-DB] Recurse thru dir into DB

2001-10-25 Thread Russ Michell
the above kinda eludes me. Any (constructive) comments more than welcome. Kind regards: Russ #---# Believe nothing - consider everything Russ Michell Anglia Polytechnic University Webteam Room

Re: [PHP-DB] PHP and MySQL queries...

2001-10-24 Thread Russ Michell
: day,month,year To perform queries into a MySQL DB re-arrange them: $date = $yearselect . - . $monthselect . - . $yearselect; HTH Russ On Tue, 23 Oct 2001 10:52:41 -0600 Jason [EMAIL PROTECTED] wrote: I am having a hard time setting up a form for users to enter a date in the format of 00/00

Re: RE: [PHP-DB] looped insert

2001-10-24 Thread Russ Michell
NOTE: I didn't read the entire post below...it's too early in the morning to think about code. haha I did that the other day when I tried (and failed) to help out someone else - damn tired, hadn't even had a whiff of beer... Cheers for your help! Russ On Wed, 24 Oct 2001 09:10:59 -0400 Mike

Re: [PHP-DB] Stuck

2001-10-24 Thread Russ Michell
these on the basis that the data in the DB reflects thatwhich was inputed via login form * If they details exist - login * If not refuse Cheers Russ. On Wed, 24 Oct 2001 09:33:21 -0400 Ryan Marrs [EMAIL PROTECTED] wrote: I'm attempting to do basic authentication through PHP and am having little

Re: RE: [PHP-DB] looped insert

2001-10-23 Thread Russ Michell
$columns; $i++) { $names = mysql_field_name($fields, $i) . \n; $catselect .= b$names /binput type=\checkbox\ name=\category[$names]\ value=\yes\br\n; } You can see it happening at: http://gertrude.anglia.ac.uk/intranet/myanet/index.php Many thanks. Russ On Mon, 22 Oct 2001

Re: RE: [PHP-DB] looped insert

2001-10-23 Thread Russ Michell
,rules ,policies ,staffdev ,rules ,policies ) VALUES ('[EMAIL PROTECTED]','[EMAIL PROTECTED]','[EMAIL PROTECTED]') See what I mean? If anyone has any other pointers I would be more than happy to receive them!! Cheers Russ

[PHP-DB] Re: looped insert

2001-10-23 Thread Russ Michell
to be inserted $sql = substr($sql4,0,-1) . ); $query = mysql_query($sql,$connect) or die(mysql_error()); $confirm = You have now been subscribed to the following categories: $category_list; } } Thanks v.much for your concern, but it works quite well now! Cheers. Russ On Tue, 23 Oct 2001 11:39

Re: [PHP-DB] Asigning function values to variables??

2001-10-22 Thread Russ Michell
().; HTH Russ $body .= .box_header('test').; $body .= h1text/h1; $body .= .box_footer().; On Sun, 21 Oct 2001 20:06:55 +0200 Luditus [EMAIL PROTECTED] wrote: Hi there, I am trying to send an email with html tags coming from functions. Something is wrong with asigning the value to the variable

Re: RE: [PHP-DB] Order By for search results ???

2001-10-19 Thread Russ Michell
by that field etc etc * You could also have some_limit set as a number from a select menu again on the web page of search results. Good luck! Russ PS Where is this search engine? can I have a look??? go on - you know it makes sense On Thu, 18 Oct 2001 12:46:25 -0500 Rick Emery [EMAIL PROTECTED] wrote

Re: [PHP-DB] newbie - problems with Select and timestamp(14) calculation

2001-10-18 Thread Russ Michell
(NOW()+0) Not sure what the +0 achieves?? Try with just NOW(). Cheers. Russ On Thu, 18 Oct 2001 11:41:14 +0100 p.whiter [EMAIL PROTECTED] wrote: Hi I am trying to set-up a type of anti-flood block on one of my forms, the way I am doing this is that when the first submission is made I log

Re: RE: [PHP-DB] RE: Excel to MySQL

2001-10-18 Thread Russ Michell
Check this out: http://gertrude.anglia.ac.uk/webteam/tips/php_sql/odbc.htm Step by step instructions on how to connect Access to MySQL (from PC/workstation to remote server) Cheers. Russ On Thu, 18 Oct 2001 13:44:15 +0100 Tony McCrory [EMAIL PROTECTED] wrote: You could try the MyODBC driver

Re: [PHP-DB] wildcard in mysql search with php

2001-10-18 Thread Russ Michell
Sure use: SELECT * FROM table WHERE foo LIKE '%$bar%' selects all records where 'bar' is found somewhere in the search string. See also: http://www.mysql.com/doc/S/t/String_comparison_functions.html HTH :-) Russ On Thu, 18 Oct 2001 15:57:56 +0200 Thomas \omega\ Henning [EMAIL PROTECTED

Re: [PHP-DB] newbie - problems with Select and timestamp(14) calculation

2001-10-18 Thread Russ Michell
Take a good look at the manual page, it helped me out a bunch of times: http://www.mysql.com/doc/D/a/Date_and_time_functions.html Good luck. Russ On Thu, 18 Oct 2001 14:02:34 +0100 p.whiter [EMAIL PROTECTED] wrote: Hi Thanks for your reply, I have tried this using NOW() and NOW()+0

[PHP-DB] Re: PHP and MS Access

2001-10-04 Thread Russ Michell
For information: For step by step info on using ODBC to connect MySQL to M$ Access go to: http://gertrude.anglia.ac.uk/webteam/tips/php_sql/odbc.htm Cheers. Russ On Wed, 3 Oct 2001 15:47:07 -0500 Carlos Augusto Abarca [EMAIL PROTECTED] wrote: This is absolutely not true. Although there isn

Re: [PHP-DB] navigation...

2001-10-03 Thread Russ Michell
-structured set of links. Or type in indented into the phpbuilder search field to find the original thread. If you find a solid way of doing this, please let me know as I'm evaluating wether or not it's actually worth it. Cheers. Russ On Mon, 1 Oct 2001 22:47:30 +0100 deco [EMAIL PROTECTED

Re: [PHP-DB] javascript

2001-09-26 Thread Russ Michell
function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } Click a href=\#\ onClick=\MM_openBrWindow(file.php?myvar=set,mywin,'status=1,toolbar=0'this to open new window/a Good luck. Russ On Wed, 26 Sep 2001 05:41:05 -0700 its me [EMAIL PROTECTED

Re: [PHP-DB] javascript

2001-09-26 Thread Russ Michell
That's a one off though It has NOTHING to do with databases!!! Russ On Wed, 26 Sep 2001 05:41:05 -0700 its me [EMAIL PROTECTED] wrote: hi there.does anyone know how to pass a variable value to the new window i opened with open() of javascript

[PHP-DB] MySQL Hash Function

2001-09-25 Thread Russ Michell
thanks. Russ #---# Believe nothing - consider everything Russ Michell Anglia Polytechnic University Webteam Room 1C 'The Eastings' East Road, Cambridge e: [EMAIL PROTECTED] w: www.apu.ac.uk

Re: [PHP-DB] adding the results of a number of calls to mysql_query

2001-09-24 Thread Russ Michell
If I have the right end of the stick you want: SELECT * FROM table99_98,table00_01 WHERE table99_98.foo='$bar' AND table00_01.foo='$bar'; Russ On Mon, 24 Sep 2001 10:50:02 +0100 Cable, Christian [EMAIL PROTECTED] wrote: system: win NT4 server (IIS4, php4) Problem: I'm writing a web

Re: RE: [PHP-DB] Searching MySQL using LIKE

2001-09-21 Thread Russ Michell
Try: REGEXP 'keyword?'; //Matches Zero or one instances of 'keyword' REGEXP 'keyword+'; //Matches One or more instances of 'keyword' REGEXP 'keyword*'; //Matches Zero or more instances of 'keyword' Cheers. Russ '; On Fri, 21 Sep 2001 04:14:47 -0700 Ralph

[PHP-DB] INSERT prob

2001-09-21 Thread Russ Michell
($insertsql, $connection) or die(mysql_error()); } Can anyone make any suggestions that would help me here? Many thanks in advance! Russ #---# Believe nothing - consider everything Russ Michell

[PHP-DB] Query construction

2001-09-19 Thread Russ Michell
as part of the string in the 'affil_team' field but the above query refuses to find 'footballSat'!! (No error is received though) I'm using MySQL 3.22.32 + php4.0.3pl1 Cheers Russ #---# Believe nothing - consider

Re: RE: [PHP-DB] Query construction

2001-09-19 Thread Russ Michell
as: footballSatfootballSun (etc etc) and also as: footballSat footballSun (etc etc).. Any ideas?? Many thanks. Russ On Wed, 19 Sep 2001 09:12:36 -0500 Rick Emery [EMAIL PROTECTED] wrote: When you printed-out the string variable containing the SELECT statement, what did it look like

Re: RE: RE: [PHP-DB] Query construction

2001-09-19 Thread Russ Michell
etc Cheers again: Russ On Wed, 19 Sep 2001 09:26:07 -0500 Rick Emery [EMAIL PROTECTED] wrote: $query = SELECT * FROM $table_users WHERE usrName='$username' AND usrPswd=password('$password') AND affil_team RLIKE '$team+' print $query what were the contents of $query -Original Message

Re: RE: [PHP-DB] Query construction

2001-09-19 Thread Russ Michell
both, and I apologise for seemingly wasting your time, but I do value people's ideas and opinions, and hopefully others do of mine also. Regards: Russ Michell (APU Webteam) On Wed, 19 Sep 2001 09:41:47 -0500 Rick Emery [EMAIL PROTECTED] wrote: YES!!! Exactly Russ...do what Steve syas

Re: RE: RE: [PHP-DB] Query construction

2001-09-19 Thread Russ Michell
use some help... No he isn't he just thinks he is ;-) Many thanks. Russ On Wed, 19 Sep 2001 10:01:07 -0500 Rick Emery [EMAIL PROTECTED] wrote: It wasn't a waste of time. Now, the next time you have a similar problem with a mySQL query, you'll follow this procedure. Learning is NEVER a waste

Re: SV: [PHP-DB] Straightforward authentication?

2001-09-17 Thread Russ Michell
Thanks for the password/info, however I have one further (possibly bumb) question, is there a commonly employed method of securing one's database to prevent hacker's peering in and viewing plain-text/hashed passwords? I use MySQL 3.22.32 with php4.0.3 Cheers. Russ On Thu, 13 Sep 2001 19:28

[PHP-DB] Straightforward authentication?

2001-09-13 Thread Russ Michell
are able to give. Cheers Russ #---# Believe nothing - consider everything Russ Michell Anglia Polytechnic University Webteam Room 1C 'The Eastings' East Road, Cambridge e: [EMAIL PROTECTED] w

Re: RE: [PHP-DB] Random

2001-09-03 Thread Russ Michell
Try: $result = mysql_db_query ($DBName,select * from Contacts order by rand() LIMIT 0,5 ); As your first example had the '0' and then the '5' after the LIMIT clause, the second didn't have th any '0'. Cheers. Russ On Fri, 31 Aug 2001 20:59:16 +0100 Seb Frost [EMAIL PROTECTED] wrote: I

Re: [PHP-DB] Password Question

2001-08-31 Thread Russ Michell
! Russ On Fri, 31 Aug 2001 10:38:53 -0500 Jeff Oien [EMAIL PROTECTED] wrote: I would like users to be able to request to have their password sent to their email address if they forget it. I would also like it encrypted in the database though. How is this best handled? The security isn't real

Re: [PHP-DB] Password Question

2001-08-31 Thread Russ Michell
Sorry it should have read: if ($check != 0) echo this username already exists, select another.; } else { echo continue!; } Cheers. Russ On Fri, 31 Aug 2001 17:43:59 +0100 (GMT Daylight Time) Russ Michell [EMAIL PROTECTED] wrote: Have a registration screen

[PHP-DB] Fatal error

2001-08-24 Thread Russ Michell
have (written). I know for a fact that this function ('parse_dir') has only been declared once, so why is php lying to me!!? Feel free *not to answer* instead of wasting your own time giving me jip for an off topic query. Cheers Russ

Re: RE: [PHP-DB] Fatal error

2001-08-24 Thread Russ Michell
Try to include your files with the command include_once() ... and not include() ... Well Br me! Cheers.. That did the job... I thank you sir! Cheers Russ On Fri, 24 Aug 2001 13:04:15 +0200 Walter, Marcel [EMAIL PROTECTED] wrote: Try to include your files with the command include_once

Re: [PHP-DB] How to show table???

2001-08-24 Thread Russ Michell
) | | | || | password | varchar(12) | | | || +---+-+--+-+-++ 6 rows in set (0.00 sec) I hope this is what you wanted, can't think why though... Russ On Fri, 24 Aug 2001 11:09:06 -0400

Re: [PHP-DB] Query construction (again)

2001-08-23 Thread Russ Michell
help thus far! Russ Depending on how the date is stored (date + time, or just date) On Wed, 22 Aug 2001 21:39:19 +0800 Gremlins Mailing List [EMAIL PROTECTED] wrote: - Original Message - From: Russ Michell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 22, 2001 10:16

Re: SV: [PHP-DB] Query construction (again)

2001-08-23 Thread Russ Michell
! Thanks very much! Russ On Thu, 23 Aug 2001 11:09:32 +0200 Torgil Zechel [EMAIL PROTECTED] wrote: This should work: SELECT * FROM items WHERE TO_DAYS(NOW()) - TO_DAYS(submitDate) = 7; -Ursprungligt meddelande- Fran: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]For Russ Michell

[PHP-DB] Query construction (again)

2001-08-22 Thread Russ Michell
on board! Cheers Russ #---# Believe nothing - consider everything Russ Michell Anglia Polytechnic University Webteam e: [EMAIL PROTECTED] w: www.apu.ac.uk/webteam t: +44 (0)1223 363271 x

[PHP-DB] Query construction

2001-08-21 Thread Russ Michell
maurice 2001-09-23 2001-11-05 Maurcie's post this is Maurice's test 4 russ category russmichell 2001-08-17 2001-08-27 Russ is theone this is another test 9 russ category russmichell 2001-08-16 2001-08-19 Begon by Monday! This entry should dissapear 10 russ category russmichell 2001-08

Re: RE: RE: [PHP-DB] Query construction

2001-08-21 Thread Russ Michell
? (It's my luchtime too and I'm gonna go get some...) Cheers once agin for trying. Russ On Tue, 21 Aug 2001 12:19:00 +0100 Lunny Damian [EMAIL PROTECTED] wrote: Russ, I recreated your table/data (it's lunchtime and I thought I'd take a look at this) - my query returned the rows as below

Re: RE: RE: RE: [PHP-DB] Query construction

2001-08-21 Thread Russ Michell
I always love that feeling when you beat a problem that refuses to go away. So do I - but I aint beaten it yet! :-( I'm still getting '2' as being the number of posts in each category when '2' is actually only the number of posts in *one* of the categories...weird-huh? Cheers. Russ On Tue

RE: [PHP-DB] Query construction

2001-08-21 Thread Russ Michell
']; }//end while }//end else }//end while I used the WHERE clause on $name, which gives me the total postings for each category as a *name* as opposed simply to a *unique category* Many thanks for all your efforts, it was those that led me to this solution! Cheers. Russ On Tue, 21 Aug 2001

[PHP-DB] Removal of HTML formating

2001-08-16 Thread Russ Michell
Use n12br() with the output from your DB to your webpage: $content = n12br($content); echo $content; HTH :-) Russ On Thu, 16 Aug 2001 09:02:44 -0500 John Roach [EMAIL PROTECTED] wrote: -- Hello, I have a mysql db with a largetext field defined. When users enter data, it drops all

Re: RE: [PHP-DB] Averaging Numbers

2001-08-15 Thread Russ Michell
for MySQL like Oracle.. Oh well. Cheers anyway! Russ On Wed, 15 Aug 2001 11:50:43 -0500 Jeff Oien [EMAIL PROTECTED] wrote: I'm real sorry to say I don't know the answer to your question unless there's a php function to get an average (or write one yourself) but you say you've managed

Re: [PHP-DB] Anyone used Pearson Corilations in PHP

2001-08-14 Thread Russ Michell
MySQL data. HTH :-) Russ On Mon, 13 Aug 2001 18:31:48 + Robert Trembath [EMAIL PROTECTED] wrote: Good Afternoon Everyone, I am a fellow PHP developer that has run into a project where I need to know if anyone has created anything like this. I need to do Pearson Corilations on Data

[PHP-DB] internal queries

2001-08-14 Thread Russ Michell
in advance. Russ #---# Believe nothing - consider everything Russ Michell Anglia Polytechnic University Webteam e: [EMAIL PROTECTED] w: www.apu.ac.uk/webteam t: +44 (0)1223 363271 x 2331

  1   2   >