Mysql and Textarea (Please help me figure out this problem. I" m stuck. Please help me!!! )

Mysql and Textarea (Please help me figure out this problem. I" m stuck. Please help me!!! )

am 22.05.2007 23:13:30 von sam rumaizan

--0-2025112038-1179868410=:66062
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

I'm just a php beginner.
So please be patient with my stupid questions.

What am I missing in this code that causing the function can’t update the textarea?

Update button erase the old information from mysql database and replace it with nothing. Basically it can’t read what is inside the Textarea box. Why??

Read the highlighted code.

include ('./includes/header.html');
include( '../mysql_connect.php' );
?>






View
Existing Data


$query = "SELECT DISTINCT Assign_Engineer FROM lo_data";
$result = mysql_query($query);
?>






/>
if (isset($_REQUEST['save_assign_engineer'])) {
$id = (int) $_REQUEST['save_assign_engineer'];
$job_title =
mysql_real_escape_string($_REQUEST['Assign_Engineer'][' .$id . ']['Job_Title']);
$sql = "
UPDATE `lo_data`
SET `Job_Title` = '" . $job_title . "'
WHERE `ID` = " . $id;
mysql_query($sql);
}
if (isset($_POST["R"])) {
$result = mysql_query("SELECT * FROM lo_data WHERE Assign_Engineer ='".$_POST["R"]."'");
}
?>

BORDERCOLOR="CDCB98">
















$num=mysql_num_rows($result);
echo $num;
while($row = mysql_fetch_array($result))
{
echo "";
echo "";
echo "";
echo "";
echo '";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo"";
}
?>






---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
--0-2025112038-1179868410=:66062--

Re: Mysql and Textarea (Please help me figure out this problem. I" m stuck. Please help me!!! )

am 23.05.2007 06:25:25 von bedul

use $_POST[your var] in this script..
not simple but worked..

other option

$_HTTP_POST_VARS[your var]


----- Original Message -----
From: "sam rumaizan"
To:
Sent: Wednesday, May 23, 2007 4:13 AM
Subject: [PHP-WIN] Mysql and Textarea (Please help me figure out this
problem. I' m stuck. Please help me!!! )


> I'm just a php beginner.
> So please be patient with my stupid questions.
>
> What am I missing in this code that causing the function can't update
the textarea?
>
> Update button erase the old information from mysql database and replace
it with nothing. Basically it can't read what is inside the Textarea box.
Why??
>
> Read the highlighted code.
>
> > include ('./includes/header.html');
> include( '../mysql_connect.php' );
> ?>
>
>
>

ID Reference No Job Descriptions Category Assign Engineer Date Received Date Required Date Assigned Projected Completion Date Date Completed Manhour Spent Status
{$row['ID']}{$row['Ref_No']}

';
echo "
";
echo '
';
echo "

{$row['Category']}{$row['Assign_Engineer']}{$row['Date_Received']}{$row['Date_Required']}{$row['Date_Assigned']}{$row['ProjectedCompletionDate']}{$row['Date_Completed']}{$row['ManhourSpent']}{$row['Status']}

>
>
>
>
View
> Existing Data

>
> > $query = "SELECT DISTINCT Assign_Engineer FROM lo_data";
> $result = mysql_query($query);
> ?>
>


>

>
>
> />
> > if (isset($_REQUEST['save_assign_engineer'])) {
> $id = (int) $_REQUEST['save_assign_engineer'];
> $job_title =
> mysql_real_escape_string($_REQUEST['Assign_Engineer'][' .$id .
']['Job_Title']);
> $sql = "
> UPDATE `lo_data`
> SET `Job_Title` = '" . $job_title . "'
> WHERE `ID` = " . $id;
> mysql_query($sql);
> }
> if (isset($_POST["R"])) {
> $result = mysql_query("SELECT * FROM lo_data WHERE Assign_Engineer
='".$_POST["R"]."'");
> }
> ?>
>

> > BORDERCOLOR="CDCB98">
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> > $num=mysql_num_rows($result);
> echo $num;
> while($row = mysql_fetch_array($result))
> {
> echo "";
> echo "";
> echo "";
> echo "";
> echo '";
> echo "";
> echo "";
> echo "";
> echo "";
> echo "";
> echo "";
> echo "";
> echo "";
> echo "";
> echo"";
> }
> ?>
>
>
>
>
>
>
> ---------------------------------
> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's
on, when.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Mysql and Textarea (Please help me figure out this problem. I" m stuck. Please help me!!! )

am 23.05.2007 12:03:32 von gerritpetersen

Looks like a problem in the definition of the TEXTAREA NAME.
The echo statement is started and ended with a '
While in the $row['ID'] also a quote is used. So the echo string looks not
correct.

Try: echo '

";
>> echo "";
>> echo "";
>> echo "";
>> echo "";
>> echo "";
>> echo "";
>> echo "";
>> echo "";
>> echo "";
>> echo"";
>> }
>> ?>
>>
>>
>>
>>
>>
>>
>> ---------------------------------
>> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's
> on, when.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Mysql and Textarea (Please help me figure out this problem. I" m stuck. Please help me!!! )

am 24.05.2007 03:15:24 von bedul

nope.. i just realized when have his source code and read again /sob

the problem is in the button..

he use

";
> >> echo "";
> >> echo "";
> >> echo "";
> >> echo "";
> >> echo "";
> >> echo "";
> >> echo "";
> >> echo "";
> >> echo "";
> >> echo"";
> >> }
> >> ?>
> >>
> >>
> >>
> >>
> >>
> >>
> >> ---------------------------------
> >> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see
what's
> > on, when.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Start and stop windows service for multiple remote computers

am 29.09.2008 20:58:40 von sam rumaizan

--0-867205786-1222714720=:68039
Content-Type: text/plain; charset=us-ascii

Can someone show me how to Start and Stop windows service for multiple remote computers using Command Prompt or PowerShell or even Java?

Thank you



--0-867205786-1222714720=:68039--

[***SPAM***] Re: [PHP-WIN] Start and stop windows service for multiple remote computers

am 29.09.2008 22:38:17 von Jacob Kruger

The command line command net can start/stop services, so you could put the
relevant command into a batch file of sorts:
C:\WINDOWS\system32\net.exe start serviceName

or

C:\WINDOWS\system32\net.exe stop serviceName

HTH

Jacob Kruger
Blind Biker
Skype: BlindZA
'...Fate had broken his body, but not his spirit...'

----- Original Message -----
From: "sam rumaizan"
To:
Sent: Monday, September 29, 2008 8:58 PM
Subject: [PHP-WIN] Start and stop windows service for multiple remote
computers


> Can someone show me how to Start and Stop windows service for multiple
> remote computers using Command Prompt or PowerShell or even Java?
>
> Thank you
>
>
>


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Start and stop windows service for multiple remotecomputers

am 30.09.2008 08:36:45 von harlequin2

Hi Sam,

sam rumaizan wrote:

> Can someone show me how to Start and Stop windows service for multiple remote computers using Command Prompt or PowerShell or even Java?
> Thank you
>
please have a look at the following windows commands:

"net start" / "net stop" -> available on Windows 2000 and above, I think it's also available on Windows NT 4
"sc query", "sc start", "sc stop" -> available on Windows XP, also works on remote computers other than XP (works when started on XP and stopping a service on Win 2000 SP4)

Otherwise have a look at the PSService from SysInternals, http://technet.microsoft.com/de-de/sysinternals/bb897542.asp x

Good luck!

Regards,

Sascha



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

drop down menu to a table

am 03.03.2009 02:27:32 von sam rumaizan

--0-1224431455-1236043652=:56071
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

How do I insert data from a drop down menu=A0values (select box) to a table
=0A
--0-1224431455-1236043652=:56071--

Re: drop down menu to a table

am 03.03.2009 03:52:55 von sam rumaizan

--0-1660838963-1236048775=:66733
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

How do you specify the value of the option?



--- On Mon, 3/2/09, pterry@sensite.net wrote:

From: pterry@sensite.net
Subject: Re: [PHP-WIN] drop down menu to a table
To: samcalc@yahoo.com, php-windows@lists.php.net
Date: Monday, March 2, 2009, 6:38 PM

Include the drop down in a form with method=3Dpost and action=3Dsomething.p=
hp=20
In something.php, write $_post['drop down name'] to the table.=20
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: sam rumaizan

Date: Mon, 2 Mar 2009 17:27:32=20
To:
Subject: [PHP-WIN] drop down menu to a table


How do I insert data from a drop down menu=A0values (select box) to a table




=0A
--0-1660838963-1236048775=:66733--

RE: drop down menu to a table

am 03.03.2009 09:44:20 von Marien den Besten

This will be you answer I guess





-----Original Message-----
From: sam rumaizan [mailto:samcalc@yahoo.com]=20
Sent: dinsdag 3 maart 2009 3:53
To: php-windows@lists.php.net; pterry@sensite.net
Subject: Re: [PHP-WIN] drop down menu to a table

How do you specify the value of the option?



--- On Mon, 3/2/09, pterry@sensite.net wrote:

From: pterry@sensite.net
Subject: Re: [PHP-WIN] drop down menu to a table
To: samcalc@yahoo.com, php-windows@lists.php.net
Date: Monday, March 2, 2009, 6:38 PM

Include the drop down in a form with method=3Dpost and =
action=3Dsomething.php=20
In something.php, write $_post['drop down name'] to the table.=20
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: sam rumaizan

Date: Mon, 2 Mar 2009 17:27:32=20
To:
Subject: [PHP-WIN] drop down menu to a table


How do I insert data from a drop down menu=A0values (select box) to a =
table







=20

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: drop down menu to a table

am 03.03.2009 14:33:33 von Dan Shirah

--000325575a3643ab90046436fbbe
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

>
> How do you specify the value of the option?
>

Or if you are working with values from a database you could do something
simple like:



--000325575a3643ab90046436fbbe--

Re: drop down menu to a table

am 06.03.2009 13:54:08 von pkaluski

sam rumaizan wrote:
> How do I insert data from a drop down menu values (select box) to a table
>
>

If you start a new thread, you are more likely to get a response that
helps you.

To answer your questions is use javascript. This is a php group. Go to
the right group.

Ian




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

IDReference NoJob DescriptionsCategoryAssign EngineerDate ReceivedDate RequiredDate AssignedProjected Completion DateDate CompletedManhour SpentStatus
{$row['ID']}{$row['Ref_No']}

';
> echo "
";
> echo '
> ';
> echo "

{$row['Category']}{$row['Assign_Engineer']}{$row['Date_Received']}{$row['Date_Required']}{$row['Date_Assigned']}{$row['ProjectedCompletionDate']}{$row['Date_Completed']}{$row['ManhourSpent']}{$row['Status']}

';
>> echo "
";
>> echo '
>> ';
>> echo "

{$row['Category']}{$row['Assign_Engineer']}{$row['Date_Received']}{$row['Date_Required']}{$row['Date_Assigned']}{$row['ProjectedCompletionDate']}{$row['Date_Completed']}{$row['ManhourSpent']}{$row['Status']}

';
> >> echo "
";
> >> echo '
> >> ';
> >> echo "

{$row['Category']}{$row['Assign_Engineer']}{$row['Date_Received']}{$row['Date_Required']}{$row['Date_Assigned']}{$row['ProjectedCompletionDate']}{$row['Date_Completed']}{$row['ManhourSpent']}{$row['Status']}