At 12/28/2006 03:51 PM, Skip Evans wrote:
"chocked" ?
"chocking" ???
RTFM:
http://php.net/chocked
Warm regards,
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 12/30/2006 10:56 AM, tedd wrote:
Why can't the php script redirect the browser when called via ajax ?
Ajax is giving PHP control over just that byte-stream that ajax is
receiving and perhaps inserting into the page, not the full page itself.
Say you use javascript to set the src of an im
At 1/2/2007 12:24 AM, Le Phuoc Canh wrote:
Can we use php to detect client screen resolution? Please help me ?
Do you really want screen resolution or do you want browser window
size? Not every PC user keeps their windows maximized, and I have
yet to meet a Mac user who attempts to do so.
I've recently discovered a tool that I recommend for web work:
ServiceCapture by Kevin Langdon
http://kevinlangdon.com/serviceCapture/
It acts as an HTTP proxy, inserting itself between browser and the
net, and logs the details of http requests and responses.
It's been a great help to me late
, comma
; semicolon
: colon
http://www.usask.ca/its/courses/cai/javascript/js_semicolon.html
http://en.wikipedia.org/wiki/Punctuation
http://www.cogs.susx.ac.uk/doc/punctuation/node00.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
At 1/15/2007 01:52 PM, Otto Wyss wrote:
When values are entered on one of my page I submit the result back
to the same page (form action=same_page). Unfortunately each submit
adds an entry into the history, so history back doesn't work in a
single step. Yet if the count of submits were known I
At 1/16/2007 12:54 PM, Jason Pruim wrote:
First off, thanks to everyone who helped me get started with a
thumbnail gallery that would display info you could just copy/paste
into a weblog (Or any webpage) and have the picture display.
I am moving along with a few additions and seem to be running
At 1/18/2007 02:56 PM, Chris W. Parker wrote:
I'm currently working on trying to find a solution that is both simple
and flexible for storing the data of a complicated set of dynamic
options for some of our products. My current thinking is that I will use
Modified Preorder Tree Traversal to organ
At 1/20/2007 02:14 PM, Andre Dubuc wrote:
However, checking the live version, I get an secure-error_log entry:
"PHP Warning: session_destroy() [function.session-destroy]: Trying to
destroy uninitialized session"
Question is: didn't the session_start(); on the calling page take effect, or
is th
At 1/21/2007 01:54 AM, pub wrote:
I am working on my query as you suggested. I have a joint query that
seems to work except that I get the name of the company repeated for
each job. Could you please help me figure out how to make it echo the
company once and list all the jobs next to it on the sa
At 1/22/2007 03:04 PM, Beauford wrote:
I'm trying to get this but not quite there. I want to allow the following
characters.
[EMAIL PROTECTED]&()*;:_.'/\ and a space.
Is there a special order these need to be in or escaped somehow. For
example, if I just allow _' the ' is fine, if I add the oth
At 1/22/2007 04:56 PM, Beauford wrote:
I've probably read 100 pages on this, and no matter what I try it doesn't
work. Including all of what you suggested above - is my PHP possessed?
if(preg_match("/[EMAIL PROTECTED]&()*;:_.'/\\ ]+$/", $string)) { gives me
this error.
Warning: preg_match() [fu
At 1/23/2007 04:52 AM, Martin Alterisio wrote:
if (preg_match('/[EMAIL PROTECTED]&()*;:_.'\\/ ]+$/', $string))
Close but no cigar. Because you're using apostrophe to quote the
expression, PHP interprets the apostrophe inside the character class
as ending the quoted expressions and fails
At 1/23/2007 09:50 AM, Beauford wrote:
> preg_match("/[EMAIL PROTECTED]&()*;:_.'\/ ]+$/", $string)
>
On top of this, every time a ' is entered it gets preceded by \. If I just
check for the characters like below that doesn't happen. Totally confused.
if(preg_match("/^[-A-Za-z0-9_.'
At 1/23/2007 05:52 PM, Skip Evans wrote:
I have a requirement to take a large amount of text, a story
submitted to a competition, and split into displayable chunks of 600
words each.
You can explode a text into an array of words, slice off a
600-element array, and implode the result back int
At 1/23/2007 05:52 PM, Skip Evans wrote:
I have a requirement to take a large amount of text, a story
submitted to a competition, and split into displayable chunks of 600
words each.
At 1/23/2007 07:20 PM, Anas Mughal wrote:
// textwrap 1.1 Brian Moon <[EMAIL PROTECTED]>
// This code is part
At 1/24/2007 01:13 PM, Beauford wrote:
> Here is my rendition of what I think you are looking for.
>
> $str = 'tab( )/space( )/[EMAIL PROTECTED]&*();:...';
>
> if ( preg_match('|[EMAIL PROTECTED]&*();:_. /\t-]+$|', $str) ) {
> echo 'success';
> } else {
> echo 'failure';
> }
>
H
At 1/24/2007 01:44 PM, Otto Wyss wrote:
I'd like to make my pages multi lingual, showing everything in the
language the user chooses. My pages show mostly static text. So
what's the usual implementation for this case.
This is a vast subject that deserves general study. I recommend that
you
At 1/24/2007 02:27 PM, Richard Luckhurst wrote:
What I am trying to do is extract the first chunk.
...
preg_match('##', $xml_string,$matches);
$tempstr = $matches[0];
What I actually get in $tempstr is everything from the first through to
the last (second)
I would have expected preg_match
At 1/24/2007 10:12 PM, William Stokes wrote:
How can I sort an array like this so that it would be ASC ordered by the [1]
key in subarrays? I need to maintain only the subarray key - value pairs.
(Do I make sense?)
Array
(
[0] => Array
(
[0] => Logo
[1] => Nam
At 1/25/2007 11:16 AM, blackwater dev wrote:
Is there a php function I can call to pass in a number and get the values
returned?
For example, pass in 7 and get 1,2,4 ?
Here's a slightly more off-the-wall contribution:
function bin2array($iDecimal)
{
At 1/26/2007 12:25 PM, Otto Wyss wrote:
Paul Novitski wrote:
In both cases I store the text in database tables that contain a
language field I can select on to match the user's request.
I wonder if retrieving static texts from the database draws too much
performance. I know from somebod
At 1/28/2007 03:21 PM, nitrox . wrote:
Im trying to display one record at a time by ID. Well im getting a
blank page. Ive looked over my code and tried 20 different ways to
get it to work to no avail. So any pointers on what Im doing wrong
would be great. here is the code im working with so far
At 1/30/2007 02:14 PM, nitrox . wrote:
If its not too much would you (or anybody) give a brief explanation
of what this code is doing? Or are there any tutorials online that I
can read that will educate me on this? Thanks again to all for your
replies. Ive saved them all for future reference.
echo <<<_
This text doesn't "care" about quotes.
_;
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
clean presentation:
__
function drawTableRow($sqlrow)
{
return <<<_
{$sqlrow['time']}
{$sqlrow['field']}
{$sqlrow['division']}
_;
}
__
By the way, if every cell in every row
On Feb 3, 2007, at 10:04 PM, Paul Novitski wrote:
By the way, if every cell in every row is class "tabletext" why
have a class at all? You could simply apply the desired styles to
the td element.
At 2/3/2007 10:05 PM, Albert Padley wrote:
As far as the CSS on the , other cells in
Employees.Position, Employees.LastName, etc
FROM Employees, Positions
WHERE Employees.Position = Positions.Position
ORDER BY Positions.Sort, Employees.LastName
(Assuming more than one employee per position, I figure you'd want a
secondary sort criterion.)
Regards,
Paul
complete and it passes to
the save page, none of my $_POST variables are being passed.
Of course, all of your form fields need to be inside the same
tags as your submit button. The sample HTML you posted
did not indicate that you'd done this.
Regards,
Paul
______
lly appropriate for this
list. I'd suggest taking it to one of these:
multiweb.googlegroups.com
Webdesign-L
WSG (Web Standards Group)
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Ma
At 2/10/2007 01:19 PM, pub wrote:
Do any of you also know how to play bridge?
If yes, which do you think is harder to learn, PHP or bridge?
I don't think learning is so generalizable.
In my experience, motivation has a lot to do with how easy things are
to learn. If you're excited or passio
the database of
jokes, in whatever order, once a year. Rather than randomly
selecting a record each time you pull a joke from the database, you
apply any randomness you want once a year when the database is assembled.
Regards,
Paul
__
Paul Novitski
Juniper Webcraft
end
}
plug error message into form
}
display form
___
If the user submits the form, the logic begins again.
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsu
, but name capitalization seems doomed.
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sted to compare notes on strategies for implementing
this efficiently in PHP.
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 3/21/2007 04:57 AM, Shafiq Rehman wrote:
Some problems are universal and we cannot fix them in computer science. I
think it's better to educate/guide your visitors about such names that they
write in correct capitalization
In this case, the OP has an existing list of names he wants to
de-c
how they spell their names. There simply are no rules that apply
across the board, whether applied by machine or flesh. Anything but
personal interviews is just informed guesswork.
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
ator/
SQL validator: http://developer.mimer.com/validator/parser200x/index.tml
Good luck and have fun!
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rs to use my contact forms more, but it
hasn't appeared to have had that effect.
Documentation links:
http://php.net/count
http://php.net/pcre.pattern.syntax
http://php.net/preg_match_all
http://php.net/preg_match_all
http://php.net/preg_split
http://php.net/strtolower
http://php.net/substr-count
can't hack your system
through the querystring, but you should already be doing this anyway
whether you're using POST or GET.
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.ph
utomatic modification of significant data
without thoughtful validation of incoming data. As always.
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(I can ask that all tables have at least a PK, but
I can't ask that the PK is made of only one field).
You can construct a single array key from multiple database fields:
$aArray['pk_' . $aDataRecord['fieldA'] . '_' .
$aDataRecord['fieldB']] =
Otherwise, $result is the handle to the query's result.
A successful (non-error-producing) query can return zero rows of
data. A perfect example is when you check a user table to make sure
a username isn't already taken before creating a new record.
Read this page again carefully:
http
rror('checking user name',
mysql_errno(), mysql_error(), $sql);
...
function ReportSQLError($context, $errno, $errorMsg, $sql)
{
if (bDebug)
{
die("MYSQL ERROR $errno $context:/>\n$errorMsg\n$sql");
}
else
{
ement to browser
echo "aFileArray = new Array('$html');";
or:
echo <<<_
aFileArray = new Array('$html');
_;
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d forth just to unset individual elements
seems extremely inefficient. Besides, if the element values aren't
unique, won't flipping the values & keys eliminate array elements
that share the same value?
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Lt
you see than the
quality of what you get.
...Now that I've had my say... and as dear as this topic is to my
heart... it's really off-topic for this list. I'd recommend WD-L
http://webdesign-L.com/
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Lt
com/vb/scripts/ShowCode.asp?lngWId=8&txtCodeId=1786
Pinging a remote host in PHP (using PEAR)
http://builder.com.com/5100-6371-5234592.html
What's a preferred method?
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP G
eption and because it's an ad, my guess is that it's markup
imposed on the designers from the outside. I didn't see a similar
structure on the few sub-pages I glanced at, so it doesn't appear to
be part of the overall layout strategy.
Regards,
Paul
___
we all use the same markup language that's presented
somewhat differently from browser to browser. Is it possible that
back in those first years of the world wide web no one was making a
distinction between markup and layout? Hmm.
Regards,
Paul
__
Paul Novitski
J
http://www.shinwa-kensetsu.sakura.ne.jp/bth7rz.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can someone please point me to some PHP code or documentation for
accessing FileMaker Pro tables with PHP? So far googling Zend and
world-wide hasn't found me what I'm seeking.
Thanks,
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
here is!
Regards,
Paul
At 11/12/2007 03:04 PM, Daniel Brown wrote:
On Nov 12, 2007 5:58 PM, Paul Novitski <[EMAIL PROTECTED]> wrote:
> Can someone please point me to some PHP code or documentation for
> accessing FileMaker Pro tables with PHP? So far googling Zend and
> wor
At 11/14/2007 01:02 AM, George Pitcher wrote:
Paul,
> What I'm really looking for is a PHP class that will read FileMaker
> files in their native format. I'm beginning to suspect that none
> exists in the public arena. Someone please tell me there is!
...
I'm just exporting my tables (files
in double quotes and see if that helps:
view details
How does your page validate? http://validator.w3.org/
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
7;,') LIKE '%,7,%'
OR CONCAT(',', `groups`, ',') LIKE '%,14,%'
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s not true, and now I use the simple shorthand:
$sResult = <<<_
Some text.
_;
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. If that were the
case, prompting users to unstick their shift keys would be possible.
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
last one selected.
I believe the common way to accomplish this is to add [] to the form
element's name, which persuades PHP into treating it like an array:
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP Ge
ges that should add to 100%.
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
characters mixed
with the digits to indicate scale.
Once you accept the input, then you could delete all the characters
that aren't digits or period. Keep that decimal point, it's too
significant to lose.
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Lt
At 5/8/2007 12:47 AM, Jyoti wrote:
Can anyone can tell me what CMS is?
How can we make it?
What are the requirements for it?
A CMS is a software system for managing website content.
To begin, click on these links:
http://google.com/search?q=what+is+a+cms
http://google.com/search?q=define%
At 5/14/2007 11:51 PM, Brad Sumrall wrote:
Yes, I do still need legit help. But obviously I needed to make a point to
all the script kiddies out there that you are playing with fire if you even
attempt to miss use an admin password or access a server that does not
belong to you.
That you posted
At 5/16/2007 09:40 PM, Eduardo Vizcarra wrote:
I would like to know if a SELECT SQL query list of records can be unsorted.
SELECT statement retrieves a list of records from a certain table starting
from record # 1 till record #N and when publishing the records, this is how
it is presented, in a s
Looks like you are missing a comma on line 3.
James Lockie wrote:
I get a syntax error on strlen.
$newTypes = array();
$newTypes[0] = array();
$newTypes[0][0] = "Starting with"
$newTypes[0][1] = strlen( $newTypes[0][0] );
Missing semicolon;
Paul
--
PHP General Mailing List
ayData($aResultSet);
or:
displayData(lookUpData());
in which lookUpData() returns a dataset array that's empty if no
records were found or an error was encountered.
In my programming style, I can't imagine wanting to write this code
in such a way that lookUpData() didn't
nction to call, with an option whether or not to
return anything, it's clearly up to us to design and impose that
architecture based on our knowledge and preferences.
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 5/30/2007 10:51 AM, Richard Lynch wrote:
On Wed, May 30, 2007 12:00 pm, Paul Novitski wrote:
[snip] use the archives
Good suggestion!
HOWEVER: it is not a good idea, imho, to "always" let the errors
bubble up to the outer layer, which is what Paul seemed to have
typed...
ifiers
http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php
"i (PCRE_CASELESS)
"If this modifier is set, letters in the pattern match both upper
and lower case letters."
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x Coach (a downloadable Windows application)
by Edi Weitz
http://weitz.de/regex-coach/
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
eriod' is called in British English.
http://google.ca/search?q=define%3Afull+stop
In English syntax "period" and "full stop" are synonymous, and the
RegEx manual is throwing "dot" into the same bag.
Regards,
Paul
__
Paul Nov
ll also running into \n\r although I can't recall which system uses it.
As an alternative to PCRE, we can pass arrays to PHP's replace functions, e.g.:
$txt = str_replace(array("\r\n", "\n\r", "\r"), "\n", $txt);
Regards,
Pau
cases to write
nearly identical logic in key functions, reducing programming,
debugging, and maintenance time. This technique is known variously
as 'unobtrusive javascript' and 'progressive enhancement.'
Regards,
Paul
__
Paul Novitski
Juniper Webcr
2
etc.
In PHP this could be:
intval(($month - .1)/3 + 1)
or:
intval(($month + .9)/3)
I believe you can use intval() and floor() interchangeably in this
circumstance.
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraf
At 7/3/2007 12:11 PM, Jay Blanchard wrote:
[snip]
if($x == 0.01 || $x == 1.0){
$y = "in";
}
[/snip]
In for a penny, in for a pound. Metric, that is!
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Ma
corner of childhood poetry
memories did that come from? It's easy to google... My god, Ella
Fitzgerald? THE Ella Fitzgerald?? Yowsa!
Bemusedly,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 7/17/2007 11:46 AM, Tom Ray [Lists] wrote:
I'm a little unsure on how to do this but basically when someone
uses a form to upload a file I want to have a popup window come up
and so the process in percentage of the transfer. Anyone do this
before? Is it possible in PHP or do I need to do it
At 7/17/2007 07:42 PM, you wrote:
Really people. I find it hard to believe that the otherwise-intelligent
people on this list have such a hard time with the concept that something
should not be done for reasons that don't involve physical property, just as
I find it hard to believe that making u
old on it myself.
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sset: http://php.net/isset
file_exists: http://php.net/file_exists
readfile: http://php.net/readfile
@ Error Control Operator: http://php.net/@
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cess his email because he couldn't find
Explorer, and she advised him to click on Foxfire. (Great movie, though.)
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
... */ and //... are PHP comments.
The HTML comment syntax does not affect PHP, and PHP comment syntax
does not affect HTML.
http://www.php.net/manual/en/language.basic-syntax.comments.php
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
ge_height" with a
space between - and >?
Regards,
Paul
______
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you'll want to check the incoming values to prevent SQL
injection (q.v.). If you insert unevaluated input into an SQL query
you're leaving yourself vulnerable to everything from data exposure
to data manipulation from outside sources.
Regards,
Paul
__
Paul Novi
Hey kids,
I thought I was joining a PHP list, not a snarky ego-fest. I assume
most of us are trying to get work done around here and are interested
in programming Q&A. Please take your squabbles off-list or re-title
them. They're off-topic and a waste of everyone's else's time. Yeah
I've
At 04:38 PM 6/28/2006, Grae Wolfe - PHP wrote:
The first problem is men's names and unmarried women's names... they will
have the same "hs_last_name" and "last_name" so I don't want the duplicate
displaying on the page.
The second problem is the entry of the word "none" by some of the visito
At 11:50 PM 6/28/2006, weetat wrote:
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'm enjoying using the PHP class FPDF http://www.fpdf.org/
It's not a one-step conversion utility, it's a PHP clas
At 04:50 PM 7/4/2006, Brian Dunning wrote:
I have the source of a web page stored in $here and I want to set
$this to whatever appears between '' and 'span>'. Example:
$here contains (amid tons of other stuff): This is a statement.
If you can depend on the markup you provided, you can use:
At 08:11 AM 7/10/2006, Schalk wrote:
I am getting the following error:* Parse error*: parse error,
unexpected $ in
*/home/httpd/vhosts/demo.bdiverse.com/httpdocs/accessible/processlogin.php*
on line *69
In my code the last line i.e. ?> is marked as line 69
I don't see anything wrong with t
At 11:27 AM 7/13/2006, Michael B Allen wrote:
Let's say you have a "Buy" button that posts a form to a script that
inserts or increments the quantity of a record in a shopping cart
table. So you click "Buy" and then "Checkout". Now if you hit the Back
button it asks the user if they would like to
Niels schrieb:
The problem: A function tries to update an existing value, but is only
allowed to write certain bits.
There are 3 variables:
A: the existing value, eg. 10110101
B: what the function wants to write, eg. 01011100
C: which bits the function is allowed to write, eg.
With the
At 11:18 PM 7/28/2006, weetat wrote:
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 ele
At 12:20 AM 7/29/2006, Paul Novitski wrote:
You might consider concatenating all the elements in each sub-array
to make the comparison logic simpler, e.g.:
foreach ($currenttablearr as $key => $subarray)
{
$comparisonArray[$key] = explode("_&quo
At 09:59 AM 7/30/2006, Jochen Kaechelin wrote:
How can I call a JavaScript inside php?
You can't literally call client-side JavaScript from server-side PHP
because they're executing at different times and in different
computers. PHP executes on the server then downloads the page to the
bro
At 10:31 PM 7/30/2006, weetat wrote:
I have problem when doing usort() when 'country' = '', i would
like to display records where country = '' last. Any ideas how to do that ?
...
$arraytest= array(
array
(
'country' => '',
)
,
array
(
At 05:40 PM 7/30/2006, Peter Lauri wrote:
function cmpcountry($a, $b)
{
$country1 = $a['country'];
$country2 = $b['country'];
if($country1=='') return 1;
else return ($country1 < $country2) ? -1 : 1;
}
Good call, Peter; my suggestion was unne
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'] == '') ? "zzz" : $a['country'];
$country2 = ($b['country'] =
At 01:14 AM 7/31/2006, weetat wrote:
Thanks Paul,
Very weird tried Peter's option, it doesn't work.
Btw , how to sort by ascending ?
Please explain what you mean. The current script DOES sort ascending
by country (except for the blank country fields which are placed at the end):
http:
At 10/17/2006 12:39 AM, AYSERVE.NET wrote:
Please, I need help on how to to recognise url in a block of text
being retrieved from a database and present it as a link within that text.
Here's an illustration of your problem:
Input:
Text text http://example.com/directory/filename.html#anchor te
1 - 100 of 221 matches
Mail list logo