(403) 781-4948
-Original Message-
From: John Fishworld [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 11:09 AM
To: Darren Gamble; Php-General-List (E-mail)
Subject: Re: [PHP] syntax
Sorry I think I've badly explained this !
I'm getting results from mysql in a while loop
On Wed, 27 Mar 2002, John Fishworld wrote:
use this:
${ned_.$i._city} = $ned_city;
after that you can use your new var as $ned_1_city, if $i was 1
ofcourse...
But in this case you might be better off using arrays, as some have
suggested.
Can someone please remind me what the correct syntax
just quote the 'y' in your query:
$ynumber = mysql_query(SELECT COUNT(*) As Cnt FROM responses WHERE
response='y');
Edward
- Original Message -
From: Ron Clark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 08, 2002 7:38 PM
Subject: [PHP] Syntax ???
-BEGIN PGP
In second example you can define which fields to insert, very usefull if you
have a lot of fields.
Niklas
-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
Sent: 13. syyskuuta 2001 10:59
To: [EMAIL PROTECTED]
Subject: [PHP] syntax?
HI,
I am new to this PHP thing.
I was
On Wednesday 29 August 2001 14:45, Glyndower wrote:
Heres my I'm a newbie question... exactly how and where do I define the
variables so that i can use them in a different order than they are in the
query?
Go over your results like this instead:
while ($row = mysql_fetch_row($result)) {
On Thu, 30 Aug 2001 00:15, Glyndower wrote:
I'm coming over from the ASP side and I'm trying to get a handle on
this stuff, I could use a little help with the how and wheres, please.
I do ok with the SQl bits, but the PHP bits are still being elusive...
Heres my code:
$sql = SELECT
At 05.08.2001 12:49, Coconut Ming wrote:
Hi
I am having the problem in the coding below
?
mysql_connect('localhost','123','123') or die (Unable to connect to SQL
Server);
mysql_select_db('Helpwatch') or die (Unable to select database);
$temp = $username.watch;
$watchlist_query =
Hi..
It is not workable too... thanks.
Andreas D. Landmark wrote:
At 05.08.2001 12:49, Coconut Ming wrote:
Hi
I am having the problem in the coding below
?
mysql_connect('localhost','123','123') or die (Unable to connect to SQL
Server);
mysql_select_db('Helpwatch') or die
I'm almost positive there's no reason the first should work while the
second fails...can you post what you've done...it's probably a typo...
jack
-Original Message-
From: BRACK [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 11:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP]
-Original Message-
From: BRACK [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 10:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Syntax
I'm in a process of doing site with MySQL database, and most of
the code I plased in index.php3 (in one file) but I've got some
You need to do:
if (isset(...)) {
...
}
else if (isset(...)) {
...
}
else if (isset(...)) {
...
}
...
On 02 Aug 2001 17:10:26 +0200, BRACK wrote:
Hi,
I'm in a process of doing site with MySQL database, and most of
the code I plased in index.php3 (in one file) but I've got some
CD Hey, I need a set of extra eyes:
OK. I'll put on my magic X-ray typ-oh-glasses ;)
CD $res_id = mysql_query (update contacts_data set (
CD description='$description',
CD data='$data',
CD filename='$input_file_name',
CD
-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 10:53 PM
To: Matthew Loff; 'Php-General'
Subject: Re: [PHP] Syntax Eyes
Okay, I figured out the @header will actually reset the
headers, but it still just prints the raw data
[EMAIL PROTECTED]; Php-General
[EMAIL PROTECTED]
Sent: Wednesday, July 25, 2001 9:58 AM
Subject: RE: [PHP] Syntax Eyes
-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 10:53 PM
To: Matthew Loff; 'Php-General'
Subject: Re: [PHP] Syntax
-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 10:42 AM
To: Mark Roedel; Php-General
Subject: Re: [PHP] Syntax Eyes
I have a row in sql that is binary data (a jpeg)
I need to echo that data to a table on the web page in the form
To: Clayton Dukes; Php-General
Subject: RE: [PHP] Syntax Eyes
-Original Message-
From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25, 2001 10:42 AM
To: Mark Roedel; Php-General
Subject: Re: [PHP] Syntax Eyes
I have a row in sql that is binary data (a jpeg)
I
Nevermind, I got it...
Now, how do you reset header information if you need to redclare the
header();
ie:
Warning: Cannot add header information - headers already sent by (output
started at ...
-Clayton
- Original Message -
From: Clayton Dukes [EMAIL PROTECTED]
To: Php-General
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 11:14 PM
To: Php-General
Subject: Re: [PHP] Syntax Eyes
Nevermind, I got it...
Now, how do you reset header information if you need to redclare the
header();
ie:
Warning: Cannot add header information - headers already sent by (output
'
[EMAIL PROTECTED]
Sent: Tuesday, July 24, 2001 11:20 PM
Subject: RE: [PHP] Syntax Eyes
Output control functions will let you buffer the output, and you can
decide to send a header instead of flushing the buffer to the client:
http://www.php.net/manual/en/ref.outcontrol.php
ob_start() flush
The script below is working fine for me:
$data2send = field1=value1field2=value2;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,https://www.postside.com/postpage;);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt ($ch, CURLOPT_USERAGENT, Mozilla/4.0 (compatible; MSIE 5.01;
Windows NT
On Friday 27 April 2001 17:56, Don Pro wrote:
$queryID = mysql_query(SELECT Country, Agent FROM Ports
WHERE Portname = '$portname');
My question is, if the variable $portname has the ' character within
in, will this cause an error in my select
also note that if magic_quotes_gpc setting (in php.ini) is on, these
quotes will automagically be escaped. phpinfo() will tell you your
setting, as will get_magic_quotes_gpc().
http://www.php.net/manual/en/configuration.php#ini.magic-quotes-gpc
run around the manual for more information.
You can use the same code as you typed but use double-quotes instead of
single-quotes:
$fp=fopen("echo $agentcode' .'CyberTrac.ctr", "w");
-elias
http://www.kameelah.org/eassoft
""Wade Halsey"" [EMAIL PROTECTED] wrote in message
elias wrote:
Hey, i didn't write 'echo' in the origin but i just double-quoted what he
wrote in the first place w/o even noticing the 'echo' ;)
Ehhh... this wasn't specifically addressed to you Elias. It was more
like a general wondering...
--
* RzE:
***
**
I need to name a file like this
$fp=fopen('echo $agentcode' .'CyberTrac.ctr', "w");
the file gets named echo $agentcodeCyberTrac.ctr, now I want
a real value in $agentcode, there is a value in there so it
must be my syntax, anyone help?
$fp=fopen($agentcode.'CyberTrac.ctr', "w");
Jason
Sean, as I said, I'm trying to accomplish this in a loop, and the variable
is in array. To use your approach I would have to get rid of the loop and
type out the code manually. This purpose of this is to create persistant
form values in case form validation fails. Here's my code:
?php
201 - 226 of 226 matches
Mail list logo