Hmm. OK with the help below, I am closer.
The other fields on the page are getting passed via form fields that
look like this:
input type="text" value=""
name="form[element9]" size="40" maxlength="255"
so I added:
input type="text" value=""
name="form[my_id]" size="40" maxlength="255"
On Thu, Feb 25, 2010 at 4:22 PM, Rick Dwyer wrote:
> OK... external function... that would explain why I could not locate it.
>
> Let me get right to the problem I am having with this code as someone may be
> able to help directly.
>
> I have a link on a page that opens a contact form. The link i
if you do the redirection with header('Location: /mypage.php'),
setting a variable on formcheck.php is not enough.
if you modify the header('Location: /mypage.php') to..
header('Location: /mypage.php?my_id=5')
it will take the variable to mypage.php as $_GET['my_id]
you can not expect a variabl
OK... external function... that would explain why I could not locate it.
Let me get right to the problem I am having with this code as someone
may be able to help directly.
I have a link on a page that opens a contact form. The link is
mypage.php?my_id=5
So on mypage.php, I capture this
On Thu, Feb 25, 2010 at 12:16:08AM -0500, Robert Cummings wrote:
> Rick Dwyer wrote:
>> Hello all.
>>
>> I'm trying to learn PHP on the fly and I have a line of code that
>> contains syntax I can't find documented anywhere:
>>
>> php echo check('element8');
>>
>> In the above line, can someone tel
Rick Dwyer wrote:
Hello all.
I'm trying to learn PHP on the fly and I have a line of code that
contains syntax I can't find documented anywhere:
php echo check('element8');
In the above line, can someone tell me what "check" means?
In the above, check is a function. It is being called wi
Hello all.
I'm trying to learn PHP on the fly and I have a line of code that
contains syntax I can't find documented anywhere:
php echo check('element8');
In the above line, can someone tell me what "check" means?
Thank you.
--Rick
--
PHP General Mailing List (http://www.php.net/)
To u
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
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
> 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.
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!
TIA,
Steve
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
Hi all
I have a problem that is probably just a lack of php
syntax knowledge on my part and hopefully someone can
help me out.
I have an array and i want to query a database for
each value in that array. I then want to store that
result as a new variable called $array[value]total.
see code belo
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
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
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
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 not updating the data.
$sql = "UPDATE updates SET member=
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
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))
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
listnum,agentname,listAgent,streetName,streetNum,curpric
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
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
I am having the problem in the coding below
So.. in the above coding. I need to create a table. The table name
should be a user-define name + "watch"
I acquire the $username correctly and the variable $temp is working fine
when I try to echo the value of it.
Just say. I enter my username a
23 matches
Mail list logo