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
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
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
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.
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
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
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
");
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]
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
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
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
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
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
mysql> show columns from mytable like "myfield";
+---+-+--+-+-+---+
| Field | Type| Null | Key | Default | Extra |
+---+-+--+-+-+---+
| myfield | enum('Add','Read','D
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
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
> 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
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
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
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
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: [
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
ver is the server.xml but there are no references as to what to enter
in that file to make the module work.
Any assistance would be greatly appreciated.
Thanks,
Rick Kalifa.
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
Go with QMAIL
Lots of support (mailing lists, web-sites). Several books written on it.
Easier to set-up than sendmail. Very configurable.
Written by same gent that wrote ezmlm mailing list application (ezmlm
handles the PHP mailing lists).
goto: http://cr.yp.to/qmail.html
-Original Messag
Terry: I forwarded this to php-general list. Perhaps they can answer your
question
-Original Message-
From: Terry Romine [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 10:01 AM
To:
Subject: php email question
I am trying to set up a MIME email that would include an HTML and
What do you mean "it doesn't work?" What results are you getting?
Specifics...we need specifics...
-Original Message-
From: Anthony Rodriguez [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 6:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Help w/ "join" syntax
When I call the foll
$result = mysql_query("SELECT * FROM sms where email LIKE \"%@%\" ORDER BY
ID DESC",$db);
-Original Message-
From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 12:18 PM
To: RIVES Sergio
Cc: [EMAIL PROTECTED]
Subject: [PHP] Check "@" in Record & show Error in m
First: change -
if(file_exists($info[5]){
to -
if(file_exists($info[5])){
Second: ensure the file permissions are set to rwxrwxr-x for bank.php
-Original Message-
From: David [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 3:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Unknown Err
function foo($arg1_required, $arg2_optional="")
if ($arg2_optional=="") {
print "not passed";
}
else {
print "explicit";
}
}
-Original Message-
From: Rodent of Unusual Size [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 3:17 PM
To: [EMAIL PROTECTED
What do you mean " it doesn't like the "LIKE"
Please provide the query statement you used and the response from the
application
-Original Message-
From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 4:22 PM
To: liljim
Cc: PHP General
Subject: Re: [PHP] Re: A s
ther your query is what you expected
(2) what mysql didn't like about your query
-Original Message-
From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 4:31 PM
To: Rick Emery; 'Chuck "PUP" Payne'; liljim
Cc: PHP General
Subject: RE:
I just noticed your WHERE clause is incomplete.
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 4:33 PM
To: 'Chuck "PUP" Payne'
Cc: PHP General
Subject: RE: [PHP] Re: A stupid question...
To help you diagnose the problem
your query is: DELETE FROM mytable;
-Original Message-
From: Claudiu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 5:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] reset auto_increment field mysql
I have a mysql table which contains an id field which is set to
auto_increment.
I
.
On Tue, 12 Mar 2002, Rick Emery wrote:
> your query is: DELETE FROM mytable;
>
> -Original Message-
> From: Claudiu [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 5:09 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] reset auto_increment field mysql
>
&
-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 12:12 AM
To: Php-General
Subject: [PHP] Hi can we write a form inside td element of a table?
Hi,
can we give a form element as td inside table element?
Thanks in advance
Balaji
--
';
?>
-Original Message-
From: John Gurley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 6:55 AM
To: [EMAIL PROTECTED]
Subject: [PHP] input
hello,
Someone was kind enough to give me this code for sending a value from
one page to another, but it doesn't work. I wonder
Nope, that's not the problem. the $_POST[] is NOT inside single-quotes.
The problem is he used commas before and after the $_POST[].
-Original Message-
From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 7:02 AM
To: PHP-General
Subject: Re: [
He IS setting cookie before sending block. Note, that he is storing
the beginning of block in a HEREDOC, which he prints after setting
cookie.
Somewhere, he may be printing a blank line prior to setting cookie...that
problem has bitten me more than once, so now I'm on the look-out for it in
my
John,
Post your code. We're all operating in the dark here and we want to help
you.
-Original Message-
From: John Gurley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 8:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP] RE: passing values
Ray,
I am using the post method, and
The greater question: Why does irow order matter? What are you REALLY
trying to do?
==
In article <000701c1cb06$3b54f3b0$0101a8c0@nightengale>,
[EMAIL PROTECTED] says...
> Hello,
>
> How can I get the number of the current row, something like this:
>
> $sql = mysql_query("SELECT
I use qmail with PHP on a RH v 7.0 system. Works like a charm.
I compiled/installed qmail from source. Installed RH, Apache, PHP from
RPMs.
I'm not at my home-office, where I have this set-up, so I cannot provide you
with my set-up info. I dod not use vpopmail yet, but I will soon instll it
a
Can't read your mind, bud.
Show us your code...
-Original Message-
From: David McInnis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 2:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Cookies not expiring
I understand that if an expiration time is not set, the cookie should
expir
Form elements are passed to the following page as variable names. For
instance, the text value in subject 1 input element:
is passed to the following page as: $subject1
-Original Message-
From: PHPList [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 11:59 PM
To: [EMAIL PROT
index.html
mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 4:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] CLI through PHP
14/03/2002 10:51:10 PM
Hi, I was wondering how I'd go about manipulating some command line
software through PHP. For instance, I have an FTP program
krsort(array)
then grab first key.
-Original Message-
From: Alex Elderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 8:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] get the greatest key of an array???
Hi,
How can i get the greatest key of an array??
$array[1] = "...";
$arr
Sent: Thursday, March 14, 2002 9:04 AM
To: 'Rick Emery'; [EMAIL PROTECTED]
Subject: RE: [PHP] Cookies not expiring
Here is what I am using to set my cookie.
$cp_sessionid = $CP_partnerid . "_" .
uniqid(str_pad(getenv("REMOTE_ADDR"), 15, "0"));
setcookie(&
stripslahses($variable)
-Original Message-
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 9:26 AM
To: [EMAIL PROTECTED]
Subject: [PHP]
Hi,
I have the following probably very simple problem.
Basically what I need to do is to collect info from the user
I mean:
stripslashes($variable)
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 9:24 AM
To: 'Vlad Kulchitski'; [EMAIL PROTECTED]
Subject: RE: [PHP]
stripslahses($variable)
-Original Message-
From: Vlad Kulchitski [mai
the best you can do is:
-Original Message-
From: Ando Saabas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 9:33 AM
To: [EMAIL PROTECTED]
Subject: [PHP] regular expression for (NOT 'word')
how would i build a regular expression in php that would match
everything but the giv
-Original Message-
From: Sven Jacobs [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 5:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] dateformat
hey all
I want to convert 20020211150245 into 2002-02-11 15:02:45.
Does somebody have the correct conversion for this ?
--
PHP Genera
I use this construct constantly. Assume name of script is "thisform.php3":
-Original Message-
From: Daniel Negron/KBE [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 10:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] using reload within PHP when submitting a form
I have
We can't read your mind.
What kind of error do you get?
Second, I recommend that you ALWAYS add the die() clause to your mysql
function calls
-Original Message-
From: Manu Verhaegen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 7:16 AM
To: 'Php-General (E-mail)
Subject: [PH
if( $line[1]='$bruker' and $line[2]='$passord') {echo "hei
$bruker.";}
else {echo "FEIL";}
-Original Message-
From: chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 8:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] why doesnt this work???
this script receiv
MAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 8:22 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] why doesnt this work???
nope... that did not do the trick...
-Chris
"Rick Emery" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
This works; I just tried it.
-Original Message-
From: chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 8:41 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] why doesnt this work???
Thanx for all the help guys, but i have tried all of the sugestions but the
one that works b
if ($postaction=="edit")
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 11:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] mysql update help needed
Can somebody straighten this out for me?
I can't get the update to work. I'm sure the varia
What do you mean "All other browsers either do not submit form data"?
show your code.
What kind of user authentication are you using? If none, they'll vote and
vote often.
-Original Message-
From: James Arthur [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 1:39 PM
To: [E
if (mysql_num_rows($sql_result) > 0) {
FYI: thank you for providing full code and what the algorithm is supposed
to accomplish. Most posters do not.
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 6:37 PM
To: [EMAIL PROTECTED]
Subjec
if ( ! ISSET($img_url) )
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 8:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] testing for blank var
if $img_url has a value, then I'd like to show the image, if it doesn't,
then I'd like to
As you read each line into a variable, $chrText, apply this test:
ereg("Visibility: ([0-9]*.*)", $chrText,$regs);
EXAMPLE:
You will find what you need in $regs[1]
-Original Message-
From: Gerard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 8:44 AM
To: [EMAIL PROTECTED]
Su
You're welcome. we aims to please...
-Original Message-
From: Gerard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 9:22 AM
To: Rick Emery
Subject: Re: [PHP] Parse from a Text file
Many thanks Rick !
Much apreciated & very fast :-)
Gerard
- Original Message -
you just have to double check your code, as you did
-Original Message-
From: Joshua E Minnie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 11:07 AM
To: Rick Emery
Subject: Re: [PHP] T_STRING, T_VARIABLE, and T_NUM_STRING
I had already fixed the error, I just wondered what
you still need to declare the values as GLOBAL
-Original Message-
From: Dr. Shim [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 11:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Function Not Accepting Variable Values From a Form
I will try $_POST[] first. I do that under the
$interest = $HTTP_POST_VARS['interest'];
or (if using PHP 4.1)
$interest = $_POST['interest'];
then reference $interest[0], $interest[1], $interest[2],...
-Original Message-
From: Joshua E Minnie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 11:54 AM
To: [EMAIL PROTECTED]
S
First: I've not seen a print statement in that format before.
Second: the following line has parameters misspelled twice. Your function
is called with "parameters", not "paramaters"
if(isset($paramater["default"]) and $v == $paramater["default"])
-Original Message-
From: Ron [mailto:
One more suggestion: prior to exiting the form_radio() function, print
$output to determine if it's the contents you expect
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 7:16 AM
To: 'Ron'; [EMAIL PROTECTED]
Subject: RE: [PHP
if (ereg("john",$jeff) ) { }
or:
if( strstr( $jeff, "john") ) { }
or:
if( strpos( $jeff, "john") ) { }
-Original Message-
From: Warwick Berg [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 6:55 AM
To: [EMAIL PROTECTED]
Subject: [PHP] comparisons
Hi
Just learning php from t
we aims to please...
-Original Message-
From: J W W L (Warwick) Berg [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 7:45 AM
To: 'Rick Emery'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] comparisons
Hey thanks Rick
Appreciate it.
Regards..
Warwick Berg
-Origin
First: cross-posting to multiple lists...not nice. Most PHP folks are on
both lists.
Second: your first sentence seems to indicate that unknowledgeable people
inhabit the PHP list, vice the PHP-DB list. H
Third: what error do you get when you get the parsing error?
-Original Messa
Don's original declaration is correct. It refers to a constructor. Without
a parameter, the new() will fail.
-Original Message-
From: Stampe, Lars [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 7:53 AM
To: 'Don'; php
Subject: RE: [PHP] A Newbie needs help with his first Class
Andrey, you are incorrect.
>From the manual on strpos():
int strpos (string haystack, string needle [, int offset])
If needle is not found, returns FALSE.
-Original Message-
From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 7:47 AM
To: Rick Emery
Cc: [EM
ahhhinteresting.
thank you for the clarification
I stand humbled, head bowed...
rick
-Original Message-
From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 8:03 AM
To: Rick Emery
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] comparisons
>From the docs :
N
__([a-z0-9][a-z0-9_]+)__
-Original Message-
From: Sharat Hegde [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 4:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Regular Expression Problem
Hello,
In PHP3, I am using code which using the regular expression capability of
PHP. The code
> First what would be the best solution to take the records from the
> database and display like 10 results per page?
Check the list archives and php.net. There are many examples of this
functionality
> Another question, the same records from the database, but say I want to
> sort them by
yes, you can run PHP as a stand-alone interpreter
-Original Message-
From: Paul Roberts [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 1:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] cron with php as apache module
I want to run a php script via a crontab, (i can set up the cronta
I think PHP's uniqid() will suit your purposes. Look in the Miscellaneous
Functions section of the manual.
-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 11:38 AM
To: PHP-General List
Subject: [PHP] Maillist
I need to send out s
> How is possible to on an image and run a php function?
> Also how is possible to pass some php vars to javascript vars?
Can't do it directly. JavaScript is client-side. PHP is server-side. As
you execute a PHP script, it will "create" the values for the JavaScript
source that PHP is creati
show your code
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 5:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Variable problem
I have a variable name in a print <<< END and then some text after it. The
thing is, php thinks that the text is p
${varable}ABC
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 5:21 PM
To: Rick Emery
Subject: Re: [PHP] Variable problem
on 3/22/02 6:18 PM, Rick Emery at [EMAIL PROTECTED] wrote:
show your code
-Original Message-
From
$result = mysql_query(.)'
mysql_num_rows($result)
-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 5:28 PM
To: PHP-General List
Subject: [PHP] MySQL query results
How can I tell whether anything was matched and changed after a
1. Just pass uzeriz to the function, not session("uzeriz");
2. FYI: you don't need this construct: while($row =
mysql_fetch_row($result)){
Based upon the previous tests, there is ONLY 1 entry. Therefore, go with:
$row = mysql_fetch_row($result);
-Original Message-
From: Mantas Kriau
I'm ex-USAF.
FUBAR means "Fucked-Up Beyond All Repair"
-Original Message-
From: Liam [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 9:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re:[PHP] Why?
25/03/2002 3:01:36 PM
"FBAR" was a term used in the second world war.
It turned into "
In PHP, you look at the date() function.
If retrieving this from a mysql database, mysql will do it for you:
SELECT DATE( mydate, "%W, %M %d, %Y") AS thedate FROM mytable;
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 8:55 AM
To: [EMAIL P
> if ($this->private==FALSE) // Undefined variable
this
> return;
> }
$this is relevant ONLY within the scope of the class definition.
The above snippet is located OUTSIDE of the class definition.
You must use an object pointer. That is:
$newobj = new standardquestion($f
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Confused About Classes
No, the only thing I supplied is the class. The startElementHandler IS a
function in the class.
"Rick Emery" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
where are they being displayed?
-Original Message-
From: David Orn Johannsson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Login displays the pass and user in url
Can I some how prevent the browser from displayin
index.php?passwd
change to:
list( $policy_num, $policy_year, $application_reference ) = explode( "--",
$policy );
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 11:22 AM
To: PHP General
Subject: [PHP] list(), each()
Ok, I've got to be doing something wrong
it means you've already output some HTML or a blank line
-Original Message-
From: Chad Gilmer [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Session Variables
Hi There,
I am a beginner to PHP and I am tring to use session variable
With there be a specifc number of variables returne? Or can the number of
variables vary?
-Original Message-
From: Walker, Roy [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 1:26 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Regular Expressions? Help!
I am trying to do a match fo
he command I am running is a C program on the command line of a
Linux box. I can't capture the output, it just gets output onto the screen.
I just echo'd $output after the command was run and it was empty. Any
ideas?
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Roy [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 2:27 PM
To: 'Rick Emery'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Regular Expressions? Help!
Perhaps it is how I am calling the $lines in a while loop.? I have tried
`$cmd`, exec(), exec($cmd, $ouput) (to
Again, I ask:
Does $mycmd contain the command you expect to see
$mycmd = "$prog $cmdline $trimline &";
print $mycmd;
$output = exec($mycmd);
-Original Message-
From: Walker, Roy [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 2:56 PM
To: 'Rick Emery&
n and it was empty. Any
ideas?
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 1:54 PM
To: 'Walker, Roy'
Subject:RE: [PHP] Regular Expressions? Help!
well, ya might try:
$my_array = explode( "\" ",$output);
th
: Monday, March 25, 2002 3:09 PM
To: 'Rick Emery'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Regular Expressions? Help!
No. I think there is a carriage return (\n), but there is not a blank line
at the end.
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent
The following is directed to the PHP development team.
I would like to suggest a capability be added to PHP's class implementation.
Specifically, provide the capability to segregate class data and methods
into private methods and data from those that are available for direct
invocation from the o
exec() can capture ALL output from a command if you supply an array as the
second argument to it
-Original Message-
From: Darren Gamble [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:58 PM
To: 'Walker, Roy'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Regular Expressions? Help!
Go
place these statements in your include file, which is standard for PHP
development:
$link=mysql_connect("localhost","user","12345") or die("Error: cannot
connect".mysql(error());
mysql_select_db("mydatabase") or die("Error: cannot select db:
".mysql_error());
-Original Message-
From: Den
in the vi editor, type:
:1,$s///
:w!
replace with the control-V character and with the
control-M character.
-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 6:16 AM
To: Php-General
Subject: [PHP] How to remove ^M characters from a directory
$connect = mysql_connect("localhost","user","password") or die(mysql_error);
-Original Message-
From: Omland Christopher m [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 7:55 PM
To: Cameron Just
Cc: [EMAIL PROTECTED]
Subject: [PHP] Database connection problem
Hi, can anyone hel
401 - 500 of 936 matches
Mail list logo