[PHP-DB] SQL Select statement

2001-02-16 Thread bill
7;re mutually exclusive) ---> SELECT memberID from table where choice=2 OR choice = 3 That doesn't work (shows all memberIDs that chose either 2 or 3). Can I maybe join the table upon itself on the memberID? Other suggestions? thanks, bill hollett -- PHP Database Mailing List (ht

[PHP-DB] Re: RC4 encryption with PHP

2002-03-06 Thread bill
Might be late, but here's what I have working. "Troy A. Delagardelle" wrote: > I am trying to encrypt a credit card number using rc4 and php and then dump > it into a mySql database. Does anyone have any sample code that allows me > to do this?? > > I found the Class.RC4Crypt algorithm and woul

[PHP-DB] autoincrement start with higher number

2002-05-10 Thread bill
Is it possible to have an autoincrement field start with a number, so the first record would be, let's say, 1000 instead of 1? The next would be 1001 instead of 2, etc. kind regards, bill hollett -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP-DB] MySQL timestamp field in different time zone

2002-06-13 Thread bill
ry to include tweaking the field for the different time zone. kind regards, bill hollett -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] MySQL timestamp field in different time zone

2002-06-13 Thread bill
No, it is similar to your situation. Server is in another time zone from the user. I want the timestamp to be relative to the user, not the server. Maybe do something in grenwich time, then interpret all queries from the db . . . ? kind regards, bill Ryan Jameson wrote: > BTW... are

Re: [PHP-DB] newbie MySQL question

2001-05-19 Thread bill
On Sat, 19 May 2001, Matt Nigh wrote: > hi, i'm building a website right now with a shows page on it which will > scroll horizontally in a window. i have each show listed in a table called > shows (db is called almavale_board) with the following fields: > > id - bandplaying - venue - date - time

Re: [PHP-DB] image upload -> mime types??

2001-05-21 Thread bill
e the correct extension on it to prevent errors. kind regards, bill matthew knight wrote: > i've created an application where users can upload images through the form > upload, and to ensure that they are sending me an image, i take a look at > the type of the file (ie. $upload

Re: [PHP-DB] managing variant data

2001-06-26 Thread bill
ies link the officer & details tables on OfficerID. You can link the extras & details tables on the ExtrasID when you need. kind regards, bill hollett Jesse Scott wrote: > Hi again, another conundrum. > > What is the best way to deal with the following situation? > > You have a

[PHP-DB] Re: MySQL/PHP Troubles :( anyone have a solution?

2001-08-03 Thread bill
gin_user); unset ($login_password); unset ($action); echo "Thanks, you are now logged out."; } It might also help prevent confusion if you indented your code for each level of curly brackets "{ }" you use. Having all your brackets flush left is tough to read. kind regards

Re: [PHP-DB] Resolution detect and redirect

2001-08-10 Thread bill
Does it work when Javascript is turned off in the client browser? Cara Lane - Designs In The Fast Lane wrote: > I have noticed many posting about this topic and the overall answer seems to > be it can't be done. Well, it can! > > I actually finally got it to work. It is actually quite simple. I

[PHP-DB] Re: reading arrays within a field from mysql and separating the values

2001-09-13 Thread bill
You need to split the value into an array using php, then list it out. Lots of ways to do that, here's one. $result4 = mysql_query( "SELECT DCD_Access FROM userdb WHERE ID = '$user_ID'"); $DCD = mysql_fetch_array ( $result4 ); print " \n \n \n None\n

[PHP-DB] Re: Multiple upload

2001-10-02 Thread bill
http://www.php.net/manual/en/features.file-upload.multiple.php Its Me wrote: > is there a way i can upload more than one file in the same page > -ofcourse in 2 different form fields-??? > > > --

[PHP-DB] Re: looped insert

2001-10-23 Thread bill
values .= ",'$email' " } else { $thevalues = "'$email'"; } $query = mysql_query($sql,$connect) or die(mysql_error()); } // end while // uncomment following lines for single row entry // $sql= INSERT INTO $myanet02($thefields) values ($thevalues)"; // echo $

[PHP-DB] Re: JOIN operations

2001-11-10 Thread bill
SELECT table_name.name, table_name.ID_city, table_city.ID, table_city.city, FROM table_name, table_city WHERE table_name.ID_city=table_city.ID Carlo loiudice wrote: > Hi, > I'm preforming a join between 2 Mysql tables in this > way: > table_name: ID,name,ID_city > table_city: ID,city > > when I

