RE: [PHP] syntax

2002-03-27 Thread Darren Gamble
(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

Re: [PHP] syntax

2002-03-27 Thread Jan Rademaker
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

Re: [PHP] Syntax ???

2002-02-08 Thread Edward van Bilderbeek - Bean IT
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

RE: [PHP] syntax?

2001-09-13 Thread Niklas Lampen
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

Re: [PHP] syntax help please?

2001-08-29 Thread Alexander Deruwe
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)) {

Re: [PHP] syntax help please?

2001-08-29 Thread David Robley
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

Re: [PHP] syntax help~~~

2001-08-05 Thread Andreas D. Landmark
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 =

Re: [PHP] syntax help~~~

2001-08-05 Thread Coconut Ming
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

RE: [PHP] Syntax

2001-08-04 Thread Jack Dempsey
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]

RE: [PHP] Syntax

2001-08-04 Thread Mark Roedel
-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

Re: [PHP] Syntax

2001-08-02 Thread Tim
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

Re: [PHP] Syntax Eyes

2001-07-25 Thread Morten Winkler Jørgensen
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

RE: [PHP] Syntax Eyes

2001-07-25 Thread Mark Roedel
-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

Re: [PHP] Syntax Eyes

2001-07-25 Thread Clayton Dukes
[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

RE: [PHP] Syntax Eyes

2001-07-25 Thread Mark Roedel
-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

RE: [PHP] Syntax Eyes

2001-07-25 Thread Lawrence . Sheed
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

Re: [PHP] Syntax Eyes

2001-07-24 Thread Clayton Dukes
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

RE: [PHP] Syntax Eyes

2001-07-24 Thread Matthew Loff
[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

Re: [PHP] Syntax Eyes

2001-07-24 Thread Clayton Dukes
' [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

Re: [PHP] Syntax for CURL

2001-05-21 Thread Tolga \thorr\ Orhon
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

Re: [PHP] Syntax for select statement

2001-04-27 Thread Christian Reiniger
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

Re: [PHP] Syntax for select statement

2001-04-27 Thread Philip Olson
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.

Re: [PHP] syntax

2001-04-12 Thread elias
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

Re: [PHP] syntax

2001-04-12 Thread Renze Munnik
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: *** **

RE: [PHP] syntax

2001-04-11 Thread Jason Murray
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

Re: [PHP] syntax for session_register();

2001-03-12 Thread stas
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

<    1   2   3