[snip]
I wouldn't play with a lawnmower class in the first place. I use PHP to
write web applications which deal with database tables, not lawnmowers,
and
I have yet to find a good reason for using interfaces in such
applications.
Your contrived examples do not convince me of anything.
[/snip]
Good afternoon gurus and guru-ettes!
I am searching for an algorithm that will take a list of monetary values
and determine which of these values totals a value supplied to the
widget.
1. I supply a value to the application and give a date range
2. The application will query for all of the
[snip]
This *IS* the knapsack problem. Just because you specify date ranges to
get your values and the value isn't a knapsack doesn't change the fact
that it is the same problem :) I remember having fun with genetic
algorithms and the knapsack problem back in University.
[/snip]
You're right save
[snip]
So imagine the value of all of your items is equal to it's size. Voila,
same problem.
[/snip]
Got it. I was focused to much on the forest and not the trees.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I need to extract the text from a PDF file for
storage in the database.
[/snip]
It depends. If the PDF is an image file you cannot do it with PHP.
http://www.php.net/pdf read the second user note
[snip]
Madison, WI 53703
[/snip]
P.S. Do you know of the Madison Scouts?
--
PHP General
[snip]
what is it suppose to return if it cannot find records that the exact
total do not match the total
you are looking for? should it return nothing?
[/snip]
Correct. It should say that there are no records that generate a match.
--
PHP General Mailing List (http://www.php.net/)
To
[snip]
I've made a nice video where you see ajax in combination with php. and
it works really well although really is misspelled realy.
Here is the video:
http://magedb.mageprojects.com/videos/MageDB%202nd%20WIP%20demonstration
%20with%20AJAX.mpeg
Cool huh?
[/snip]
It is too bad that the video
[snip]
I saved it and it played in Winamp, but no audio
[/snip]
So, is it worth going to all of the trouble to see?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Is this a joke? You are using a LIMIT 1, so your count is always
going to be 1.
No, its not a joke. The answer is not going to always 1, its going to
be 1 (the value exists in the DB at least once) or 0 (the value
doesn't exist in the DB), that's what I am trying to test for. I
[snip]
But why does the ($r=!$r) ternary condition work?. (I understand
that it DOES but not WHY.)
Because he's rotating between boolean values.
$r = true;
$r = !$r;// Now $r is false;
$r = !$r;// Now $r is true;
$r = !$r;// Now $r is false;
$r = !$r;//
[snip]
But why does the ($r=!$r) ternary condition work?. (I understand
that it DOES but not WHY.)
[/snip]
Check this out -
http://us3.php.net/manual/en/language.operators.assignment.php
It says the value of the assignment is the value assigned, so maybe
assignments to anything other than 0
[snip]
The value of the expression is the value assigned. Since the ! operator
will always return a boolean then the assigned value is going to be a
boolean. So $r will always contain a boolean for the purposes of the
ternary operation.
[/snip]
And it also work if the statement is not ternary
--
[snip]
The value of the expression is the value assigned. Since the ! operator
will always return a boolean then the assigned value is going to be a
boolean. So $r will always contain a boolean for the purposes of the
ternary operation.
And it also work if the statement is not ternary
[/snip]
[snip]
if($r = !$r)
[/snip]
And I hit send before I finished my thought process oh my goodness isn't
it five o'clock yet and why do all of these people keep coming by my
office distracting me from getting something useful done like replying
the PHP list and why doesn't someone bring me a beer?
[snip]
if($r = !$r)
it is a conditional test.
? foo : bar;
...is the ternary operation. Just wanted to clean up the usage there.
Did I miss something? The code I saw was the following:
TR class=?php echo ($r = !$r) ? dataRow1 : dataRow2; ?
And that is definitely using the
[snip]
There is a tool call idera (SQL diagnostic manager). Basically it is a
performance monitoring and diagnostics tool.
It has a feature;
Identifying of worst-performing codes -
Identifies performance bottlenecks such as the worst-performing stored
procedures, long-running queries, most
[snip]
!== FALSE is not good either, it is not a valid test
strpos returns the numeric position of the first occurrence of needle
in
the haystack string.
Except when needle doesn't occur in string, in which case
If needle is not found, strpos() will return boolean FALSE.
[small rant]
This morning's thread on strpos() brings up an interesting point, zero
has a context.
In certain cases 0 is the equivalent of FALSE and in other cases a 0 is
just a 0. In the context of strpos() 0 indicates that the needle is in
the first position of the haystack. If the needle is
[snip]
I want to know, what charset is applied to every file when is created
with
the fopen function and how can I to manage the charset when I use the
fopen
function?
For example: If i want to create an ISO-8859-2 file, how can I to force,
the
fopen function to create it?
[/snip]
This may start
[snip]
I fixed this by changing === TRUE to !== FALSE, so I think I am good
to go now. But would still like to know why TRUE doesn't work. Thanks.
[/snip]
!== FALSE is not good either, it is not a valid test
strpos returns the numeric position of the first occurrence of needle in
the haystack
[snip] Does anyone know how to create a field based on a menu choice?
When the menu is selected, then another field is created with an
associated
number.
For instance:
Selection = Collie Field = 1
Selection = AkitaField = 2
[/snip]
Javascript, DHTML, and AJAX
--
PHP General Mailing
[snip]
I have a question about sessions, I am attempting to store a search
term in a session variable to that when it finds the set of records
from the database it can export it to excel. The problem I have is
that the session variable is 1 search behind...
[/snip]
When you do the search
[snip]
Wouldn't that be what this code does:
?PHP
if ($_SESSION['search'] != NULL){
echo The search string is: strong$search/strong.BR;
$qrow[]= mysql_query($qstring) or die(mysql_error());
$qresult = $qrow[0];
$num_rows = mysql_num_rows($qresult);
[snip]
I'm kinda new at PHP (but not entirely new). I'm having a heck of a
time with PHP causing my apache processes to segfault. I've found a few
cases where it's something simple, like referring to an object property
that does not exist, but it's painstaking work. I'm reduced to
[snip]
You are right. It segfaults only if the virtual() call comes before
creating the XSLTProcessor instance.
[/snip]
I cannot replicate the problem on Linux.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
You are right. It segfaults only if the virtual() call comes before
creating the XSLTProcessor instance.
[/snip]
I cannot replicate the problem on Linux.
So you get the XSLT error messages instead? That's what you should be
seeing.
{/snip]
Yep, no segfault. I do not have a
[snip]
I'm on Linux too, so never mind Windows for the moment.
So what's the difference between our two environments? Try putting
something in the problem-include file to verify that virtual is doing
what it's supposed to.
[/snip]
That worked fine. I am sure that there are many differences in
[snip]
That worked fine. I am sure that there are many differences in our
environments. We are running Suse Linux, PHP 5.2.1, Apache 2.2.4.
That's close though - my workstation is openSUSE 10.2, PHP 5.2.4, Apache
2.2.4.
[/snip]
As this installation is on a development box it has nearly every
problem code on this list...
Jay, this is the same kind of c... that PHP developers have responded
with in the past. I'm sorry, but IMO that is entirely unprofessional.
OK, so maybe one isn't being paid to write open source software, but
that's no excuse for not being professional about it. IMHO
[snip]
I am running PHP 4.4.7 without the GD Library and need it to run.
I am very novice on PHP, and am using a Mac with 10.3.9.
Can anyone point me in the right direction?
[/snip]
http://www.php.net/gd tells you how to get and install the libraries.
--
PHP General Mailing List
[snip]
Anyway, I think it's exceptionally poor show by php to cause a segfault,
probably due to user code. I know it does it every now and then, and
nobody has ever been interested in looking at the core dump.
[/snip]
The Dev team looks at core dumps all of the time to try to figure out
bugs
[snip]
[snip]
Anyway, I think it's exceptionally poor show by php to cause a
segfault,
probably due to user code. I know it does it every now and then, and
nobody has ever been interested in looking at the core dump.
[/snip]
The Dev team looks at core dumps all of the time to try to
[snip]
I have a script that I want to check all files in a directory for
information, if it doesn't find it when all done, I want it to go
elsewhere, however if it does find it, I want it to break out of the
search and perform a function.
CODE:
if ($userinfo == )
{
if ($handle =
[snip]
At 11:24 AM +0200 9/11/07, Sascha Braun - CEO @ Braun Networks wrote:
If you take 30 seconds for the startpage to load, you can check out
http://www.fit-o-matic.com again.
[/snip]
That is awful. Not only does it take a long time for the start page to
load (and there is nothing of any
[snip]
I fixed that but the problem still remains... When I preform the
search I get redirected from index.php to edit.php and can't see
where that would happen.
[/snip]
echo $qstring;
$search is not NULL because $search is equal to $_GET[search]. $search
may be empty though.
--
PHP General
[snip]
echo $qstring; produces: SELECT * FROM current WHERE FName like '%%'
or LName like '%%' or Add1 like '%%' or Add2 like '%%' or City like '%
%' or State like '%%' or Zip like '%%' or XCode like '%%' Which is
correct except for it being empty.
I tried to echo $search, but since it
[snip]
The problem is there's not... At least there's not supposed to be.
The end result that I want is for the search results to end up on the
same page if possible... edit.php is a script I use for editing records.
Maybe I should just do it on a separate page... It might be easier
for
[snip]
Correct. PHP_SELF refers to index.php which is the page that the
search is happening on. a few lines above that there is a reference
to edit.php and here is the code for it:
Sorry for the long cut/paste, but I thought it was important to try
and provide it in context, and the line
[snip]
Total length is 293 lines.
It redirects before any output of $search is visible.
I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone
who wants to see the code...
I know it repeats it's self, but I couldn't figure out how to get it
to log in and stay logged in right
[snip]
tda href='edit.php?Record={$row['Record']}'Edit/a/td is the
ONLY reference to edit.php in the entire code of that page.
[/snip]
No it isn't. edit.php shows up a couple of times, not the least of which
is row 218;
echo form method='GET' action='edit.php';
Do you know where the closing
[snip]
I took a look and now I can't get my eyes to stop bleeding. The horror,
the horror! Mixed PHP/HTML is yucky :)
[/snip]
8^{)}
Undoubtedly things could be organized better. Jason did you just sit
down and code or did you walk it through with paper and pencil (or
notepad even)?
--
PHP
[snip]
Son of a Bitch... Soon as I closed that down at line 265 the search
now isn't redirecting to edit.php Do you debug by hand? Or do you
have something that helps you to do that? I've been tearing my hair
out for hours trying to find that and I couldn't see it...
[/snip]
Debugged by
[snip]
Any opensource or PHP applicaiton is available for Photo upload tool?.
[/snip]
Easy to do yourself
http://us2.php.net/manual/en/features.file-upload.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Does anybody know a PHP library to create Flow chart graphs??
I need it to do something like this:
(yes)
Is it true ? --- Update
|
(no) |
|
Cancel
Thank you in advance!
[snip]
I did a
if ($lines === false) {
echo lines is false;
}
like you suggested and it displays that text...but it still make no
sense.
mypage.php and fruits.txt are in the same folder, on the same server.
There
isn't any permissions issues.
So, if mypage.php and fruits.txt are in the same
[snip]
Do you use logic in your code to find a missing ID and insert new
records
based on that? Or do you just ignore it, let mysql handle the numbering
and
go on with your lives?
[/snip]
The answer is B. There is a long standing discussion on this right now.
--
PHP General Mailing List
[snip]
I was wondering if people is asking this in the belief that the
autoincrement field is the record position in the database table and
that by
not reusing those positions, the space of the deleted records is
wasted.
Perhaps when they say renumbering what they are meaning is compacting
the
[snip]
Are heredocs supported by PP 5.2.3 running in WinXP/Apache2.2.4 ?
I prrint via heredocs and its not working. Print with single quotes and
double quotes work.
p
h6string init method 3: heredocs/h6
?php
print END
[snip]
Is there away with PHP that I can pragmatically change that value to
the total records in the database more so then a representation of
the actual record number?
[/snip]
1. Changing the values in an auto-increment column is just Bad[tm],
especially if you are using it as a unique
I just noticed something a little odd, and maybe there is a simple
solution. Given a form;
form name=foo action=foo.php method=POST
The attributes, especially the name foo, never appear in any variables
array. I am thinking that this might be handy to have for several
reasons when processing the
[snip]
Yes, a single sign-on it is... It doesn't work together with Windows
(and
PHP) you mean?
[/snip]
No, not really.
You can run PHP on a Linux or a Windows server and it does not have
access to the initial login values (press cntl alt del to login)
although ASP and .Net (auth_user, etc) do.
[snip]
i know there is an apache NTLM(1) module for this. i don't believe it
requires anything other than a connection to a domain authentication
server and the ability to send headers and read the reply
(challenge/response) - i don't think the registry is needed at all on
the client or the
[snip]
Can anyone recommend resources that I can use to learn
about doing this?
Are then any open source scripts that demonstrate this
kind of site?
[/snip]
Google is your friend
http://www.google.com/search?hl=enq=PHP+MySQL+login
--
PHP General Mailing List (http://www.php.net/)
To
[snip]
Why is it so that I get this error. I'm using Windows Integrated
authorization-method for actual webb I'm testing on.
Notice: Undefined index: PHP_AUTH_USER in C:\www\utveckling\username.php
on
line 2
[/snip]
Hmm, can only take a guess since we do not see what sets PHP_AUTH_USER,
but
[snip]
So I don't have to reinvent anything, does such a thing exist anywhere
that
anyone knows of:
I'm looking for a php script that will read any xml file, display the
contents in html, with the option of adding an entry (in the same
scheme,
whatever that might be) or deleting existing
[snip]
I can't figure the thing with Windows Integrated authentication... I
have
checked a website for doing this. I still have to enter username and
password even if I'm on the local computer (through a VPN though) This
would
be the same as using computer locally on the network, but I have to
[snip]
... be the same as using computer locally on the network, but I have
to
enter username and password. I'm sure I have checked the Windows
Integreated authenication - checkbox for the website it's about.
When I have entered username and password I can go on and do whatever I
want on that
[snip]
Unfortunately we would need a solution without changing the PHP code of
our users.
No way to do that?
[/snip]
Not really. You could auto-prepend all of the PHP files with the
necessary PHP files, but that may not be a really good solution.
--
PHP General Mailing List
[snip]
I am trying to connect to a mssql server from php 4.3.9.
mssql_connect('IP_ADDRESS:PORT_#',LOGIN,PASSWORD) or die(Could not
connect
to the mssql server);
is failing... after doing a little bit of research, I found this on
php.net
*mssql_connect()* establishes a connection to a MS SQL
[snip]
How could I iterate over the files in a directory and build a list of
unique
filenames? Take the following filelist:
file1_01.jpg
file2_01.jpg
file2_02.jpg
file2_03.jpg
file3_01.jpg
file3_02.jpg
file3_03.jpg
file4_01.jpg
file4_02.jpg
file4_03.jpg
I would like to build an array like this:
[snip]
PHP Warning: mail()
[function.mailhttp://develop1/credit%20card%20processing/Submit/ChildSu
pport/function.mail]:
SMTP server response: 504 br /: Recipient address rejected: need
fully-qualified address.
The value of $user_email when it is echoed out above is [EMAIL PROTECTED]
[/snip]
[snip]
The . (period) is simply the end of my sentance in the email.
The From address is specified in the php.ini and is fully qualified.
If I hard code the value of $to into the mail function it works fine.
$user_email = [EMAIL PROTECTED]
$to = [EMAIL PROTECTED]
mail($to, $subject,
[snip]
echo $title=$row['title'];
echo trtdinput name=\title\ type=\text\ value=\$title\
//td;
[/snip]
echo trtdinput name=\title\ type=\text\ value=\.$title.\
//td;
You have to concatenate the value $title into the string
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
[snip]
echo $title=$row['title'];
echo trtdinput name=\title\ type=\text\ value=\$title\
//td;
[/snip]
echo trtdinput name=\title\ type=\text\ value=\.$title.\
//td;
You have to concatenate the value $title into the string
[/snip]
Actually don't have to do that, it was just one of the
[snip]
$deferred_comments= SELECT * FROM comments WHERE credit_card_id =
'$credit_card_id' AND request_type = 'D';
$result_deferred_comments = mssql_query($deferred_comments) or
die(mssql_error());
if(!empty($result_deferred_comments)) {
[/snip]
$result_deferred_comments is not empty, a query
[snip]
[snip]
$deferred_comments= SELECT * FROM comments WHERE credit_card_id =
'$credit_card_id' AND request_type = 'D';
$result_deferred_comments = mssql_query($deferred_comments) or
die(mssql_error());
if(!empty($result_deferred_comments)) {
[/snip]
$result_deferred_comments is not empty, a
[snip]
Question -- is it redundant to say:
FROM table a LEFT OUTER JOIN table b
ON(a.column = b.column)
when table a appears first? Wouldn't that be the same as:
FROM table a OUTER JOIN table b
ON(a.column = b.column)
[/snip]
An OUTER JOIN is essentially a FULL OUTER JOIN which will include
[snip]
What is the best practice for correctly targeting 'include' paths
when using Initialization/Setup classes that extend Parent classes?
In my extend_parent_class.php file, I have to provide an incorrect
relative path. Apparently, the path (that does work) is relative to
php file that
[snip]
At 6:12 PM -0500 8/18/07, Jay Blanchard wrote:
[snip]
I know this is kinda crazy but I need it :P
I have one table that lists name's
and I have another table that has the name's and points
I want to know how to list the name's of the first table by the points
of the second table
[/snip
[snip]
However, the LEFT and RIGHT will take me a while to figure out.
[/snip]
FROM table a LEFT OUTER JOIN table b
ON(a.column = b.column)
Just follow the order tedd, a is on the left and b is on the right
LEFT OUTER - a - b (what may be in a might not be in b)
a - b - RIGHT OUTER (what may be
[snip]
I know this is kinda crazy but I need it :P
I have one table that lists name's
and I have another table that has the name's and points
I want to know how to list the name's of the first table by the points
of the second table
[/snip]
Not crazy, pretty standard from a database point of
Given the string 'foo''bar''glorp' (all quotes are single quotes)I had
hoped to find a regular expression using preg_match that would return an
array containing just those words without having to go through
additional gyrations, like exploding a string to get an array. I have
only had limited luck
[snip]
I am no regex expert but wouldn't
preg_match_all( /'([^']+)'/Ui, $theString, $matches);
Be more flexible?
[/snip]
Thanks all, I completely forgot about greedy/ungreedy. That is what you
get for being rusty!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
practices book would you buy it? (I am showing
complete disregard for the thread on copyright infringement v. theft.)
Or do you rely on other sources like this list, articles, etc to derive
your own set of practices? Thanks for indulging me.
Thanks
Jay
--
PHP General Mailing List (http
[snip]
I could do something complicated and store the $_POST vars in
$_SESSION[],
but what I'd rather do is simply add a var to $_POST[] and resubmit this
to
the same .php.
Is their any way to do this, or do I need to rethink things?
[/snip]
Put the processing in a function, run the post
[snip]
Yes I am hijacking a thread just to screw with all the people who use
threaded e-mail viewers and because I'm mean like that :P
[/snip]
To answer your question, because hijacking threads is much harder than
typing the e-mail address in the To box, Duh.
--
PHP General Mailing List
[snip]
I'm building an web interface for my music collection.
[/snip]
Have you seen Ampache - http://www.ampache.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
One of my developers saw the following article;
http://arstechnica.com/news.ars/post/20070802-security-experts-warn-deve
lopers-about-the-risks-of-premature-ajax-ulation.html
How are you securing Ajax? I know that for the most part we send data to
a PHP script for processing, so all of the
[snip]
I'm working on a project, where we distinguish between functions and
actions in design, although in PHP both are implemented as functions.
Is there a chance that PHP can use the word action as function?
E.g.:
public function doSomething() { }
public action doSomethingElse() { ... }
[snip]
First, the subject title is LOL.
[/snip]
I know... I wish I had thought of it!
[snip]
Second, I don't know about others but every ajax post/get data
received is treated like any other post/get data -- it's validated
and scrubbed.
Most ajax data provided in my scripts are there to
[snip]
hi all, am trying to cut some texts from a serries of string values e.g.
this is how we do (50 cents feat. the game)
give it to me (nelly feat timerland)
let me hold you (bow wow feat omarion)
i want to cut off the text between the comas and i've seen some examples
[/snip]
Comas? Do you
[snip]
$first = '.addslashes($_POST['firstname']).';
$last = '.addslashes($_POST['lastname']).';
$email = '.addslashes($_POST['email']).';
$address = '.addslashes($_POST['address']).';
$city = '.addslashes($_POST['city']).';
$state = '.addslashes($_POST['state']).';
[snip]
I want to convert some ASP pages to PHP to go along with a transition
from IIS
to Apache. One of the ASP script functions involves reading data from
the
Windows registry. How does one read from the registry with PHP?
[/snip]
PHP is server-side and cannot read client side info. You would
[snip]
We all knew that AJAX is an achronym of Asynchronous Javascript And XML.
When I use another data format like YAML or CSV, will it still be called
as
AJAX?
Or just yet another asynchronous method?
[/snip]
AJAX makes a good catch-all term since the API is called XMLHttpRequest
and the API
[snip]
Out of curiosity, is there any effort in creating a new DOM that's
easier for application builders (something like Visual Foxpro)?
Does Web 2.0 or maybe 3.0 offer some new input types, say something
like a real grid, or maybe a modal child popup?
[/snip]
[potential holy war bits]
There is
[snip]
Does anyone have any resources or links as to how to import a
spreadsheet but it might have different number of columns and many
sheets (those tab things at the bottom).
What I thought of doing was creating a table that has 10 fields and if
the file thats being imported only has 4
[snip]
We have various labs that submit coliform sample results in an ASCII file,
quoted/comma delimited.
We are being asked to encrypt this file for internet transfer. We are also
being asked to create a secure process by which to transfer this file across
the interent.
Currently:
the lab
[snip]
My application is only used within my company. I want to pull the NT
Authenticated user that is logged in, cross reference that user with
what I
have pulled from ldap and verify the user's name is valid. If the
username
is valid I will assign it to a variable and use that variable to store
[snip]
Sorry, I've been up for 48 hours -- it's a boy, 8 lb 9 oz -- time to
get some sleep. Maybe tomorrow my son will finally decide on a name
-- the ninth grand-kid. Maybe he'll name him Rasmus. God, I hope
not. :-)
[/snip]
Congrats! How about Tedd II - Electric Boogaloo (yes, I know, I
[snip]
Is there anyone here interested in teaching (lond distance, off course)
OOP?
I would like to learn how to use objects (I have been working all my
life using structured language). All the books I have tried just talk
about theory not practical issues.
I intend to pay for the classes.
[snip]
Rasmus Lerdorf and the Deathly Hallows
Rasmus Lerdorf and the Order of the PHP
Rasmus Lerdorf and the Order of Function Arguments
Rasmus Lerdorf, Lord of the Code
Rasmus Lerdorf and the Half-Assed Coder
[/snip]
Rasmus Lerdorf and The Coders're Stoned
Arrays 11
Lerdorf - A PHPdoc
[snip]
Artificially created by the law, yes.
[/snip]
Just curious, if this artificiality did not exist what could an author's
reasonable expectation be?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Is there a way to create e-mail with PHP and save it to .eml file
(without sending)?
[/snip]
Yes, there is a way. http://www.google.com/search?hl=enq=save+as+.eml
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
...all manner of interesting debate...
[/snip]
What, exactly, is the difference between this particular brand of
copyright infringement and taking the book from a bookstore without
paying for it? Am I committing copyright infringement by standing in the
store and reading the book?
--
PHP
Perhaps mistakenly for a project that I am trying to do I want to list
all users in the Active Directory. It works pretty well with one
exception, the error ldap_search(): Partial search results returned:
Sizelimit exceeded.
Now, I know that I can page through (I would have to figure out a clever
[snip]
I have a DB
with a field type DATE (called TideDATE)
and a field type TIME (one of which is called highFIRST)
How can I format the time fields from displaying 00:00:00 (a 24 hour
clock)
to HH:MM am/pm format?
[/snip]
Have a look at http://www.php.net/mktime
--
PHP General Mailing
[snip]
Mine was trying to go for an old funk song that starts:
What goes up, must come down.
Spinning wheel got to go 'round
Drop all the painted ponies by the riverside.
[mumble] let the spinning wheel slide.
Only later did I realize I broke the cardinal rule of Name That Tune
and have NO IDEA
[snip]
?
$evil[] = 6;
$evil[] = 6;
$evil[] = 6;
for($i=0;$icount($evil);$i++) {
$_ = sqrt($evil);
}
?
It was supposed to be money is the root of all evil, but the
code above wouldn't work correctly anyway, as each time through the
for() loop it'll try to get the square
[snip]
...schtuff
[/snip]
Please, do not cast aspersions upon the telcos, for those of us who work
in the industry cannot even get some of what you are talking about. We
have a vendor that provides the SMS part and they will not expose the
SMS API to us (not all SMS platforms are equal
[snip]
Do you know the cause of this error?
I'm trying to run it on 64bit Fedora 7. I have AMD64 and JRE 1.6.0_02
64bit
is installed.
Do you know how to fix the following error? if yes how?
**
JVM
501 - 600 of 3776 matches
Mail list logo