Re: [PHP] limiting rows and pages like google

2001-09-13 Thread Julian Wood
elected on the page (1-20, > 21-40, etc) add that to the sql statement. My question is how? > > Can someone guide me or give me some example. > > TIA > > Adrian > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] &g

Re: [PHP] Re: Data duplication in databases

2001-08-29 Thread Julian Wood
2 <<-455333->> > 934532103 <<-455333->> > > If you don't want to do the encoding thing, you could create a "link" > table > to accomplish the same thing. > > HTH, > James Potts >

[PHP] Data duplication in databases

2001-08-28 Thread Julian Wood
keep one copy of the data and use references for the other records? Does this work if 7 out of the 8 columns (for instance) are identical (ie the primary key is different but everything else is identical). Do such db's exist? Or do they all do this? Or am I just dreaming? J -- Julian Wood

Re: [PHP] Script timeout

2001-08-23 Thread Julian Wood
ondering where they are > coming > from. > > TIA > > Kirk > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail

[PHP] Script timeout

2001-08-22 Thread Julian Wood
before. So, any idea what is going on? Why timeout at 300s instead of the 30s or the 12000s which are the only two values reported? Any other workarounds? This is php 4.0 Thanks, J -- Julian Wood Programmer/Analyst University of Calgary -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] assigning a part of the name of a variable with another variable before php replaces it with the value

2001-07-26 Thread Julian Wood
To answer your question: $postfld = $HTTP_POST_VARS[$fname[$i]]; should work. BTW, I just use something like: if ($client) { // or in your case: if (${$fname[$i]}) // code to be evaluated if $client exists and is not 0, not null/void/nil, and is not an empty string } J Matthew DeChant wr

Re: [PHP] Post a form within a running php-script

2001-07-10 Thread Julian Wood
ubmit and $opt > > > -- mike cullerton > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -

Re: [PHP] Mac IE 5.0 upload problem

2001-05-18 Thread Julian Wood
tes? Is it losing the resource fork? Do > I have any control over what the browser will upload? BTW, I was testing > with some Quark Express file. > > Any help is appreciated. > > Jason Lam > > > -- Julian Wood Learning Technologies and Digital Media University o

Re: [PHP] MySQL Query not working?

2001-05-15 Thread Julian Wood
You might also want to remove the comma after "url = '$url'" and try an echo mysql_error($link) to see what the problem is. Julian on 5/14/01 5:46 PM, Peter Houchin - SunRentals Australia at [EMAIL PROTECTED] wrote: > change it to > > $sql = "UPDATE CLASS_ADS > SET client_id = '$client_id',

Re: [PHP] Handling Macintosh filenames in PHP

2001-04-19 Thread Julian Wood
o? The project I'm doing relies on the ability to do just that, > and it would appear that I've hit a bit of a snag. > > If anyone can offer any suggestions or advice, I'd really appreciate it. > Thanks in advance. -- Julian Wood Learning Technologies and Digital Media Uni

Re: [PHP] Add data to three tables at once from one form

2001-04-19 Thread Julian Wood
> That's it. There's nothing special to do. Except if one insert fails and the others succeed, you run into a bit of sync trouble. This is what transactions are for. You might want to consider a BDB table type, which supports transactions, then you have the option to rollback the other inserts

[PHP] mySQL - select column

2001-04-17 Thread Julian Wood
the lack of subqueries in mysql). I guess what I'm asking - can you do a join on the mysql resultset array somehow. I know in the perl DBI you can get a column of results, but can't find it in php. Thx. J -- Julian Wood Learning Technologies and Digital Media University of Calgary --

Re: [PHP] Problems uploading Files

2001-03-22 Thread Julian Wood
thing you need to get going. Julian -- Julian Wood Multimedia Developer University of Calgary on 3/22/01 11:28 AM, John Almberg at [EMAIL PROTECTED] wrote: > > Hello Sebastian, > > What a timely posting! I am trying to figure out how to allow a user (using > any internet-conne

Re: [PHP] JDBC? Was: [PHP] Hello! PHP

2001-03-17 Thread Julian Wood
wondering if PHP can use JDBC drivers to connect to > databases. what is the 'abstracted db layer' that you mention? > > regards, > andrew > > > On 3/17/01 2:52 PM, "Julian Wood" <[EMAIL PROTECTED]> wrote: > >> >> I'm not quite

Re: [PHP] JDBC? Was: [PHP] Hello! PHP

2001-03-17 Thread Julian Wood
pecific db features. Does that help? J on 3/16/01 7:36 PM, andrew at [EMAIL PROTECTED] wrote: > > On a related noted, does PHP have JDBC support? > > I'm unable to find anything about this - anyone know if it's possible? > > regards, > andrew > > -- Juli

Re: [PHP] MySQL problem - stumped

2001-03-10 Thread Julian Wood
; >>> >>> And here is the output: >>> Errors: >>> Warning: Supplied argument is not a valid MySQL-Link resource in >>> /****/*//**..***/db.php on line 147 >>> >>> Line 147, is the last line in the above snippet. I

Re: [PHP] Calling Perl from PHP -- Help --

2001-03-06 Thread Julian Wood
e @ARGV instead of <>) on your Porter stemmer program to make it work properly. J -- Julian Wood Multimedia Developer University of Calgary on 3/5/01 11:53 PM, Matt Friedman at [EMAIL PROTECTED] wrote: > I'm stumped. I've searched all over and can't figure this one out.

