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 Li
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 da
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 i
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 = ($a['country
untry2) ? -1 : 1;
}
-Original 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 doin
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'
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 el
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
array( 0 =>
array("chassis_serial_no"=>"1235",
"country"=>"Malaysia",
"card_serial_no"=>"cd-12345"
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 =
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 = n
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 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;
document.forms['listfrm'].
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 &quo
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:class=\"inputfield\" onchange=\"
lower(trim('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?
Tha
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 .
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"),
"TB
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:
value="FHK0924F0JG (2771890816)">
Space in name. Remove it.
oh, also remove '(' an
Hi all,
I am using php 4.3.2 , mysql db and Red Hat Enterprise.
I have some issue regarding the name in Tag in html , as shown
below:
a:
b:
value="FHK0924F0JG (2771890816)">
I can get value from tag in the sample a) above , however in the
sample b) , there are no value when submit
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, ";
"tbl_chassis.host_
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
tion still running, 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:
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
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 runn
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
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 some encr
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 :
Anybody have any suggestion how to do it ?
Thanks.
- weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
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
n 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:
I need to lookup for Hardware Version tag in php ,and edit the v
Hi all,
I am using PHP 4.3.2 in Red Hat Entreprise.
I have xml file which have tags as show below:
I need to lookup for Hardware Version tag in php ,and edit the value
to empty string and save the modified xml file.
Any one have any ideas how to do this?
--
PHP General Mailing L
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 (isset($_P
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
xmlfile
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
_SESSION['diffresult'] = $diffresult;
header('Location: ../difference.php');
exit;
} else {
$_logger->logdebug("program aborted");
header('Location: ../difference.php');
exit;
}
Andrei wrote:
Check int connection_aborted ( ) in the PH
data available. Use XML_Unserializer::unserialize()
first."
It cause by the CDATA above. I have attached for your reference.
Thanks
- weetat
RMEhostname
Tue Mar 28 14:37:43 CST 2006
1.0
1
WS-C6506
TBA04490054
wsc6506
6
giga16
1
WS-X6K-SUP1A-2GE
SAD04520AZD
1
wsx6ksup1a2ge
7.1
ok
Firm
quot; button
or close browser ?
Thanks
- weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n and 1 is returned.
This means that "" is less 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,
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 w
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
displaye
on behaviour is like that ?
Thanks - weetat
below is the 1st page :
'Jumping',
'itemData' => $arrayoffiles,
'perPage' => 10,
'delta' => 8,
'append' => tr
?
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
date status in tbl_chassis table. What i am plan to
do is to select query in the tbl_chassis_temp table and compare 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
Thanks barry for input .
Barry wrote:
weetat schrieb:
Hi all ,
I have a 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 General
Hi all ,
I have a 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://www.php.net
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 ,
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
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
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
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:
Sen
mysql function to use?
Thanks
- weetat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all ,
I have using php 4.3.2 and mysql database.
I have a form which have 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 = '-';
$po
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
(
[T
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
from sql text above.
I have tried using 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
he value "1" not to display on
webpage?
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
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
e , the city value is different between the 2 resultset.
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
59 matches
Mail list logo