Hi all,
I am using php 4.3.2 , mysql db and Red Hat Enterprise.
I have some issue regarding the name in INPUT Tag in html , as shown
below:
a:
input name=FOX08340027hostname[] type=hidden value=FOX08340027
b:
input name=FHK0924F0JG (2771890816)hostname[] type=hidden
value=FHK0924F0JG
Hi ,
Thanks for your info.
I am new in PHP , how to remove the the space and '(',')' ?
Thanks
Sameer N Ingole wrote:
Sameer N Ingole wrote:
weetat wrote:
input name=FHK0924F0JG (2771890816)hostname[] type=hidden
value=FHK0924F0JG (2771890816)
Space in name. Remove it.
oh, also
Hi
I have the array below : How to sort the array by Model and Country?
Thanks
array(
TBA0123456 = array(Country=Singapore,Model=WS8234),
TBA0123458 = array(Country=Indonesia,Model=WS2234),
TBA0123459 = array(Country=Vietnam,Model=WS7234),
TBA0123452 =
Hi all,
I am using EZpdf class to create pdf in mysql database . The Ezpdf
class is open source tool for auto-creation of pdf in php , the link is
http://sourceforge.net/projects/pdf-php
I have the problem with tool , the pdf page is blank , eventhough have
some data in my MySQL database .
('Malaysia'))
ORDER BY country,city,building,other
I need to extract the tbl_chassis.chasis_model LIKE '%WS-C5500%' and
lower(country) = lower(trim('Malaysia')) and join them to new string.
Anyone have any suggestion how to do this?
Thanks
-weetat
--
PHP General Mailing List (http://www.php.net
Hi all ,
I have a code below :
function goToPageSelect($selectname,$totalItems){
$_logger = new Log4jLogger();
$_logger-logdebug(starting ..goToPageSelect());
$_logger-logdebug(starting ..goToPageSelect(), $totalItems);
$selecthtml = Go to Page:select name=\$selectname\
Hi Ryan,
I use Log4jPhp to log any debug value.
I think it is better than using echo or print method.
Thanks
- weetat
Ryan A wrote:
Hi,
I need to explain a script to a pal of mine but either
i cant explain it properly or he just cant get the
concept being new to php's slightly advanced
Hi Jay ,
I am not in the javascript group.
Btw , i have added document.forms['listfrm'].pageid.value in the
page , but the form is not submitted ?
var pageid = document.forms['listfrm'].pageid.value;
var urlpath = ../listflag.php?start=pageID=+pageid;
Hi all ,
I have data which have value in bytes for example ,
$bytes = 33554432;
How to convert this to MB ?
THanks
- weetat (PHP Novice)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
I have code below which save MYSQL to csv file. I am using ADODB
library to do this.
The saving MYSQL to csv file is ok .
However i need to allow the the user to enter file name for csv file.
Anybody have any ideas how to do this? Thanks
$sql = $_SESSION['CSV_SQL'];
$_logger =
Hi all ,
I am using PHP 4.3.2 and MYSQL DB.
I need to compare values in array which populated by database , below is
the code :
$temp_tbl = array();
while ($row = $temptbl_result-fetchRow(DB_FETCHMODE_ASSOC)){
$rs_chasis_serialno = $row['serial_no'];
$rs_card_serial_no =
not shown in page.brbr';
}
}
?
John Wells wrote:
On 7/28/06, weetat [EMAIL PROTECTED] wrote:
I need to compare values in array which populated by database , below is
the code :
Without mentioning how your code performs some unnecessary actions,
and is also full of errors, here's the idea
Hi all,
I have 2 array which populated from MYSQL as shown below :
My program will update status in the temporary table according to
compare of 2 arrays, for example from 2 array below:
in $temptablearr = there 3 elements
in $currenttablearr = there 2 elements
If value different
Hi all ,
I have 2 multidimension array as shown below:
I need to compare all values in the 2 multidimension array where
there are any elements values updated or a new elements or be deleted.
Updated mean when value in $temptablearr element is different from
value in $currenttablearr
Hi all ,
I have array value as shown below, i have paste my test php code below:
I have problem when doing usort() when 'country' = '', i would like to
display records where country = '' last. Any ideas how to do that ?
Thanks
$arraytest= array(
array
(
'country'
Message-
From: weetat [mailto:[EMAIL PROTECTED]
Sent: Monday, July 31, 2006 12:32 PM
To: php-general@lists.php.net
Subject: [PHP] sorting in array
Hi all ,
I have array value as shown below, i have paste my test php code below:
I have problem when doing usort() when 'country' = '', i would
Thanks Paul,
Very weird tried Peter's option, it doesn't work.
Btw , how to sort by ascending ?
Thanks
Paul Novitski wrote:
At 12:22 AM 7/31/2006, Paul Novitski wrote:
I could make that last statement just a bit simpler:
function cmpcountry($a, $b)
{
$country1 =
Hi all ,
I have a web page which need to be print to the printer.
However when i use javascript window print() function , the page and
alignment is out.
Read on the net , suggest that i need to setup a printer friendly
page in the web page.
Any ideas how i going to accomplished it
Hi all ,
I have a php page .
The php page is display when i have completed upload xml file to server.
In the php page , there is a function name insertxmldataToTempTbl(),
which insert xml data to MYSQL database as shown below after i have
uploaded xml file to server ,
After insert xml
Hi all ,
I am using php 4.2 , mysql and Linux OS.
I need to format timestamp to string using
strftime , for e.g:
strftime('%e',117000) - the day should be 28 , but is 29 when i
execute strftime() function.
Anyone have ideas what is the problems ?
Thanks
--
PHP General Mailing
.
So i will update status fields in the resultset 1 to 'Update'.If the
same is 'New' ,and so on.
Thanks
-weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all ,
I am having problem in store session in the database . Below is the
example code from code.
The issue is that the code run ok , however the expireref fields is not
updated in the sessions table, below is the sessions schema :
CREATE TABLE `sessions` (
`sesskey` varchar(32) NOT
?
I am using MYSQL database and PHP 4.3.2
Thanks
-weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
substr and rtrim , without any success ?
Anyone have any suggestion ?
THanks
- weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all ,
Thanks to everbody in this group , really help me a lot.
I have a raw xml file from our clients.
My question is how to validate the xml file if the file is xml
compliance ?
Thanks
- weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Hi all ,
I have the arrays as shown below :
How to get the array value in the [TBA04490054] and [JAE070406RT] ?
For example , [0] = 'SAD04520AZD' ,[1]= 'SAL04430RE9' and so on.
Anybody have any ideas or suggestions how to do it ?
Thanks
- weetat
Array
(
[TBA04490054] = Array
Hi all ,
I have using php 4.3.2 and mysql database.
I have a form which have select tag which have the value for example
-New York.
When use submit the form , i need to find the first occurence of - ,
i use strpos function as shown below :
$country = $_POST['country'];
$findme = '-';
mysql function to use?
Thanks
- weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi , not working .
The empty value still sorted first.
Thanks.
Satyam wrote:
perhaps this will work:
Select country , name from tbl_chassis order by ifnull(country,'')
didn't try it.
- Original Message - From: weetat [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent
Thank all for your inputs.
Yes . the data should be null , really bad data , will try to change
database structure.
Richard Lynch wrote:
On Thu, June 15, 2006 1:14 am, weetat wrote:
I have SQL query , for example , Select country , name from
tbl_chassis order by country.
The problem
,and found megaupload , however the problem of
megaupload is the filename is rubbish, i need the filename of uploaded
file because the file is xml , need to convert data from xml to database.
Anybody have any ideas ? Or have any another php upload progress monitor ?
Thanks
- weetat
--
PHP General
hi ,
That gd. However i did not see any upload progress monitor at all.
Anybody have any ideas how to implement it?
Thanks
tedd wrote:
At 5:48 PM +0800 6/15/06, weetat wrote:
Hi all ,
I was using PEAR:HTTP_Upload to upload file in php 4.3.2.
Is ok , however i need to display some sort
Hi all ,
Thanks for your inputs.
I have tried the uber upload progress monitor , look good to me.
Thanks all
- weetat
Richard Lynch wrote:
On Thu, June 15, 2006 4:48 am, weetat wrote:
I was using PEAR:HTTP_Upload to upload file in php 4.3.2.
Is ok , however i need to display some
Hi all ,
I have a SELECT for country in the php file . I would like to load
the country and city belong to the country dynamically from the database.
Anyone have ideas how to do it ?
Thanks
- weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Thanks barry for input .
Barry wrote:
weetat schrieb:
Hi all ,
I have a SELECT for country in the php file . I would like to load
the country and city belong to the country dynamically from the
database.
Anyone have ideas how to do it ?
Thanks
- weetat
www.php.net/foreach
--
PHP
the
value from each records to the records in the tbl_chassis table.Any
others ways to do it?
There are about 1000 records in each table.
What is the better alternative to do this ? Thanks
- weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all ,
Any php calendar out there, search google , most of them are
javascript calendar ?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the value above to be empty.
Anyone have any suggestion how to do this ?
Thanks
- weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that ?
Thanks - weetat
below is the 1st page :
?php
session_start();
$arrayoffiles = listoffiles();
$params = array(
'mode' = 'Jumping',
'itemData' = $arrayoffiles,
'perPage' = 10,
'delta' = 8
yes i am
Thank for you help
Barry wrote:
weetat schrieb:
Hi all,
I have 2 php page , whenever i click the submit in 1st page , the
$_SESSION['LIST_OF_DATA'] display nothing in the 2nd page.
If i do echo print_r($_SESSION['LIST_OF_DATA']) in first page , it
displayed the data correctly
Hi all,
I have multi-arrays as shown below:
I implemented usort() to sort the array by 'country' field in the array.
However there some empty string value in the array and i setup my
cmpcountry() function to sort array, however , some country empty string
value are sort first .
Any ideas
than Thailand, and should be sorted higher.
The easiest way to fix this is actually to remove the inner ifs in both
your if blocks, they are not necessary. The second if block should also
return -1.
David
weetat wrote:
Hi all,
I have multi-arrays as shown below:
I implemented usort() to sort
- weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
me the error message below:
No unserialized data available. Use XML_Unserializer::unserialize()
first.
It cause by the CDATA above. I have attached for your reference.
Thanks
- weetat
?xml version=1.0 encoding='ISO-8859-1'?
InvDetails
SchemaInfo
RMEServerRMEhostname/RMEServer
');
exit;
} else {
$_logger-logdebug(program aborted);
header('Location: ../difference.php');
exit;
}
Andrei wrote:
Check int connection_aborted ( ) in the PHP manual
Andy
weetat wrote:
Hi all,
Can we detected if user have clicked the X button in browser
Hi all,
I have simple code below :
It run ok in one of my test server (Red Hat Enterprise) , PHP 4.3.2.
However in the one of production server which have same OS and PHP
version , the code did not display done parsing xml in log file. It
just display starting parsing xml only.
I
Hi all ,
I have two server .
In first server , which PHP version 4.3.2, the code below is ok :
function validatexmlfile($xmlfilename)
{
$_logger = new Log4jLogger();
$_logger-logdebug(starting validate xml);
$_logger-logdebug(starting validate xml
Hi all,
I have the error below in my PHP version 4.3.2:
PHP Notice: Array to string conversion in /data/html/library/config.php
on line 45
If i have turned on the magic_quotes in php.ini, it is ok .
Any ideas?
It cause by the code below:
if (!get_magic_quotes_gpc()) {
if
Hi all,
I am using PHP 4.3.2 in Red Hat Entreprise.
I have xml file which have tags as show below:
HardwareVersion![CDATA[�ù?¸€ü÷Œ�ú�ù?à�ù?Ø€�Z4À„�Ï]]/HardwareVersion
I need to lookup for Hardware Version tag in php ,and edit the value
to empty string and save the modified xml
/datacraft/htdocs/admin/test_writexml.php on line 6
Warning: xmldocfile(): ^ in
/home/gvintranet/datacraft/htdocs/admin/test_writexml.php on line 6
weetat wrote:
Hi all,
I am using PHP 4.3.2 in Red Hat Entreprise.
I have xml file which have tags as show below:
HardwareVersion![CDATA[ù
Hi all ,
Can I edit the xml file before doing xml parsing ?
My xml file is around 16MB size.
Anyone have any ideas how to do that?
Thanks
weetat wrote:
Add on :
I got this error when i using xmldocfile() function to read the xml file ,
Warning: xmldocfile():
/home/gvintranet/datacraft
Hi all,
I need to read xml file before it was parsed by PHP DOM functions.
The xml file have some encrypted value as shown below :
InstanceName![CDATA[ù?¸ü÷úù?àù?ØZ4ÀÏ]]/InstanceName
Anybody have any suggestion how to do it ?
Thanks.
- weetat
--
PHP General Mailing
=
preg_replace('/HardwareVersion[^(\\/HardwareVersion)]\\/HardwareVersion/',
'HardwareVersion\/HardwareVersion', $xml);
fwrite(fopen($xmlfile, 'wb'), $xml);
Thanks
- weetat
Adam Zey wrote:
weetat wrote:
Hi all,
I need to read xml file before it was parsed by PHP DOM functions.
The xml file have
Hi all ,
I am using PHP 4.3.2 and MYSQL database.
I need to convert the sql query to Adobe PDF format.
Any one have any suggestion how to do this?
I have search phpclasses , found SQL2PdfReport classes , however it
gave error message as shown below :
Error in opening pdf
Lookup
Hi all ,
I have using PEAR:Pager , to do paging .
Everthing are ok . Except the running no will always start from 1 to 10 .
Anyway to increase the running number when user click next page for
example Page 1 : 1 to 10,
Page 2 : 11 to 20, and so on
Thanks
below is the code , the
executing when user close the
browser window.
Thanks
- weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, statement is
logged.
Any idea how to stop it ? Because it cause my web page to be slow.
Thanks.
Thomas Munz wrote:
By default, PHP will also stop execution when the browser is closed. See:
http://de.php.net/manual/en/features.connection-handling.php
on Friday 30 June 2006 09:06, weetat
Hi all ,
I am using PHP 4.3.2 and MYSQL .
I need to do printing function in php .
Basically , in my client web page , it will display the list of items
on the html page. And i have a print button , so that the user can print
the html page to their local printer.
Any way how to do this in
Hi all ,
I am using PHP 4.3.2 , MYSQL database and Red Hat Entreprise OS.
I have the SQL statement which store in $str variable as shown below :
How to get the '%WS-X5225R%' from $str variable ?
$str = SELECT DISTINCT(tbl_chassis.serial_no),tbl_card.card_model, ;
59 matches
Mail list logo