[PHP-DB] datetime insert using now()

2001-12-11 Thread bill
I'm trying to insert information into a datetime field in a MySQL database with the following: INSERT INTO thisdb (event) VALUES ((now() + 3600); But it only works sometimes. Why sometimes? What would be a better way of doing it? -- PHP Database Mailing List (http://www.php.net/) To unsub

Re: [PHP-DB] datetime insert using now()

2001-12-11 Thread bill
Aha. That seems to work. thanks, bill Charles Lahlou wrote: > >INSERT INTO thisdb (event) VALUES ((now() + 3600); > > try rather VALUES (now() + INTERVAL 3600 SECOND) > > charles lahlou > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e

[PHP-DB] finding records wiht non-null columns

2002-01-03 Thread bill
Is there a better query than SELECT * FROM some_database WHERE some_column <> "" I had tried WHERE some_column <> NULL but that didn't work. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

[PHP-DB] Re: database/form help needed

2002-01-08 Thread bill
c), you'll only end up working with checkboxes that have been checked. kind regards, bill Chris Payne wrote: > Hi there everyone, > > I have a loop which goes through my MySQL database and some PHP code which grabs >results 9 at a time, and that works great. Now, I also have a

Re: [PHP-DB] mysql_num_rows

2002-01-08 Thread bill
Drop the "$result" from the mysql_num_rows() so it reads: $num_results=mysql_num_rows(); Depending upon the PHP version, that might do the trick for you. kind regards, bill Mike Ford wrote: > > -Original Message- > > From: Gurhan Ozen [mailto:[EMAIL PROTECTED]

[PHP-DB] sorting results in PHP

2003-03-11 Thread bill
that didn't work. while ($crow=mysql_fetch_array($cresult)) { $therow[]=$crow; } asort($therow["Year"]); reset($therow); asort($therow["Month"]); reset($therow); asort($therow["Day"]); reset($therow); ideas? kind regards, bill -- PHP Database Mailing List (

[PHP-DB] sql to find one year in datetime MySQL column

2003-07-16 Thread bill
tstamp LIKE '2002%' Is there a simpler way than the first one? kind regards, bill hollett -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] running program after insert w/MySQL 4.1

2006-07-07 Thread bill
there any way to trigger something via the ODBC connection? A cron job? I'm open to suggestions. kind regards, bill -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] running program after insert w/MySQL 4.1

2006-07-07 Thread bill
db on the linux computer. How can I get a web page called after the ODBC call? Am I stuck with a cron job on the linux box? Bastien Koert wrote: You should be able to open a web page from access (might need to write a module) and call a page that would then run your script Bastien Fro

Re: [PHP-DB] Selecting number of news items on frontpage

2001-02-28 Thread Bill Zeller
entry per line, you could just use file() to convert the file to an array and then loop 7 times--grabbing the first 7 elements (or news items) of the array. Best Regards, Bill Zeller --- Matthew Cothier <[EMAIL PROTECTED]> wrote: > I have a homepage which has a news headline system.

[PHP-DB] mysql went away

