and refer to them
from your email.
Second, if you really have to know how - look at the
source of the posting you just made, and/or look at
the relevant RFCs.
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t
)
return $str;
else {
preg_match( /\A([A-Za-z]*)/, substr($str, $len), $match );
return substr($str, 0, $len) . $match[1];
}
}
?
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t
);
}
list($first, $second, $third, $fourth) = ReturnMultiValues(1, 2, 3, 4);
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t-- 5++ !X R+ tv b DI+++ D-(++) G+ e(++) h-- r- y+
--
PHP General Mailing List
it in a browser. If the browser can
decode it, so can just about anyone that knows what
they're doing.
Also note, this scheme adds about 4 1/2 kb to
the size of your page and makes it unusable by
non-Javascript-enabled browsers. Why bother?
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1
://directory.google.com/Top/Computers/Programming/Languages/Functional/
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t-- 5++ !X R+ tv b DI+++ D-(++) G+ e(++) h-- r- y+
--
PHP General Mailing List (http://www.php.net
/;
else
echo /ul;
In production, I would rewrite this to
separate the logic from the presentation...
but if you trace through it, this should
give you a good idea of how to proceed.
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N
for indenting?
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t-- 5++ !X R+ tv b DI+++ D-(++) G+ e(++) h-- r- y+
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
.
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t-- 5++ !X R+ tv b DI+++ D-(++) G+ e(++) h-- r- y+
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to hide, passing the results back to build your
final solution and keeping the pieces generic
and reuseable.
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t-- 5++ !X R+ tv b DI+++ D-(++) G+ e(++) h
= ' ' . $insert . ' ';
$data = \$insert\ ;
Hope this helps.
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t-- 5++ !X R+ tv b DI+++ D-(++) G+ e(++) h-- r- y+
--
PHP General Mailing List (http
off (or generate) the password-value passed to the
image-creation script. You could store the passcode
as a session variable, or send it as an encrypted get-
variable, or hash into a stored dictionary.
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t-- 5++ !X R+ tv b DI+++ D-(++) G+ e(++) h-- r- y+
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, then
redirects to the page with the graphics.
This page then passes the session-id
to the script that generates the graphics.
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t-- 5++ !X R+ tv b DI+++ D
of any php implementation offhand, but
it doesn't seem especially difficult.
--
Hugh Bothwell [EMAIL PROTECTED] Kingston ON Canada
v3.1 GCS/E/AT d- s+: a- C+++ L+$ P+ E- W+++$ N++ K? w++ M PS+
PE++ Y+ PGP+ t-- 5++ !X R+ tv b DI+++ D-(++) G+ e(++) h-- r- y+
--
PHP General Mailing
Chris Wesley [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Wed, 11 Dec 2002, Stephen wrote:
One other question. How would I find the first 0 of a repeating zero.
Like 204,000. How would you find the 0 in the 4th column.
For your repeating zeors
Paul Kaiser [EMAIL PROTECTED] wrote in message
news:58851.208.216.64.17.1035495310.squirrel;illinimedia.com...
I have around 50 checkboxes on an HTML form. Their value is 1. So,
when a user check the box, then no problem -- the value returned by the
form is 1 and I can enter that into my SQL
Tim Haynes [EMAIL PROTECTED] wrote in message
news:20021023162115.16675.qmail;pb1.pair.com...
Here is a puzzle, infact it is a game that I need to do in PHP, here is
the
spec
3 prizes to be won every day over a month by clicking on 24 seperate
windowsand thats it
How could I go about
Peter [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is there a built in PHP function which will convert a MySQL type date
(DDMM or whatever) into a unix timestamp so it can be used with the
other PHP time and date functions?
I'm currently using substr()
Miguel Cruz [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
But then how would newsgroup users write back to people?
miguel
On Mon, 20 May 2002, Leif K-Brooks wrote:
I think it would be a good idea to have whatever software sends list
messages to the
Henry [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello All,
I want to return a gif from a php script. I want it to not be cachable
anywhere not browsers, proxys etc. Actualy what I want to do is pass an
existing .gif file as the output and do some
Jule [EMAIL PROTECTED] wrote in message
02051916383210.28871@localhost">news:02051916383210.28871@localhost...
I got an offer to do some php/mysql design
for a local company, basically what it's going
to be is to take the current Access DB and
make it acessible through a webpage (that's
the
Johan EkströM [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Anyone that has knowledge about this program, regarding it's XML output
and
php fetching that info and placing it on a php-page for user's to view?
Take a look at some of the scripts from
Prachait Saxena [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a string like $str=Hello World ;
and i want to find the first occurance of any one of the char in or
$sp=strpos($str,)
Did not work, beacuse in this I can give only one char
Jeff Lewis [EMAIL PROTECTED] wrote in message
004e01c1fda3$78a91cd0$76a1a8c0@LEWISJCIT">news:004e01c1fda3$78a91cd0$76a1a8c0@LEWISJCIT...
Currently, people can post links to images in an application I am using
but
they can post something outrageous like 1000X800 pixels and it messes
thing
up
Matthew Walker [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm writing a coding standards document for our programmers,
and I need to know if the 'echo' shortcut PHP tags are always
on, or if we need to assume they might not be on.
(By echo shortcut, I
City Colleges Of Chicago - Mannheim [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
if there is a booktitle and a quantity chosen, then go to that booktitle
and
adjust the quantity in the database.
?php
$link = mysql_pconnect($local, $user, $pass)
When you select an item to look at, there is a section named:
Customers who bought this item also bought:
blah link one - blah description
blah link two - blah description
How is this done? Is there a reference to a new db which has the links and
references them from there or do they
I've been reading through the documentation, and
before going further I'll ask if someone's done this before:
I'm putting a simple 2d tile-based game together;
I have a series of tiles saved as 8-bit PNG images with
transparency (the lowest tile has no transparent
pixels). I have a bit-vector
Keep some vital part of the code separate, ie on your own host... such as
the ability to add new users, or the calendar-file for next month, or
whatever. Their system works fine, and as soon as they pay they get the
last module and are on their own, but if they fail to pay you can pull the
plug.
R [EMAIL PROTECTED] wrote in message
001501c1f369$060a52a0$0a6da8c0@lgwezec83s94bn">news:001501c1f369$060a52a0$0a6da8c0@lgwezec83s94bn...
Hey,
Thanks for replying,
Do you by any chance have the code or functions that i can use to do this?
even to output on jpeg should be ok.
Cheers,
-Ryan
Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
On Saturday 04 May 2002 04:58, Hugh Bothwell wrote:
NOTE that for someone sufficiently persistent, they could still
pattern-match the generated image to retrieve the number and
auto-register that way. (I could write
Morten Nielsen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi
Is it possible to call a function in a javascriptpage from a PHP page?
I have a function, which I use when the user press a button. I would like
to
call this function just by typing the name. Is
Pag [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Anyone know how i can make my work more efficient? Like install MySQL and
PHP and get everything working normally when i preview the code in
internet
explorer, that would be perfect, is it possible? How do
R [EMAIL PROTECTED] wrote in message
007501c1f304$3c1607a0$0a6da8c0@lgwezec83s94bn">news:007501c1f304$3c1607a0$0a6da8c0@lgwezec83s94bn...
at the end of the form he wants a key gif...(A gif with a number)
that is automatically generated and that number has to be entered into the
text
Steve Bradwell [EMAIL PROTECTED] wrote in message
57A1618E7109D311A97D0008C7EBB3A1CBB2EA@KITCHENER">news:57A1618E7109D311A97D0008C7EBB3A1CBB2EA@KITCHENER...
Hi,
Sorry to bud in on this, but I was thinking about writing my next php app
oop style to learn. Are you saying that It is going to be
Tom Beidler [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
My mistake. The correct code that works is;
$display_time = date(H:i);
// round time to nearest 15 minute interval
$display_timex = explode (:,$display_time) ;
if (($display_timex[1] = 00)
Michael Champagne [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm not even sure this is possible without doing a client side java applet
of
some sort.
You might be able to munge something using a hidden frame
and Javascript polling, but it would be an
Vins [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
if(!ereg(^#(.)*$, $buffer[$i]))
{
echo ok;
}
what does this mean?
It takes a string ($buffers[$i]) and tries to
match it with a regular expression. The
expression reads a string beginning with
any
while( $res=$UDV - getDbAns()) {// fetch mains
Just checking:
On success, $UDV-getDbAns() returns array of string;
On fail, it returns false.
if(strlen($res[0]) 2) { // if result is OK
$menarr[$h]=$res[0]; // put them in array
Here is your problem - you set $menarr[$h] to
a
Manu Verhaegen [EMAIL PROTECTED] wrote in message
E10E651CDD2DD5118912E8E8C70F5513@compuver01">news:E10E651CDD2DD5118912E8E8C70F5513@compuver01...
Hi,
You can right click on a image on your browser and choose save.
I want to disable this option, how can i do this
1. JavaScript -
Jennifer Downey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
I have no takers on this one?
You would have more help if you didn't glumph
a whole whack of code in... it takes five minutes
just to sort out what's what.
if I have on item it is fine. If I have two items it
Leif K-Brooks [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
on 4/16/02 3:26 PM, Uchendu Nwachukwu at [EMAIL PROTECTED] wrote:
Is there anyway I can use server-side imagemaps with PHP? I want to build
an
application that lets people click on a picture, and
For anyone who may have missed the recent debate:
We seem to have come down to two groups:
the majority seem to be headed for a web-based
searchable FAQ, while a small minority - myself and
two or three others - want a succint text-based
FAQ to post on the newsgroup at regular intervals.
As the
-Original Message-
From: Andrew Warner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 11:29 AM
To: [EMAIL PROTECTED]
Subject: [PHP] conditionaly including classes/functions
Is it okay practice to condtionally include php files that contain
only classes or functions (as
Justin French [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I saw this mentioned a few times recently, but I'd really like to put out
the call again.
This group needs an FAQ *specific to this list* which helps new members /
posters integrate seamlessly...
I'm getting a bit interested in this; here's how I
suggest we proceed.
First, we have to agree on the scope of the project.
I suggest a small number of FAQs directed at specific
subjects (rather than one 5000-line monster); my
suggested breakdown follows below.
Second, I suggest storing these
I'm not sure I understand what problem
you're trying to solve.
It looks something like the number of times
a given piece of data occurs per user?
Where does the data come from and what
are you trying to accomplish?
Need some ideas on combining some arrays
into one! I have array for
using PHP 4.1.3-dev on WinME, I call
$a = str . highlight_file(file.php, true);
and get a warning,
Warning: Wrong parameter count for highlight_file() in myfile.php
and *don't* get the highlighted source I want. show_source()
does precisely the same thing.
The manual says that PHP
... an old C trick: when comparing a variable to a
constant, put the constant first, ie
if (Completed == $payment_status) {
}
that way, if you accidentally use 'assignment-equals'
instead of 'equivalence-equals', you get a syntax error.
Martinahingis [EMAIL PROTECTED] wrote in message
In php.ini, there is a setting called short_open_tag
which controls whether ? is recognized as shorthand
for ?php
Try using ?php instead - if that works, then your
problem has been identified.
I have a question that could be Apache, could be
php, but I'm so new to this I have to ask: what is
I have a map of the world with all countries. I have
250 maps of the same size as png where only one
country is black, rest is transp.
Now I neeed to set this country color to blue or red
to indicate a special spot.
I just don't want to save the same map double or tripple.
Good! Makes
(shrug) convert to unixtime, subtract, and reformat
In fact, you could do the conversion and subtraction in your SQL query,
returning just 'elapsed seconds since date', and reformat from there.
I need a function that will get a date in the past and return how much
time has passed since that
Andy [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi there,
I would like to change the color on a png file from black
to blue. This png file is transparent and contains only a
spot which is black. It is needed to stay transparent
because I am gonna merge
I am trying this method: Register a global variable ($CSS) using a FORM.
[snip]
I wonder if I am not doing something stupid/overlooking something obvious,
but I am very new PHP so that is possible.
// in my global PHP file
// Now what I am trying to do here is set a default that should
I need a php script that checks if the there is a
cookie set with the users username and if not it
brings you to an other page and telling you that
you are not loged in!
(a) Don't cross-post all over.
(b) Cookies 'automagically' become global variables, so
a simple version is
Aaargh! typo...
if(!session_is_registered(username)) ])) {
should be
if(!session_is_registered(username)) {
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You're asking the wrong question.
'Disabling the back button' changes the expected behaviour
of the browser and as such is an *EVIL* thing to do, roughly
on par with driving the wrong way down one-way streets or
spray-painting your neighbor's cat.
What you want is to 'prevent the user from
How about a hierarchical tree? Strip the common precursor stuff
([http[s]://][www.]) and proceed from there, splitting on '.', '/', '?' and
''.
I would also put a Yahoo-style split-level back-out link on the page, ie
[nandotimes].[com]/[news]/[current]/
article2001.html(1
Richard Ellerbrock [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
$result=mysql_query(DELETE FROM customer
WHERE customer=$cust,
$ds) and
$result=mysql_query(DELETE FROM custinfo
WHERE customer=$cust,
$ds) and
Actually, it looks pretty straight-forward:
?php
$points = array( 1, 2, 3, 5, 10, 15, 20, 25, 50, 100, 300, 500, 600,
10 );
$prices = array();
function init_prices() {
global $points, $prices;
foreach($points as $val)
$prices[$val] = none;
}
function show_prices() {
Simon De Deyne [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
is there any code for this available yet?
I am looking for a way of plotting gif images of objects
in a 3D space...
thank you!
Simon
Don't know of any offhand, but it doesn't sound all THAT hard
?php
$nWidth = 3;// desired table width
$nPos = 0;// current-column counter
// do database query
$res = mysql_query(???);
// start table
echo table;
// while there is data...
while($row = mysql_fetch_object($res)) {
// begin new row if appropriate.
// NOTE: Of
Kevin Old [EMAIL PROTECTED] wrote in message
030701c1b988$cf93df30$0701a8c0@KOLD">news:030701c1b988$cf93df30$0701a8c0@KOLD...
Hello all,
I have a challenge that has been put on me. I have built a website for my
church and we are now wanting to put our newsletter online. It is
currently
but for some reason, no matter what the month, the first if statement
(if current_month = 1) is seen as true and executes... any suggestions?
Try using 'equivalence-equals' (==) instead of 'assignment-equals' (=).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Zlutarch G. [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi everyone,
PHP fopen function opens URL using the HTTP GET method. But what if one
could only open the web page using the HTTP POST method? In this case,
fopen
won't work. Is there a PHP function
Webleycity [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
A client wants a webcam on his site. Does any body know what script is
used
and how it works.
The camera should come with a prog to take a snapshot.
Write a batch file that takes a snapshot, then
Webleycity [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
If one creates a file outside the web space on a server. How doe's one
connect to this from a HTML or PHP page?
As I understand it. It is not as simple as normal html link.
From an HTML page, it's
Rich Buggy [EMAIL PROTECTED] wrote in message
018a01c18160$c463c180$[EMAIL PROTECTED]">news:018a01c18160$c463c180$[EMAIL PROTECTED]...
I'm wondering if anyone has any information about how to get the
proximity data for postcodes in Australia? Or is it safe to assume
that if a postcode is,
Paul Roberts [EMAIL PROTECTED] wrote in message
000d01c18101$5dbb2220$01f8883e@laptop1">news:000d01c18101$5dbb2220$01f8883e@laptop1...
Hi
I'm trying to pre-fill a form ( the data is passed via sessions or from
another script).
i have some check boxes on the form that i would like checked
Steve Osborne [EMAIL PROTECTED] wrote in message
000901c181db$bfca1f40$[EMAIL PROTECTED]">news:000901c181db$bfca1f40$[EMAIL PROTECTED]...
Is there a function or command in php that will redirect a user to another
page, similar to Response.Redirect(URL) in ASP?
header(Location:
[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
suppose the date is 12-10-01
--
$timestamp = time();
//this is the sent on date
$yd_expl = explode(':',08-01-01);
Uh, better make that
... = explode('-', '08-01-01');
Lee [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am developing a portal that will allow users to perform various
calculations on their data sets. These calculations (handled by C /
Fortran programs) will be run as external processes (and may take up to
a
Kostis Mentzelos [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
is it possible to create a table that automatically
updates its contents every 30 seconds?
I would use JavaScript to make the page reload itself.
Note: this could generate a LOT of traffic.
--
Jon Thompson Coon [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I don't want to ask all these silly questions constantly time, but being
lazy overcomes the urge not to do so.
Having a page somethin/somewhere/index.php?do=thisand=that. This page
does some
Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Could someone give me an example of the sort of error handling you put in
your php scripts? Cheers. Should I be preceding every command with @?
Anything where this would be harmful? Just looking for
Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
So I should chuck it on all mysql functions? Done. Don't ya just love
search and replacing a whole directory of scripts :-) Still works fine
too - bonus!
er...
I should have noted - if you are going
Pavel Jartsev [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Jordan Elver wrote:
Hi,
Could any one explain what this statemnt means?
$i = (!$i)?0:$i;
Well, literally, if not-$i is equivalent to true then $i becomes string
0, otherwise $i 'becomes' $i.
Sagar [EMAIL PROTECTED] wrote in message
001b01c1347e$b58e2580$6dfb7ccb@ravella">news:001b01c1347e$b58e2580$6dfb7ccb@ravella...
I hope some one will solve my problem.
I have a table in which a field is of date type.
i want a mysql query to get all the records of the table
into an array of a
Jon Farmer [EMAIL PROTECTED] wrote in message
003f01c1345c$53e385e0$[EMAIL PROTECTED]">news:003f01c1345c$53e385e0$[EMAIL PROTECTED]...
The company I work for is starting to lose contracts because they are not
capable of EDI. As I seem to be the only person in the company who has
heard
of EDI
Melih Onvural [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
i want to randomly choose a column in a database with a quote in it, by
the
number of the column.
i have a random seed working, but it won't pull only one column, but all
columns. How can I choose
Brad R. C. [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
But what my goal was is to make it where it goes through all the images
before showing a random twice.
... if you actually want to do this, you will have to keep track
of which items you have seen in
Georgie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a simple php script that searchs a MySQL database and returns
results
that I made myself and I'm trying to implement code that splits the
results
into x amount of pages, buts it really tricky.
...
the triplets table (and email me to explain what on Earth
you're doing with it!! ;-)
?php
// Hugh Bothwell [EMAIL PROTECTED]
// August 31 2001
// Number-to-word converter
$ones = array(
,
one,
two,
three,
four,
five,
six,
seven,
eight,
nine,
ten,
eleven,
twelve,
thirteen
Kath [EMAIL PROTECTED] wrote in message
015301c13156$2c273500$[EMAIL PROTECTED]">news:015301c13156$2c273500$[EMAIL PROTECTED]...
I have a MySQL table which stores information like this:
| Type | Place Name | Place Abbrv |
and lets say I have data in the table like:
Example #1:
| Office |
Rosen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I'm using PHP code from manual:
srand( (double) microtime() * 100);
// Get random User ID
$uid=rand();
but it dowsn't work !
... I would make sure that microtime() is doing what you think it is;
[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is there a macro preprocessor that can be used to substitute arbitrary
sections of code with different code? define is documented as working
for rvals only and my attempts to produce something more meaty lead
Vincent - D. Ertner [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi phpers,
I'm looking for a PHP Developer ... what is probably the
best way to go for it?
General procedure is to give a rough sketch of what you want to accomplish,
what development tools
Gerard Samuel [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
$query = SELECT mpn_job.ID, job, assigned_to, status_date, category;
$query .= FROM mpn_job, mpn_job_category WHERE CID =
mpn_job_category.ID;
$query .= AND
Seb Frost [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have these _vti_pvt _vti_cnf directories on my website. Why? I never
put
them there... can I delete them?
I tried searching for this but it's impossible to search for since it
seems
a lot of
Nafiseh Saberi [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi.
I want to use glabal variable.
?
global $a;
?
but it doesnot work??
... why do you think you need to use global here?
global is used *in a function* to let it see
external variables.
Saurabh Kapoor [EMAIL PROTECTED] wrote in message
001901c12d63$b1b62100$9e2823d9@killer666">news:001901c12d63$b1b62100$9e2823d9@killer666...
I am a C programmer, looking to migrate some code to PHP (Unusual, but my
colleagues request it).
Can someone tell me the size (in bytes) of the type
Mike Cullerton [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
it's an if/else shortcut.
the part before the '?' is tested. '$i % 2' in your case.
the part after the '?' is returned if the test evals to true. '0' in your
case.
Documentation at
Tyler Longren [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Sat, 25 Aug 2001 15:03:49 +1000
GaM3R [EMAIL PROTECTED] wrote:
can anyone explain to me exactly what this would do differently?
$data = fread($fp, filesize($file));
$data = fread($fp,
Tamas Bucsu [EMAIL PROTECTED] wrote in message
012c01c12c8b$49cf6750$1100020a@domain1">news:012c01c12c8b$49cf6750$1100020a@domain1...
Is there any special way to get some pics from
the web? Cos' what I wrote just does not work.
Thanks
if (file_exists($kepnev)){
Alberto [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have 2 timestamps like mktime(0,0,0,10,10,2001) and
mktime(0,0,0,9,9,2001), I want to know how many days are from timestamp1
to
timestamp2 or how many hours, or how many seconds, thnx
Natasha [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi,
i want to know how i can get all selected values of a multiple select
statement using $HTTP_POST_VARS
The name of your select must be an array, ie
select name='myvar[]' multiple
optionA
Jeff Lewis [EMAIL PROTECTED] wrote in message
009201c12bff$de696af0$76a1a8c0@LEWISJCIT">news:009201c12bff$de696af0$76a1a8c0@LEWISJCIT...
I have a form where users can enter a link
(kind of a free for al links type of thing)
When they add their site to the database
a 0 is added to the
John Bass [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi All,
I am trying to generate a table with two columns. Each column should
print
2 fields named image_link and web_url. Have spent over week looking
documentations and trying different coding but
Christopher Cm Allen [EMAIL PROTECTED] wrote in message
003201c12be2$f9309b00$[EMAIL PROTECTED]">news:003201c12be2$f9309b00$[EMAIL PROTECTED]...
Greetings Php'ers:
2 cents
bahh to servelts-asp these are new kids on the block. Template this or
that,
it doesnt matter, most templates are for
Martin Hughes [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
OK here's the code in the page:
!-- Start Navigation --
div id=navbar
table class=navtable width=160 cellpadding=4
!-- Navigation Bar Heading --
tr
td class=navheadWelcome/td
/tr
trtd
1 - 100 of 133 matches
Mail list logo