Re: [PHP] Syntax Help, Please

2004-06-15 Thread Robin Vickery
On Tue, 15 Jun 2004 13:20:24 -0400, Steve Douville <[EMAIL PROTECTED]> wrote: > > I've forgotten how to assign something like this... > > $someStr = EOF>>>" > bunch of raw non-echo'd html > " > EOF>>>; > > But can't seem to get the right syntax. Tried looking in the manual, but > don't eve

Re: [PHP] Syntax Help, Please

2004-06-15 Thread janet
In a message dated 6/15/2004 10:20:59 AM Pacific Daylight Time, [EMAIL PROTECTED] writes: >I've forgotten how to assign something like this... > >$someStr = EOF>>>" > bunch of raw non-echo'd html >" >EOF>>>; > >But can't seem to get the right syntax. Tried looking in the manual, but >don't

RE: [PHP] Syntax Help, Please

2004-06-15 Thread Rick Fletcher
> I've forgotten how to assign something like this... > > $someStr = EOF>>>" > bunch of raw non-echo'd html > " > EOF>>>; > > But can't seem to get the right syntax. Tried looking in the > manual, but > don't even know what I'm looking for! You're looking for a "heredoc." http://www.php.

Re: [PHP] syntax help

2004-02-13 Thread Richard Davey
Hello bob, Friday, February 13, 2004, 12:10:06 PM, you wrote: bp> $array=array("Flyer","Email","Phone"); bp> $array_len=count($array); bp> for($i=0;$i<$array_len;$i++){ bp> $query="select count(score) from test_table bp> where source = '$array[$i]'"; bp> $result=mssql_query($query,$nu

Re: [PHP] Syntax Help

2002-11-14 Thread conbud
Jason thanks, I completely forgot about trying echo $sql by using that I found where it was messing up. Thanks again. Lee "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:200211141725.47510.php-general@;gremlins.biz... > On Thursday 14 November 2002 17:22, conbud wrote: > > Whats wrong here

Re: [PHP] Syntax Help

2002-11-14 Thread Petre Agenbag
What do you mean by "dont post proper data"? Have you added slashes to the variables? (use addslashes() and then stripslashes() when reading the contents from the db) On Thu, 2002-11-14 at 11:22, conbud wrote: > Whats wrong here ?? The variables are getting the correct information from > the form

Re: [PHP] Syntax Help

2002-11-14 Thread Jason Wong
On Thursday 14 November 2002 17:22, conbud wrote: > Whats wrong here ?? The variables are getting the correct information from > the form but for some reason as soon as I put the variables into the $sql > they dont post the proper data to the database, its connecting to the > database ok but just n

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 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~~~

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('Hel

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