Re: [PHP] Is it odd or even??? Optimize!!!

2001-03-05 Thread Julian Wood
Clever. For those of us unfamiliar with bitwise ops, here's how this works: The bitwise and op (&) works on bits like this: dig1 dig2 Result 000 010 100 111 An even number's binary representation always ends with 0 (ie 12 = 1100) while an odd ends with 1 (ie 13

Re: [PHP] Re : [PHP] NETSCAPE screws QUERY STRING

2001-03-04 Thread Julian Wood
'value value2\' > > where can i go from here? this has made the urlencode > function to work...only part left now... > > T. Edison jr. > > --- Julian Wood <[EMAIL PROTECTED]> wrote: >> >> Try printf("> > href=\"pro_page1.php3?title=&#

Re: [PHP] Re : [PHP] NETSCAPE screws QUERY STRING

2001-03-04 Thread Julian Wood
ething] being picked up > by mySQL db. > > this works : > > > > this doesn't work : > > printf(" href=\"pro_page1.php3?title='urlencode($myrow[title])'\">") > > OR such combinations as given in the manual. I tried >

Re: [PHP] Odd PHP/MySQL Question

2001-03-01 Thread Julian Wood
select count(*), year from students group by year; on 3/1/01 12:07 PM, Kath at [EMAIL PROTECTED] wrote: > I have a user database where a year has to be put in. > > Now, I want to compile a list of each different year and how many users are in > that year. > > Is there a way to do this beyond

Re: [PHP] big database with php ?

2001-03-01 Thread Julian Wood
performance, unless you're missing indexes on the pertinent joins. Julian -- Julian Wood Multimedia Developer University of Calgary on 3/1/01 6:52 AM, Chris Lee at [EMAIL PROTECTED] wrote: > on a 45mb table with 31,470 rows mysql takes this long. > > mysql> SELECT stockno fr

Re: [PHP] PHP trace route?

2001-02-26 Thread Julian Wood
> Brandon Orther > WebIntellects Design/Development Manager > [EMAIL PROTECTED] > 800-994-6364 > www.webintellects.com > -------- > -- Julian Wood Multimedia Developer University of Calgary -- PHP General Mailing Lis

Re: [PHP] HTTP POST Question

2001-02-20 Thread Julian Wood
problem - post from flash to a php script - the script can do the unlink (make sure you have correct permissions and *build* the correct path), then return a result code back to flash. Not sure if I'm on target for your question or not. HTH, J -- Julian Wood Multimedia Developer University of

Re: [PHP] HTTP POST Question

2001-02-20 Thread Julian Wood
$res = $a->send(); #strip header $res = strstr($res, "\r\n\r\n"); #display the results echo $res; ?> HTH, J -- Julian Wood Multimedia Developer University of Calgary on 2/19/01 10:15 AM, John Monfort at [EMAIL PROTECTED] wrote: > > > >> 1. It appears

Re: [PHP] PHP Editors

2001-02-16 Thread Julian Wood
>From Allaire's (Homesite) web page: "When InternetWorld surveyed 136 professional design firms (iXL, USWeb, Modem Media, TVisions, Organic Online, etc.) in October 1999, HomeSite was the most popular HTML tool: Allaire HomeSite - 52.9% Bare Bones BBEdit (Mac) - 42.6% Microsoft FrontPage - 22.8

Re: [PHP] Need to count number of rows per id! :(

2001-02-02 Thread Julian Wood
Are you looking for select topicID, count(*) from $secondtable group by topicID? This will give you a count of each distinct topicID in $secondtable. Julian -- Julian Wood Multimedia Developer University of Calgary on 2/2/01 6:15 PM, Sandeep Hundal at [EMAIL PROTECTED] wrote: > &g

Re: [PHP] Problem with a regex!

2001-01-27 Thread Julian Wood
and $title = 'Hello'. HTH, Julian on 1/27/01 6:56 PM, Zack Ham at [EMAIL PROTECTED] wrote: > > I had it echo off the value of $var right before it ran the ereg_replace and > it echoed "TITLE". So there is a value... any ideas on fixing? > > --- Julian Wood <

Re: [PHP] Problem with a regex!

2001-01-27 Thread Julian Wood
___ > Free email provided by ---> http://sect0r.com -- Julian Wood Learning Technologies and Digital Media University of Calgary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]