RE: [PHP] Re: difference between php3 and php4

2002-02-22 Thread Rick Emery
The warning means the query failed in mysql. Perhaps it failed in the connect. You do not need the number of rows. To determine what the problem is, ALWAYS include a die() clause: $db = mysql_connect("localhost", "", "") or die("Error: ".mysql_error()); mysql_select_db("employee",$db) or die("E

RE: [PHP] Help for passing variable to all pages

2002-02-20 Thread Rick Emery
change: test link to: >test link -Original Message- From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 5:30 PM To: PHP List Subject: [PHP] Help for passing variable to all pages Hi All, I am new to PHP and learning as I go by reading many of the tutoria

RE: [PHP] Don't Know how to Set the include Path

2002-02-20 Thread Rick Emery
Do you need to use an include path? Why not just use the include() function? Also, what are the contents of constant.inc? Perhaps the problem lies there. -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 2:03 AM To: [EMAIL PROTECTED] Subject: [

RE: [PHP] argv and argc

2002-02-19 Thread Rick Emery
look in the manual under predefined variables: language.variables.predefined.html -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 4:00 PM To: PHP General Subject: [PHP] argv and argc The other day, I was reading the docs and I just happen

RE: [PHP] Storing Newsletter in Database

2002-02-19 Thread Rick Emery
An XML DTD would not work here; XML describes content, HTML describes presentation. You might consider translating to PDF via Adobe Acrobat. Acrobat supports hyperlinks and PDF is a standard plugin for the IE and NN -Original Message- From: Kevin Old [mailto:[EMAIL PROTECTED]] Sent: Tue

RE: [PHP] explode? (table field to a variable of same name)

2002-02-19 Thread Rick Emery
This isn't exactly what you want, but it is close: list($user_id,$field2,$field3,$field4) = $row; where $row was retrieved via mysql_fetch_array() Just list each of the variable names in the list() function; include ALL fields' names included in $row -Original Message- From: Baloo :0) [m

RE: [PHP] Is it possible to...

2002-02-19 Thread Rick Emery
> Is it possible for function1() to access the variables that were defined in the function2() namespace? Must be defined with global construct, as you did in function1() -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:52 AM To: PHP Gene

RE: [PHP] Novice Question

2002-02-18 Thread Rick Emery
ow would I dynammicaly create the input boxes and name the inputs. Thanks for your time on this, I sorry I didnt explain this clearer in the first place, Thanks, Bren >From: Rick Emery <[EMAIL PROTECTED]> >To: 'brendan conroy' <[EMAIL PROTECTED]>, >[EMAIL PROTEC

RE: [PHP] Novice Question

2002-02-18 Thread Rick Emery
Do you wish to create multiple forms or multiple input fields on a single form? -Original Message- From: brendan conroy [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Novice Question Hi thanks for reading this. This problem is di

RE: [PHP] Php Enum Field

2002-02-18 Thread Rick Emery
mysql> show columns from mytable like "myfield"; +---+-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | +---+-+--+-+-+---+ | myfield | enum('Add','Read','D

RE: [PHP] Timed Redirect

2002-02-18 Thread Rick Emery
http://www.mydomain.com/newpage.html";> will redirect after 15 seconds -Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Timed Redirect Is there way to have a page automatically redirect the u

RE: [PHP] Re: Polymorphism in PHP

2002-02-18 Thread Rick Emery
I must be missing something in your question, because I just tried your script below and it worked as advertised. Did you try the script and it failed? -Original Message- From: Richard Fox [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:13 PM To: PHP Subject: [PHP] Re: Polym

RE: [PHP] Php Enum Field

2002-02-18 Thread Rick Emery
I must not understand your question. As you've asked it, the answer is: SELECT AccessRight FROM tableA; -Original Message- From: Wee Chua [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 1:27 PM To: PHP (E-mail) Subject: [PHP] Php Enum Field Hi all, How can I get the preset v

RE: [PHP] http_referer

2002-02-18 Thread Rick Emery
Try accessing the variable: $HTTP_REFERER without specifying the array. it works for me -Original Message- From: tom hilton [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 12:25 PM To: [EMAIL PROTECTED] Subject: [PHP] http_referer Hi, I am trying to pull http_referer inf

RE: [PHP] Reading PHP Session Files?

2002-02-18 Thread Rick Emery
You, of course, recognize this as serialized data. Therefore, simply use unserialize(), change the data value, the serialize() it again. -Original Message- From: Devin Atencio [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 12:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Reading

RE: [PHP] Returning table rows from MySQL

2002-02-18 Thread Rick Emery
"); print (""); print ("Song"); print ("Artist"); while ($Row =mysql_fetch_array($Result)) { print (""); $ctr = -$ctr; if( $ctr == 1) { print ("$Row[song]"); print ("$Row[artist1] $Row[artist]"); } else { print ("$Row[song]"); print ("$Row[artist1] $Row[artist]

RE: [PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Rick Emery
Only re-directed from the index.html page. My web-host service is set-up so that .HTML suffix files can execute PHP script files without re-directing to them. -Original Message- From: Chris Lott [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 11:49 AM To: [EMAIL PROTECTED] Sub

RE: [PHP] got the code

2002-02-18 Thread Rick Emery
First, where is $inst set prior to being echoed and tested? second, please stop changing the subject. It makes following the thread very difficult. -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 11:25 AM To: [EMAIL PROTECTED] Subject: [PH

[PHP] Unsubscribe s.osborne

2002-02-18 Thread Rick Emery
TECTED]> list-post: <mailto:[EMAIL PROTECTED]> Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 5392 invoked from network); 18 Feb 2002 17:22:09 - Message-ID: <[EMAIL PROTECTED]> From: Rick Emery <[EMAIL PROTECTED]> To: 'Adrian Murphy' <[EMAIL PROTE

RE: [PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Rick Emery
You can also do this via a PHP script, which is what I do. I have 5 URLs all going to the same site (500 megs disk space). I parse the subdomain, and re-driect to the appropriate sub-directory. Actually, you don't even need to parse the URL for sub-domain. Just search for the "yourname.mysite.

RE: [PHP] pg_result pg_fetch_row pg_fetch_array

2002-02-18 Thread Rick Emery
If they'e like the mysql equivalents, then: pg_result() fetches a single value pg_fetch_row() fetches a row from the result set. Access each value with an integer subscript. pg_fetch_array() fetches a row from the result set. Access each value with the name of the column/field read the manual

RE: [PHP] response

2002-02-18 Thread Rick Emery
A little more code would be handy. We promise not to steal it for our own use When you print $inst, is the correct value displayed? May we assume the block is in a form? -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 10:06 AM To: [EMAIL

RE: [PHP] Frustrating ?

2002-02-18 Thread Rick Emery
It means your query failed. Change $news = mysql_query('select * from ccl where '.$where.' order by AU desc'); TO: $news = mysql_query('select * from ccl where '.$where.' order by AU desc') or die("error: ".mysql_error()); this will display the error -Original Message- From: jtjohnston

RE: [PHP] stupid problem

2002-02-18 Thread Rick Emery
show html show code -Original Message- From: John Gurley [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] stupid problem I am getting a variable from a web page ($inst) which is looked at by the loop: if ($inst == 2) { do stuff }

RE: [PHP] storing arrays

2002-02-18 Thread Rick Emery
-Original Message- From: Clark [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 17, 2002 11:15 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] storing arrays I'm having trouble storing my array to a text file, utilizing serialize() and unserialize(). Could you please show a very basic la

RE: [PHP] Mysql_num_rows

2002-02-18 Thread Rick Emery
Please show your exact code, because your code snippet looks right. Then, again, maybe it's because it's an Aggie machine... -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 8:11 AM To: Php-General Subject: RE: [PHP] Mysql_num_rows Maybe

[PHP] readline() Fails in PHP for Win2000

2002-02-18 Thread Rick Emery
What do I need to do to allow the readline functions to work? The following short program fails when run from the command line: Execution command and error message: C:\>php -q myscript.php Fatal error: Call to undefined function: readline() in C:\myscript.php on line 2 My system: Windows

RE: [PHP] Novice question

2002-02-15 Thread Rick Emery
$element[0] = "-".$element[0]; $element[1] = "-".$element[1]; $element[2] = "-".$element[2]; $element[3] = "-".$element[3]; -Original Message- From: brendan conroy [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 3:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Novice question Hi,

[PHP] PHP Built-In Functionality (was: writing / reading from text files)

2002-02-15 Thread Rick Emery
sy--dunno if that will help you in this situation, though. Torben > "Rick Emery" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > from the manual: > > > > int fseek (int fp, int offset [, int whence]) > >

RE: [PHP] writing / reading from text files

2002-02-15 Thread Rick Emery
/ reading from text files thanks guys, there is just one more question I dont see an answer for anywhere I've looked. will fseek read past \n's and if so how do I move the filepointer to a newline, or should I just put all the data on one line? (not unreasonable n this case) "Rick

RE: [PHP] writing / reading from text files

2002-02-15 Thread Rick Emery
] Subject: Re: [PHP] writing / reading from text files lol- so I use fseek() to move the file pointer before where I need to write/replace/update a value? Is there a parameter for fseek to tell it to move to a newline, or stop after a certain bytes? "Rick Emery" <[EMAIL PROTECTED]>

RE: [PHP] writing / reading from text files

2002-02-15 Thread Rick Emery
fopen(), fwrite(),fseek(),fread(),fclose() -Original Message- From: cyberskydive [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 10:29 AM To: [EMAIL PROTECTED] Subject: [PHP] writing / reading from text files I need to write to a specific line in a text file, read from a line

RE: [PHP] Polymorphism question

2002-02-15 Thread Rick Emery
I've also done C and C++ since the 80's. My experience with virtual, is that there is no base implementation for a function. Rather, the function is expected to be defined in the derived class. The inheritance you describe would have a base implementation (no virtual declaration), which could b

RE: [PHP] Dynamic Date Select and SQL

2002-02-15 Thread Rick Emery
If I understand your question, you are looking for the MYSQL sql statement. Based upon your info, I've found something like this example: mysql> describe a; ++--+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | ++--+--+-+

RE: [PHP] How get the name of the array variable?

2002-02-15 Thread Rick Emery
Actually, if I had my druthers, my domain TLD would be ".texas". Some day, when Texas becomes the independent country it should be, that will be my TLD. -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 8:57 AM To: Rick Emery; [EMAIL

RE: [PHP] uuencode

2002-02-15 Thread Rick Emery
Sorry...I missed it...I was thinking of urlencode(). Lack of sleep, I guess I would suggest doing GOOGLE search for the uuencode algorithm and coding it in PHP -Original Message- From: Michael Mehlmann [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 8:38 AM To: Rick Emery Cc

RE: [PHP] http header?

2002-02-15 Thread Rick Emery
you get get some header variable data, such as $HTTP_REFERER execute to determine what is available to you (differs from system to system) You might also iterate through $HTTP_SERVER_VARS[], $HTTP_ENV_VARS[] -Original Message- From: marcbey [mailto:[EMAIL PROTECTED]] Sent: Friday, Fe

RE: [PHP] Sessions just not working...

2002-02-15 Thread Rick Emery
Did you register each variable individually? Did you have a session_start() as the first line of each page? -Original Message- From: Norman Cates [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 6:34 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions just not working... I can

RE: [PHP] uuencode

2002-02-15 Thread Rick Emery
uuencode() is a function, not a process. You cannot read and write to it. It takes a string and converts it. Then use uudecode() to translate it back. Now, what do you REALLY want to do?? -Original Message- From: Michael Mehlmann [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 20

RE: [PHP] Access Denied !!

2002-02-15 Thread Rick Emery
Thomas, What happens when you enter the LOAD DATA INFILE command directly into the MYSQL command line? -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 7:58 AM To: [EMAIL PROTECTED] Subject: [PHP] Access Denied !! Hi, I'm facing a ra

RE: [PHP] Apache - Virtual Name

2002-02-15 Thread Rick Emery
edit /etc/httpd/conf/httpd.conf look for ServerName in Core directives. Change to something like: ServerName myserver Find VirtualHost section and locate a VirtualHost block. It should be commented out. Copy the lines between # # and paste them. Remove # comment designator. Change to:

RE: [PHP] Mail()

2002-02-15 Thread Rick Emery
It should be configured automatically if you have PHP compiled into your Apache server. That said, I know nothing about NuSphere, so they might do something different. Have you tried??? -Original Message- From: André Felix Miertschink [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15

RE: [PHP] How get the name of the array variable?

2002-02-15 Thread Rick Emery
your mailing address TLD (the ".pl" in "emarket.pl") says you're from Poland -Original Message- From: Tomek Golembiewski [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 7:20 AM To: DL Neil; [EMAIL PROTECTED] Subject: Re: [PHP] How get the name of the array variable? > > Please

RE: [PHP] access php4 intepreter

2002-02-14 Thread Rick Emery
or include it in your PATH environment variable -Original Message- From: toni baker [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 2:57 PM To: [EMAIL PROTECTED] Subject: [PHP] access php4 intepreter php4.1.1.exe was installed in C:\My Documents directory. Do I need to inc

RE: [PHP] class and session identyfier

2002-02-14 Thread Rick Emery
did you begin your script with session_start()? -Original Message- From: sasza [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 7:28 AM To: [EMAIL PROTECTED] Subject: [PHP] class and session identyfier hi I've got session identyfier in $session_id. In all sites it can be see

RE: [PHP] array variable name

2002-02-14 Thread Rick Emery
what are your trying to do with it?? -Original Message- From: Tomek Golembiewski [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 8:20 AM To: [EMAIL PROTECTED] Subject: [PHP] array variable name How can I get the name of array variable into str? -- PHP General Mailing List

RE: [PHP] Store array into mysql?

2002-02-14 Thread Rick Emery
$ser_array = serialize($myarray); then store $ser_array to a table as BLOB, TEXT, or even VARCHAR to use its contents, read it from the table and use unserialize() -Original Message- From: Jan Grafström [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 10:35 AM To: [EMAIL PRO

RE: [PHP] character replace function

2002-02-14 Thread Rick Emery
Erase by what criteria? Position? Value? specifics!! -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 12:38 PM To: [EMAIL PROTECTED] Subject: [PHP] character replace function I need a function that will erase a particular char

RE: [PHP] Sessions

2002-02-14 Thread Rick Emery
It means you've already sent some HTML. Sessions stuff must be sent first -Original Message- From: Morten Nielsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 12:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions Hi, I try to use sessions to keep track if a user is log

RE: [PHP] Troubles With Mail Function

2002-02-14 Thread Rick Emery
I have a similar situation and would like to know your solution. I would like to send mail from my RH Linux box using the "sendmail -t -i" command through my isp mailer (mail.attbi.com). Could you post, or send me directly, the PHP code that you developed for this? thanks rick -Original M

RE: [PHP] Webhosts

2002-02-14 Thread Rick Emery
I'm beginning to suspect a certain bias because you always make the same recommendation... -Original Message- From: Michael Romagnoli [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 10:46 PM To: R'twick Niceorgaw; [EMAIL PROTECTED] Subject: RE: [PHP] Webhosts I would als

RE: [PHP] Webhosts

2002-02-14 Thread Rick Emery
I use http://www.nomonthlyfees.com 500 megs disk space, 5 gig/month bandwidth PHP 4, MYSQL, SSL, SSH, shopping carts, PGP, PGMail, etc $200 first year, includes domain registration $70 each year thereafter, includes domain registration I take my 500 megs and split among 5 domains -Original

RE: [PHP] Is this possible?

2002-02-14 Thread Rick Emery
I forgot to mention, you must have access to the A and/or CNAME records for your DNS in order to point the domains to the single IP adress. Yes, you can do this. In the script below, I read the sub-directory from a MYSQL database. This is overkill for just a few domains, but great for a hundred

RE: [PHP] Is this possible?

2002-02-13 Thread Rick Emery
Yes, you can do this. In the script below, I read the sub-directory from a MYSQL database. This is overkill for just a few domains, but great for a hundred. This is index.html file: $query"); if( mysql_num_rows($results)<>1 ) { print "Error: Cannot find sub-domain ".$HTTP_SERVER_VARS['HTTP_HOS

RE: [PHP] trouble with headers

2002-02-13 Thread Rick Emery
Erik, > Thanks for clearing that up Torben. > (It seems that whenever I ask a question, you always have the answer.) Next time you go to the PHP Manual (dated 19-09-2001) for answers, go to the title page and count down 5 names... rick -Original Message- From: Erik Price [mailto:[EMA

RE: [PHP] arrays with form data?

2002-02-13 Thread Rick Emery
list($mytext,$mynbr) = explode(","$FORM_ITEM); -Original Message- From: Police Trainee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 4:05 PM To: PHP Subject: [PHP] arrays with form data? good evening gentlemen. I am attempting (with my oh so limited php writing abilities

RE: [PHP] Filling Forms with $variables

2002-02-13 Thread Rick Emery
try: "> -Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:56 PM To: PHP Subject: [PHP] Filling Forms with $variables Hi, I'm having trouble setting the value of form elements using variable values. For example: >

RE: [PHP] how a function 'return' statement works

2002-02-13 Thread Rick Emery
If your call to the function is: print get_current_page_name() then you are getting the expected results, a description of the returned value. Change your call to: $myarrray = get_current_page_name(); Then iterate through $myarray to print each value; -Original Message- From: Erik Pric

RE: [PHP] Re: mail headers

2002-02-13 Thread Rick Emery
eba de email',$referer); echo ' enviado..'; ?> -Original Message- From: Renato Salvatore Moya L. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:17 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; Rick Emery Subject: Re: [PHP] Re: mail headers Importance: High ok gu

RE: [PHP] Re: mail headers

2002-02-13 Thread Rick Emery
Renato, To send mail, use PHP's mail() function: mail($recipient,$subject,$message,$headers); You can reference $HTTP_REFERER directly without saying getenv(HTTP_REFERER) -Original Message- From: Renato Salvatore Moya L. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 2:34

RE: [PHP] php dies every 2 days

2002-02-13 Thread Rick Emery
How is PHP dying? Is it really you web-server that is dying? What happens when you execute PHP at the command line? -Original Message- From: Ice [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 1:53 PM To: [EMAIL PROTECTED] Subject: [PHP] php dies every 2 days Hi, everybo

RE: [PHP] Php is serversided????

2002-02-13 Thread Rick Emery
The if-statements are based upon values read from session variables, cookies, values from databases, and values for the form that was just submitted. So, no, there are no if-statements executed on data the user has not submitted. -Original Message- From: Morten Nielsen [mailto:[EMAIL PRO

RE: [PHP] Troubles With Mail Function

2002-02-13 Thread Rick Emery
show us more code. I believe SMTP would require the mail server Can you mail via the mail() function? -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 12:44 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Troubles With Mail Function Actually,

RE: [PHP] querystrings passed in header("Location: n") ?

2002-02-13 Thread Rick Emery
This is frustrating, because I have used header("location") with parameters and it has worked. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 11:12 AM To: Rick Emery Cc: PHP Subject: Re: [PHP] querystrings passed in header(&q

RE: [PHP] Re-Importing .CSV file into Database

2002-02-13 Thread Rick Emery
AM To: Rick Emery Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Re-Importing .CSV file into Database Oh yes, definately. With the appropriate columns too. --- Rick Emery <[EMAIL PROTECTED]> wrote: > Has fanlist_try table been created? > > -Original Message- > From: Thomas Edis

RE: [PHP] Cheap, PHP, mySQL hosting!

2002-02-13 Thread Rick Emery
http://www.nomonthlyfees.com 500 megs space, 5 gig bandwidth, PHP4, MYSQL, SSL,SSH, etc On-line administration tool decent customer service $200 first year (includes domain registration) $70 year thereafter, includes domain registration -Original Message- From: Thomas Edison Jr. [mailto:

RE: [PHP] Re-Importing .CSV file into Database

2002-02-13 Thread Rick Emery
Has fanlist_try table been created? -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 10:54 AM To: Jason Murray Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Re-Importing .CSV file into Database Hi, Ok, considering the FULL PATH and the

RE: [PHP] Newbie - Session Help

2002-02-13 Thread Rick Emery
show us the code you've tried so far. -Original Message- From: Richard O'Flaherty [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 9:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Newbie - Session Help I have a log-in form on my site that registers a session for the username an

RE: [PHP] querystrings passed in header("Location: n") ?

2002-02-13 Thread Rick Emery
:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 9:34 AM To: Rick Emery Cc: PHP Subject: Re: [PHP] querystrings passed in header("Location: n") ? On Wednesday, February 13, 2002, at 09:53 AM, Rick Emery wrote: > try: > header("Location: > domain.com/errorpage.p

RE: [PHP] How to POST a HTML-page with the header function

2002-02-13 Thread Rick Emery
day, February 13, 2002 9:30 AM To: Rick Emery Cc: [EMAIL PROTECTED] Subject: Re: [PHP] How to POST a HTML-page with the header function I'll study on that. And in case you have an easy example for both suggested methods I am willing to receive that. We use the PHP-pages as external services

RE: [PHP] querystrings passed in header("Location: n") ?

2002-02-13 Thread Rick Emery
try: header("Location: domain.com/errorpage.php?errorcode=".urlencode($errorcode)); -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 8:51 AM To: PHP Subject: [PHP] querystrings passed in header("Location: n") ? Can you pass a querystring

RE: [PHP] How can i count the number of users logged in my system

2002-02-13 Thread Rick Emery
e user has left your web-site and decrease the number of users by 1. -Original Message- From: V [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 8:38 AM To: 'V'; [EMAIL PROTECTED]; Rick Emery Subject: RE: [PHP] How can i count the number of users logged in my system

RE: [PHP] How to POST a HTML-page with the header function

2002-02-13 Thread Rick Emery
Short answer: NO. Because your method is the same as the GET method Use cookies or sessions to pass hidden variable values -Original Message- From: L. Hoeneveld [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:05 AM To: [EMAIL PROTECTED] Subject: [PHP] How to POST a HTML-

RE: [PHP] Newbie question about links

2002-02-12 Thread Rick Emery
reference the file that you wish to link to: Click here -Original Message- From: Chris Schoeman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:13 PM To: [EMAIL PROTECTED] Subject: [PHP] Newbie question about links I want to make links on my website which doesn't show the

RE: [PHP] PHP Work in New York

2002-02-12 Thread Rick Emery
George, I don't have any job sources for. However, I wondered where you lived in Germany. Ich habe fur drei Jahre in Kaiserlautern gewohnt. Von 1985 bis 1988. Sind Sie Deutscher oder Amerikaner im militar? rick -Original Message- From: George PHP [mailto:[EMAIL PROTECTED]] Sent: Tu

RE: [PHP] Refreshing a page.

2002-02-12 Thread Rick Emery
did you try: http://my.site.com//thispage.html";> -Original Message- From: Morten Nielsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 3:10 PM To: [EMAIL PROTECTED] Subject: [PHP] Refreshing a page. Hi, I got a page, which uses frames. When a user logges in I would lik

RE: [PHP] Re-Importing .CSV file into Database

2002-02-12 Thread Rick Emery
mp; PHP4 support. And i can easily upload the .CSV files on the server itself. Could you kindly help me out with the php code that would make this possible.. Thanks, T. Edison jr. --- Rick Emery <[EMAIL PROTECTED]> wrote: > The file is located on the server and you have > access to it

RE: [PHP] Re-Importing .CSV file into Database

2002-02-12 Thread Rick Emery
look at MYSQL's LOAD DATA INFILE command: LOAD DATA INFILE "datafile.csv" INTO mytable FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 12:02 PM To: [EMAIL P

RE: [PHP] Exchange substitute

2002-02-12 Thread Rick Emery
http://twig.screwdriver.net/ -Original Message- From: Erik H. Mathy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 11:23 AM To: PHP General List Subject: RE: [PHP] Exchange substitute > I'm doing a project to move my company off of microsloth exchange. > I have dont qmail w

RE: [PHP] A MYSQL COUNTER

2002-02-12 Thread Rick Emery
QL COUNTER whenever they're is a new unique visitor, I want a script to email the member about who visited. And have a permanent record for each member of who viewed their pages, accesible when they login. "Rick Emery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">n

RE: [PHP] How can i count the number of users logged in my system

2002-02-12 Thread Rick Emery
Store the user count to a database or file. Increment when new user enters; decrement when user logs out. If user does not log out and simply types a new URL into the address line, then you have another problem. -Original Message- From: V [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Februa

RE: [PHP] A MYSQL COUNTER

2002-02-12 Thread Rick Emery
The question you must answer first: what do you intend to do with the data once it's collected? Will you simply review the data without sorting it or performing data manipulation? If so, why incur the overhead of MYSQL? If all you need to do is log the user page hits, use a text file; then use

RE: [PHP] Php Projects

2002-02-08 Thread Rick Emery
Do I detect a bit of Friday-afternoon sarcasm??? Actually, a beer sounds good about now -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 1:40 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Php Projects -BEGIN PGP SIGNED MESSAGE-

RE: [PHP] Parameters via Link

2002-02-08 Thread Rick Emery
try: if( ! strcmp($link, "home") ) { include("soundmp3.php"); } -Original Message- From: Manuel Ritsch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Parameters via Link Hey there I want to make a webpage out of one main pagewit

RE: [PHP] Newbie Question about PHP / MySQL

2002-02-08 Thread Rick Emery
SELECT COUNT(col_name) FROM mytable WHERE This will return the number of items with that condition in that columne, name col_name -Original Message- From: Ron Clark [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: [PHP] Newbie Question a

RE: [PHP] Quote in input tag value?

2002-02-07 Thread Rick Emery
I prefer: print" "; -Original Message- From: Nathan Cassano [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 3:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Quote in input tag value? If there is a quote mark in an input tags value what is the correct way to print the quote?

[PHP] RE: [PHP-DB] Need to delete charcters from a string

2002-02-07 Thread Rick Emery
$str = substr($str,0,-3); -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 1:57 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DB] Need to delete charcters from a string I need to delete the last 3 character of a string, w

RE: [PHP] Using functions before they're defined

2002-02-07 Thread Rick Emery
What happened when you tried? -Original Message- From: Brad Harriger [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Using functions before they're defined How does PHP 4 locate function definitions if the function is called bef

RE: [PHP] Mysql

2002-02-06 Thread Rick Emery
Look-up GRANT PRIVILEGES in the mysql manual. That should get ya going -Original Message- From: Roman Duriancik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 1:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Mysql Pleae help me ! I need delete record from table user

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread Rick Emery
$compDisplay[$comp] = $content; } ?> // HTML Stuff in here .. Grr. I'm stumped.. James -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 2:45 PM To: 'James Hallam'; [EMAIL PROTECTED] Subject: RE: [PHP] Generating

RE: [PHP] Need eregi() help

2002-02-01 Thread Rick Emery
What do you mean " it does not work"? What error do you get? Logic error? Compile error? -Original Message- From: Robby [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 3:28 PM To: [EMAIL PROTECTED] Subject: [PHP] Need eregi() help I am using this code below but it does not

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread Rick Emery
here. My goal is to have a variable for each component/content pair, regardless of how many pairs there are returned by the SQL statement, and then to have those variables available for display later on in the page. Do you have any suggestions? James -Original Message- From: Rick Emery [mai

RE: [PHP] Generating populated variables from component/content pairs in a database

2002-02-01 Thread Rick Emery
$sql = "SELECT * FROM $table_name WHERE sec = '$sec' AND WHERE subsec = '$subsec' AND WHERE name = '$name' ORDER BY component "; $result = mysql_query($sql) or die("Error: ".mysql_error()."$sql"); while ( link($component,$content) = mysql_fetch_array($resul

RE: [PHP] Newbie: function for downloading

2002-02-01 Thread Rick Emery
Well, the quick and dirty is that the user RIGHT-CLICKs on the link. The Context menu will display which invites the user to "Save Target As". But I gues you really want a LEFT-CLICK option? -Original Message- From: Manuel Ritsch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 200

RE: [PHP] getting information from a COMBOBOX

2002-02-01 Thread Rick Emery
You get the results by including it in a and calling another PHP script which uses that value. As I stated earlier, you CANNOT retrieve the value of the COMBO BOX in the same page that it is created until the SUBMIT button is pushed -Original Message- From: Eduardo Melo [mailto:[EMAIL P

RE: [PHP] Date format

2002-02-01 Thread Rick Emery
list($y,$m,$d) = explode(",",$phpdate); $newdate = "$d/$m/$y"; -Original Message- From: Jose [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] Date format Hi all. How can I write the date in this format (dd/mm/) if php gives me (

RE: [PHP] PHP commands and HTML combobox

2002-02-01 Thread Rick Emery
Eduardo, You've already solved your own problem. You just need to take it one step further. given: Option 01 Option 02 Option 03 -- in formprocess.php file: -Original Message- From: Eduardo Melo [mailto:[EMAIL PROTECTED]] Sent: Friday, Fe

RE: [PHP] need some advice; small server on a win98 machine.

2002-02-01 Thread Rick Emery
Dump PWS, PHP module, mysql Download and install PHPTRIAD, which will install Apache server, PHP, and MySQL on your system. It's a turn-key operation. -Original Message- From: Wilbert Enserink [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 6:18 AM To: [EMAIL PROTECTED] Subje

RE: [PHP] Best way to frequently check database?

2002-01-31 Thread Rick Emery
To timeout users after 20 minutes, use a cookie which is set for 20 minutes. I'm not exactly sure what you are attempting to limit on database: 100 entries per hour, per day, per year, concurrently? -Original Message- From: Hawk [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002

RE: [PHP] ereg et all

2002-01-31 Thread Rick Emery
try: eregi_replace("this","that","This equals this equals tHis"); -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 3:40 PM To: [EMAIL PROTECTED] Subject: [PHP] ereg et all hi, is there a simple way to replace an occu

<    1   2   3   4   5   6   >