2004-05-12 Thread Bill Green
or tables. I can run php scripts - connect to databases, retrieve and even insert/update data, but I cannot view databases or tables. Does anyone have a clue about what the problems may be or where I should start? --- Bill Green 20 Meadowview Drive Asheville, NC 28804 -- [EMAIL PROTE

Re: [PHP-DB] Question about advanced SQL

2002-02-27 Thread Bill Morrow
select * from tblCd where cdId not in (select distinct cdId from tblOrders); On Thu, Feb 28, 2002 at 12:37:49PM +1000, Adam Royle wrote: > Hi. > > I need some guidance for writing an effective query (instead of processing > through PHP). > > I lets says I have two tables, tblCDs and tblOrders.

Re: [PHP-DB] Difficult count statement. Need some sql advice

2002-03-02 Thread Bill Morrow
; Andy You need to join the two tables together: select count(t.*) as c, f.archive, f.forum_id from fo_topics t, fo_forums f where t.forum_id = f.forum_id and f.archive != 1 might work. I assume you have a foreign key in fo_topics linking to fo_forums. Bill -- PHP Database Mailing List (http:

Re: [PHP-DB] Re: Dynamic Drop Down Box

2002-03-06 Thread Bill Morrow
I haven't actually tried this, but if you use frames, could you submit from the first dropdown and refresh the second if they are in seperate frames? Not that I'd like to support that code. On Wed, Mar 06, 2002 at 10:14:59AM -0800, fls wrote: > I've got a dynamic dropdown on http://www.northjers

Re: [PHP-DB] Re: Again Select then update

2002-03-24 Thread Bill Morrow
On Sat, Mar 23, 2002 at 11:46:36PM -0800, Jen Downey wrote: > Hi all again! > > As Bill Morrow stated (in a private e-mail) I needed to use SET name = > \"$update\""; instead of SET name = $update"; > It has stopped giving the error but it isn't updating

Re: [PHP-DB] delete statement question

2002-03-25 Thread Bill Morrow
On Mon, Mar 25, 2002 at 02:42:08PM -0800, Andr?s Felipe Hern?ndez wrote: > Hi, I hope you can help me with this: > > I have these 3 tables. > > exam ( > exam_id > ) > > questions ( > question_id > exam_id > ) > > answers ( > answer_id > question_id > ) > >

Re: [PHP-DB] help with preg_replace for http://

2002-03-29 Thread Bill Morrow
On Fri, Mar 29, 2002 at 11:46:24AM -0800, Kevin Won wrote: > I'm writing a knowledgebase (basically a content management system) application >where people are adding text via web forms then viewing this data on the web. >standard bread-and-butter kind of stuff. > > of course people want to put

[PHP-DB] Having trouble understanding how to manage arrays

2002-06-10 Thread Bill Fleury
ly for me- for the first record. Could anyone point out why it won't go on to any other records? Thanks, Newbie Bill $idl) { break; } $query = "SELECT type, manname, manlink FROM man_links WHERE recordno=$id"; $result =

[PHP-DB] Connecting to MS Access

2002-06-12 Thread Bill Hudspeth
I am having problems connecting to an Access database. I am using Windows 2000, IIS 4, Access 2000, and PHP 4.2.1. I have created a system DSN using the Access (.mdb) driver, and have a username and password. What's going on?? Thanks, Bill The code I have used is as fo

[PHP-DB] Multiple outer joins submitted via ODBC driver to MS Access??

2002-08-29 Thread Bill Hudspeth
columns have NULL values. Thanks, Bill. My current, inner join syntax is: $class_query = "SELECT sample.Sample, type.type_name, chon_class.class_name, chon_group.groupname, brecciation.brec_type FROM sample,type,chon_class,chon_group,brecciation WHERE sample.type = type.type AND sample.chon_

[PHP-DB] Problems with ODBC connectivity

2002-10-29 Thread Bill Hudspeth
on the development machine. Could there be a version problem with the PHP module? Any other suggestions would be greatly appreciated. Thanks, Bill -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Re: Photo Album Schema

2001-08-23 Thread Bill Zeller
Hi, I can see absolutely no reason to store the name of the image with the picture? Why not, whether using one directory or one for each user, just do id.gif? Best Regards, Bill Zeller --- Steve Brett <[EMAIL PROTECTED]> wrote: > that would generally work on the assumption that >

Re: [PHP-DB] Re: Photo Album Schema

2001-08-24 Thread Bill Zeller
with author.id = picture.owner I see no downside to doing that and it seems to be a relatively effecient way to ensure the uniqueness of all image names. Best Regards, Bill Zeller --- Sheridan Saint-Michel <[EMAIL PROTECTED]> wrote: > I don't know if having multiple users associated &g

[PHP-DB] Make Money For Sending E-mail

2001-09-01 Thread fred . bill
Dear [EMAIL PROTECTED], > BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! > > > Before you say ''Bull'', please read the following.> > This is the letter > you > have been hearing about > on the news lately. Due to> the popularity of > this > letter on the Internet, a national weekly news> > progr

[PHP-DB] How to test if mysql_fetch_array returns no results ?

2001-09-21 Thread Bill Blancett
I am new to PHP so I am need someone to explain this problem to me. I am trying to read items from a table and store them into an array. My current function of choice to use is "mysql_fetch_array". The documentation says that it returns FALSE if there are no more rows returned, but yet when the q

[PHP-DB] Re: How to test if mysql_fetch_array returns no results ?

2001-09-21 Thread Bill Blancett
Disregard the previous post. I figured out that mysql_num_rows() returns the number of rows from the result of a SELECT query. "Bill Blancett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am new to PHP so I am need someone to ex

Re: [PHP-DB] MySQL: Alphabetizing title results in library format

2001-11-01 Thread Bill Morrow
On Thu, Nov 01, 2001 at 04:43:00AM -0500, Ian Evans wrote: > Cami wrote: > > > Try this: > > mysql> select *,(case when title like '%The%' then substring (title, 5, 255) > > when title like '%A%' then substring (title, 3, 255) when title like '%An%' > > then substring (title, 4, 255) else title e

Re: [PHP-DB] sending bulk emails

2001-11-02 Thread Bill Morrow
You should sort the addressees by domain first too, to give the MTA a chance to opimize your spam delivery. On Fri, Nov 02, 2001 at 04:44:06PM +, Shane Wright wrote: > Hi > > I find that the best way to do it is with a script having a long/unlimited > timeout, but limiting it to only a few

[PHP-DB] Re: JOBS in mysql

2001-11-07 Thread Bill Adams
Harpreet wrote: > I have run JOBs in sql server and was wondering if we have ne thign similar > in mysql or use PHP to write a script that would automatically run every 10 > minutes. Unix has cron: 'man crontab' I think Win2k has it included. Otherwise you will have to get an add-on service.

[PHP-DB] RE: JOBS in mysql

2001-11-07 Thread Bill Blowitz
would be much easier to answer this question if we knew what OS is running MYSQL. I use linux and use cron for most MYSQL stuff. My pc is NT and for that I use AT. for win2k Professional, I believe there is a graphical version of AT. bill -Original Message- From: Christian Sage [mailto

Re: [PHP-DB] RE: [PHP] Newbie Question

2001-11-08 Thread Bill Adams
Jay Fitzgerald wrote: > displays fine now -- thanks for that help so far -- but the problem now > (this may be normal, but I am not sure) is when I connect to the db and > "select * from jobs;" the db is writing the entries like this: > > === > mysql> select * from jobs; > >+

Re: [PHP-DB] Using ifelse to go to another page

2003-01-04 Thread Bill Lovett
Change the second ifelse-- either get rid of it, or put it at the end. Right now your logic is like this: if (a equals b) { ... } elseif (a does not equal b) { ... } elseif (c equals d) etc One of the first two conditions will always match, so the rest of the statement is skipped. -bill

Re: [PHP-DB] Textarea, File Upload field setting values

2003-01-04 Thread Bill Lovett
For the textarea, print the value between the tags-- there is no value attribute: You cannot do this with file inputs. -bill Rajesh Fowkar wrote: Hi, I can write a code like : Thus I can set the value of $txtfield1 and it is reflected in the above textbox. How can such thing be done

[PHP-DB] PHP help

2003-06-29 Thread Bill Pilgrim
My System: Windows 98 Apache 1.3.27 PHP 4 mysql Hello all, I am a PHP beginner and was wondering if I could get some help from some of the more experienced on this list. I have been trying to use an html form (with textboxes, radio buttons, and textareas) to input data into a mysql database.

[PHP-DB] windows explorer

2003-07-14 Thread gates bill
Hello , i want to make an windows explorer like application in Php where on the left hand side i have the folders with + or - sign and if i click on + sign it should show me the sub-folders in that folder just like we can see in windows explorer, and when i click on - then it should fold back a

[PHP-DB] RE: [PHP-WIN] php with IIS

2007-03-08 Thread Bill Bolte
Absolutely. You just need to download the windows version and run the installer. Runs fine. You can even run PHP and ASP scripts side-by-side if needed. -Original Message- From: Harpreet [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 9:57 AM To: [email protected]; php-d

[PHP-DB] PHP - FreeTDS - UnixODBC - MS-SQL Am I missing something....

2008-06-12 Thread Bill Sappington
HP, Apache, ODBC, FreeTDS and I cannot find something wrong, but obviously, I am missing something here. Thanks in Advance, - Bill -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] mysql problem

2002-11-28 Thread Bill Arbuckle, Jr.
mns in the table ... I have checked all of this. I have also returned the result to a variable and echoed it to the screen ... the result printed is "Resource id #2". This is driving me crazy as I know it must be something quite simple that I am overlooking. Any help is greatly app

[PHP-DB] Database Connections

2002-11-29 Thread Bill Arbuckle, Jr.
erent page or call to that database. My question is ... Is there a better way and, if so, what is it? I guess I do not quite understand just how long a connection is maintained. I hate to write code that doesn't clean up after itself. Any suggestions are appreciate. TIA Bill -- PHP Da