Hello List
A client has asked me to migrate a few scripts that have been running
merrily under PHP4 to PHP5.2. Part of these scripts have integration
with PHPMyAdmin
using the single sign-on and so they make use of the following code :
session_write_close();
session_name("blah");
session_start();
Brad Bonkoski wrote:
Is there a way to key off of the data inserted? Like some unique value
or set of values that you can do a quick lookup before you
insert/update/delete again...
Or you could venture into an AJAX style of submission keyed off of a
button click then a refresh to a 'report' pa
Paul Jinks wrote:
> Rory McKinley wrote:
>
>> Paul Jinks wrote:
>>
>>
>>>>>while($ouput_row = mysql_fetch_array($result)) {
>>>?>
>>>
>>
>>
>>
>>
>>
>> Paul - is this the a
Paul Jinks wrote:
>> > while($ouput_row = mysql_fetch_array($result)) {
>> ?>
>>
Paul - is this the actual code that you are using? - because you have a
typo in your while statement - $ouput_row instead of $output_row - means
that when you try and echo $output_row it does
Rory Browne wrote:
>>If the index in question happens to be a unique index or a primary key
>>(really just a special case of index) - you could be breaking the logic
>>of the table (allowing duplicates where there should be none).
>
>
> Couldn't that only happen if you dropped a UNIQUE or PRIMAR
Rory Browne wrote:
deleting an index(a good index that
> is) would slow the db down in certain cases. Deleting a "bad index"
> would speed certain operations up.
If the index in question happens to be a unique index or a primary key
(really just a special case of index) - you could be breaking t
Chris W. Parker wrote:
>>
>> class Customer
>> {
>> var $id;
>> var $name;
>> function get_customer()
>> {
$this->name = $customer['name'];
>> }
>> Where I get tripped up is when I realize I'll need to at some point get
>> more than one customer at a
Roger Thomas wrote:
> I am trying to find a suitable opensource Knowledge Management System to be
> used in my organisation; at least with document management, project
> management group collaboration capabilities, like http://cortexpro.com/
>
> Any clues ?
>
Hi Roger
KnowledgeTree comes hig
Kall, Bruce A. wrote:
> This is perhaps a javascript question
>
> Is there a way to post a form to a url without having a user submit from
> the form?
>
> I have a php web page that is a detailed form with a lot of fields. If
> the user does some work on this form and let's it sit, their ses
Rory Browne wrote:
> Just bare in mind, that I've never used ffi, and it's still alpha
> code, and I'm not taking any blame it causes your dog to
> explode.
That's ok, I am sure there is no chance...rover, rover,what's the matter
boy? (Sound of dog exploding)
No
Richard Davey wrote:
> If the DLL has a COM interface then you can use PHP to talk to it, the
> process is actually quite straight forward (depending on what the DLL
> actually does of course).
>
> Best regards,
>
> Richard Davey
Hi Richard
Rory (the other one ;) ) also mentioned a COM interf
Richard Davey wrote:
>
> Sure.. mysql_query doesn't support more than one query in the sql
> statement.
>
At the risk of being thick, does the OP not mean something like this:
INSERT INTO blah VALUES (value1, value2), (value3, value4)
versus
INSERT INTO blah
VALUES (value1, value2)
ne
Hi list
I do not have much programming experience outside some PHP stuff so
please excuse a stupid question:
I have a DLL provided to me by a third-party with a small bit of
documentation regarding its structure and methods. The DLL caculates
event costs based on parameters passed to it. I would
Jackson Linux wrote:
Hi, all,
I have three tables; 'cv', the main table, 'jobcat', a definition table
and 'cvjobcats', an intersection table (for more detail see PS below).
I'd like to join this all together to be able to make a headline
consisting of the plain English description of the job ca
Jed R. Brubaker wrote:
Hi all -
I could use a lead on a problem. I just don't know where to start.
I have a PHP script that populates a database table. No big deal. It creates
mailing labels. However, a weird things keeps happening - every once in a
while, a query is run twice. It is the same que
_instance] =>
Admin Object
which is followed by the various attributes of the admin object
suggesting that the reference to the admin object is indeed within the
module instance.
I hope someone can help with this..
Oh, and before anybody asks I am still busy RTFM, STFW, STFA but with n
going to bugs.php.net, it seems that it has not been
logged as a bug.
So, the question would be - do I log it or am I wasting their time?
--
Rory McKinley
Nebula Solutions
+27 21 555 3227 - office
+27 21 551 0676 - fax
+27 82 857 2391 - mobile
www.nebula.co.za
--
PHP General
it down and sift through all the gen you guys
have given me, and decide which solution works best for me.
--
Rory McKinley
Nebula Solutions
+27 21 555 3227 - office
+27 21 551 0676 - fax
+27 82 857 2391 - mobile
www.nebula.co.za
--
Rory McKinley
Nebula Solutions
+27 21 555 3227 -
Jason Wong wrote:
On Tuesday 07 December 2004 20:50, Rory McKinley wrote:
As Page_3.php is still doing its business the session data file is locked and
when page_9.php tries to session_start() and finds it has no access to it
will suspend execution until the lock is relinquished by Page_3.php
an'] again, even though it already has
an unserialized instance of $_SESSION['policeman']? If it does
unserialize, does that mean that it creates a second instance of
$_SESSION['policeman'], thereby breaking the common link that I am
trying to provide?
I hope someon
d client_name2 or will the
$_POST array be emptied when submit is clicked in doc2.php - meaning
that the only field available is client_name2.
I have a sneaking suspicion that it is the latter but I am hoping that
someone will be able to tel me definitively.
Apologies for the looong email - I just wan
difference. Only once I had
overwritten the libmysql.dll in the Windows system folder with the
version that ships with PHP5 did I get everything to play nicely together.
Regards
--
Rory McKinley
Nebula Solutions
+27 21 555 3227 - office
+27 21 551 0676 - fax
+27 82 857 2391 - mobile
www.ne
string to terminate the
line.
Then you can just run a simple query on the table (limited to the
equivalent lines for 5 songs), and together with a loop, output the
results.
For big files, the DB will be faster and provides you with far greater
flexibility
HTH
--
Rory McKinley
Nebula
bers a, state_lookup b WHERE
a.country='US' AND b,state_abbreviation = a.state ORDER BY
b.state_full_name ASC
This shifts the data processing work to MySQL (which is what it is
designed for) - you can also use the state lookup table for user input
validation if needed.
--
Rory McKinl
= substr($raw_address, (strrpos($raw_address, '>') + 1));
--
Rory McKinley
Nebula Solutions
+27 21 555 3227 - office
+27 21 551 0676 - fax
+27 82 857 2391 - mobile
www.nebula.co.za
This e-mail is intended only for the person to whom it is addressed an
RTFM, RTFA, STFW and perhaps I am not phraseing my search terms
correctly, as I am having no luck.
Can anyone suggest a solution?
Rory McKinley
Nebula Solutions
+27 21 555 3227 - office
+27 21 551 0676 - fax
+27 82 857 2391 - mobile
www.nebula.co.za
This e-
[EMAIL PROTECTED] wrote:
|--|--|-
-|
|MON JUL 5 |TUE JUL 6 | etc...
|
-||--|--|---
---||-
take
place. Also, if you like you can give me info re: which city it should take place in,
people
that you would like as speakers etc.
Thanks in advance
Rory McKinley
Nebula Solutions
+27 82 857 2391
[EMAIL PROTECTED]
"There are 10 kinds of people in this world,
those who understand binary
method of submitting (GET or POST)you can try
and check one of these two $_POST['fname'] or $_GET['fname'] for the value of the
text field.
Rory McKinley
Nebula Solutions
+27 82 857 2391
[EMAIL PROTECTED]
"There are 10 kinds of people in this world,
those who under
On 15 Jan 2004 at 0:21, Freedomware wrote:
> Rory McKinley wrote:
> >
> > I hope this has clarified matters somewhat and not made things worse.
> >
>
> Absolutely; the only thing that has made matters worse so far is the
> book "Teach Yourself PHP, MySQL
On 14 Jan 2004 at 23:16, David Blomstrom wrote:
> --- Rory McKinley <[EMAIL PROTECTED]> wrote:
>
> > A possible option could be something like this
> >
> > {calling_template.php}
> >
> > > /*State name does not have to be set statically,
&g
Hi
A possible option could be something like this
{calling_template.php}
{header.inc}
That way you can put whatever you want as the statenameat the top of your pages, and
the header willalways reflect it. You could also do something similar with objects
e.g.
if you are that way in
(http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Hi Alessandro
Will mysql_insert_id() not help?
Rory McKinley
Nebula Solutions
+27 82 857 2391
[EMAIL PROTECTED]
"There are 10 kinds of people in this world,
those who understand binary and those who
ve yet to sort out the replication but that looms ahead of us.
If there is a way to do what you suggest, I would be glad to hear about it, and if I
could I
would happily assist to the best of my meagre abilities as it would definitely make my
life
simpler.
Regards
Rory McKinley
Nebula Soluti
35 (n)
3. Retrieve the character in array[n]
4. Add to password string.
5. Loop through another seven times
HTH
Rory McKinley
Nebula Solutions
+27 82 857 2391
[EMAIL PROTECTED]
"There are 10 kinds of people in this world,
those who understand binary and those who don't" (Un
lder(database) to 3.23.58 and then running
> it
smoothly ...
>
> Any body got any idea ???
>
> Please help me out..
>
> Thanks in advance
>
> Binay
>
Rory McKinley
Nebula Solutions
+27 82 857 2391
[EMAIL PROTECTED]
"There are 10 kinds of people in thi
ou and you can try it out for
yourself.
Regards
Rory McKinley
Nebula Solutions
+27 82 857 2391
[EMAIL PROTECTED]
"There are 10 kinds of people in this world,
those who understand binary and those who don't" (Unknown)
- Original Message -
From: "Al" <[EMAIL PR
nu
4. Call it ReceiveTimeout with a data value of SECONDS*1000
5. Restart your computer
For example, if you want the timeout to be 5 minutes, set the ReceiveTimeout
data value to 30 (300 * 1000)
Rory McKinley
Nebula Solutions
+27 82 857 2391
[EMAIL PROTECTED]
"There are 10 kinds of people in
one of the
wildcards?
Rory McKinley
Nebula Solutions
+27 82 857 2391
[EMAIL PROTECTED]
"There are 10 kinds of people in this world,
those who understand binary and those who don't" (Unknown)
- Original Message -
From: "Adrian Teasdale" <[EMAIL PROTECTED]&g
Hi
What you are looking for is a regular expression function, I would suggest
the following:
if(ereg($str1, $str2) == 1)
{
/*Found Bob in string*/
}
else
{
/*didn't find Bob
}
Rory McKinley
Nebula Solutions
+27 82 857 2391
[EMAIL PROTECTED]
"There are 10 kinds of people in this wo
40 matches
Mail list logo