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
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
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: [
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
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
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
> 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
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
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
mysql> show columns from mytable like "myfield";
+---+-+--+-+-+---+
| Field | Type| Null | Key | Default | Extra |
+---+-+--+-+-+---+
| myfield | enum('Add','Read','D
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
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
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
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
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
");
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]
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
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
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
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.
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
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
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
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
}
-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
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
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
$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,
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])
> >
/ 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
]
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]>
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
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
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 |
++--+--+-+
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
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
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
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
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
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
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:
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
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
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
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
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
$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
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
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
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
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
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
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
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
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
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
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:
>
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
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
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
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
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
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,
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
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
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:
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
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
:[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
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
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
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
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-
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
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
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
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
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
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
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
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
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
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-
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
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
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?
$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
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
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
$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
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
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
$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
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
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
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
(
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
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
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
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
401 - 500 of 538 matches
Mail list logo