If I understand you correctly, I call what you're trying to do PHP
group by, and did a write up on it a few years back:
http://www.garfieldtech.com/blog/php-group-by-with-arrays
--Larry Garfield
On 7/18/13 8:43 AM, Karl-Arne Gjersøyen wrote:
Hello again.
In my program I have this:
mysql
On Fri, Jul 19, 2013 at 1:08 AM, php colos phpco...@gmail.com wrote:
Am I reading the wrong books for a beginner?
Do you just read the book or also do what it says to do? If you just read
but dont code along with it, you may not learn anything. After reading a
lot of book you'll feel you
On Thu, Jul 18, 2013 at 3:08 PM, php colos phpco...@gmail.com wrote:
Hello world!
I'm trying to learn PHP ( first programming language that I learn) and
I feel kinda lost. I've read PHP programming 3rd edition( O'reilly),
'getting good with PHP' by Andrew Burgees and some tutorials on the
On 07/18/2013 09:08 PM, php colos wrote:
Hello world!
I'm trying to learn PHP ( first programming language that I learn) and
I feel kinda lost. I've read PHP programming 3rd edition( O'reilly),
'getting good with PHP' by Andrew Burgees and some tutorials on the
internet but can't code
2013/7/18 Carsten Jensen to...@tomse.dk
On 07/18/2013 09:08 PM, php colos wrote:
Hello world!
I'm trying to learn PHP ( first programming language that I learn) and
I feel kinda lost. I've read PHP programming 3rd edition( O'reilly),
'getting good with PHP' by Andrew Burgees and some
On Thu, Jul 18, 2013 at 6:04 PM, iccsi inu...@gmail.com wrote:
I have a select control on the form and need to pass value user select to my
query parameter.
I just realized that user entry value is client side and query parameter is
server side.
Are there any way to read client parameter to
On Jul 18, 2013, at 6:07 PM, Daniel Brown danbr...@php.net wrote:
On Thu, Jul 18, 2013 at 6:04 PM, iccsi inu...@gmail.com wrote:
I have a select control on the form and need to pass value user select to my
query parameter.
I just realized that user entry value is client side and query
One additional comment.
Please change the javascript onclick to onchange -- that way the demo will work
for Chrome as well as other Browsers.
Cheers,
tedd
_
t...@sperling.com
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Could also use jquery instead
Best,
-Josh
___
http://byjakt.com
Currently mobile
On Jul 19, 2013, at 4:08, Tedd Sperling t...@sperling.com wrote:
One additional comment.
Please change the javascript onclick to onchange -- that way the demo will
work for Chrome
On Wed, Jul 17, 2013 at 11:22 AM, R B rbp...@gmail.com wrote:
Hello,
5 years ago, y developed a php system and was working fine. But 20 days
ago, when y try to access to some pages (not all the pages), in the log
appears this message and the page is not displayed:
==
On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling t...@sperling.com wrote:
Hi gang:
Considering:
On Jul 17, 2013, at 11:41 AM, Jim Giner jim.gi...@albanyhandball.com wrote:
Since you state that you haven't made any changes to the system (in
general), I'm going to guess that you modified an
On Jul 17, 2013, at 11:55 AM, Daniel Brown danbr...@php.net wrote:
On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling t...@sperling.com wrote:
This is what I do for error checking:
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('display_errors', 'On');
On 07/17/2013 09:28 AM, Tedd Sperling wrote:
On Jul 17, 2013, at 11:55 AM, Daniel Brown danbr...@php.net wrote:
On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling t...@sperling.com wrote:
This is what I do for error checking:
ini_set('error_reporting', E_ALL | E_STRICT);
Hi there,
Just a question, do you have Apache configured to use the PHP-FPM and
not the Apache module? That something that people can mess up on.
Thanks :)
On Wed, Jul 17, 2013 at 9:58 AM, Amiya Maji am...@purdue.edu wrote:
Hi all,
I am using PHP-FPM with Apache 2.4. I periodically change
/2013 9:48 PM (GMT-05:00)
To: Amiya Maji am...@purdue.edu
Cc: php-general@lists.php.net
Subject: Re: [PHP] How to read PHP-FPM config values using phpinfo
Hi there,
Just a question, do you have Apache configured to use the PHP-FPM and
not the Apache module? That something that people can mess
Hi Andrew
Thanks for this.
But I'm still getting errors. I think I need to explain a bit more.
Unfortunately there isn't a PHP API for this application I'm trying to
interact with, my goal really is to be able to expose the COM
functionality over a web-service such as SOAP so I can use it in a
Hello,
did you tried var_dump or print_r the $oBank object to see his structure ?
Also you can try:
$BANK_fld_BRANCH_NAME = 22;
$oBank-$BANK_fld_BRANCH_NAME = 'something';
Premek.
On Mon, 15 Jul 2013 10:21:48 +0200, Adam Nicholls inkysp...@gmail.com
wrote:
Hi Andrew
Thanks for
On Mon, Jul 15, 2013 at 4:21 AM, Adam Nicholls inkysp...@gmail.com wrote:
Hi Andrew
Thanks for this.
But I'm still getting errors. I think I need to explain a bit more.
Unfortunately there isn't a PHP API for this application I'm trying to
interact with, my goal really is to be able to
On Jul 15, 2013 11:29 PM, Israel Ekpo israele...@gmail.com wrote:
Hi Everyone,
[snip!]
No. Good luck with your endeavor, but please do not broadcast it to
this list.
Richard - I've tried that I get an error about it not being defined as
property of the object.
Andrew - do you mean try using the method Richard has shown?
Cheers
Adam.
On 13 July 2013 17:11, Richard Quadling rquadl...@gmail.com wrote:
On 13 July 2013 01:24, Andrew Ballard
On Sun, Jul 14, 2013 at 3:18 PM, Adam Nicholls inkysp...@gmail.com wrote:
Richard - I've tried that I get an error about it not being defined as
property of the object.
Andrew - do you mean try using the method Richard has shown?
Cheers
Adam.
On 13 July 2013 17:11, Richard Quadling
On 13 July 2013 01:24, Andrew Ballard aball...@gmail.com wrote:
On Jul 12, 2013 4:53 AM, Adam Nicholls inkysp...@gmail.com wrote:
Hi Guys/Gals,
I'm doing some integration work with a COM API and according to their
documentation to save data in the API, you have to assign to the
On Jul 12, 2013 4:53 AM, Adam Nicholls inkysp...@gmail.com wrote:
Hi Guys/Gals,
I'm doing some integration work with a COM API and according to their
documentation to save data in the API, you have to assign to the
method.
This is their example in Visual Basic:
Try with mb_strlen
see
http://www.php.net/manual/en/function.mb-strlen.php
2013/7/5 Jim Giner jim.gi...@albanyhandball.com
Trying to manage line breaks in some output I'm generating and using
strlen to measure the lengths of the strings I'm printing. Discovered
something strange (to me!)
Hello,
is an alternative syntax.
http://php.net/manual/en/control-structures.alternative-syntax.php
Premek.
On Wed, 10 Jul 2013 13:15:22 +0200, Jim Giner
jim.gi...@albanyhandball.com wrote:
Can someone tell me what this syntax is? I looked around but don't see
any mention of it.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2013/7/10 Jim Giner jim.gi...@albanyhandball.com
On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote:
Sorry, the first mail in this subject run out for me. This is an updated
one.
I am almost ready with my learning project in PHP/MySQL.
I can register new product in stock.
Add and increase
On 7/10/2013 9:07 AM, Karl-Arne Gjersøyen wrote:
2013/7/10 Jim Giner jim.gi...@albanyhandball.com
On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote:
Sorry, the first mail in this subject run out for me. This is an updated
one.
I am almost ready with my learning project in PHP/MySQL.
I can
Karl-Arne Gjersøyen wrote:
// start the table
$total = 0;
echo table border=1;
echo trthProduct/thth**Amount/th/tr;
// loop thru each item found
while ($results = $qrslts-fetch(PDO::FETCH_**ASSOC))
{
echo trtd.$results['product_**name']./tdtd.$results['**
product_amt']./td/tr;
$total
2013/7/10 Lester Caine les...@lsces.co.uk
Karl-Arne Gjersøyen wrote:
// start the table
$total = 0;
echo table border=1;
echo trthProduct/ththAmount/th/tr;
// loop thru each item found
while ($results = $qrslts-fetch(PDO::FETCH_ASSOC))
{
echo
On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg ajaygargn...@gmail.com wrote:
Hi all.
I have a requirement, wherein I need to allow vanilla uploads of files
to a HTTPD server.
Any client can upload any number of files (one at a time).
Also, there is just one directory, where the files get
Thanks Jim and Matijn for the quick replies.
I will try to have a workaround.
On Wed, Jul 10, 2013 at 11:09 PM, Matijn Woudt tijn...@gmail.com wrote:
On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg ajaygargn...@gmail.com wrote:
Hi all.
I have a requirement, wherein I need to allow vanilla
On 7/10/2013 2:15 PM, Ajay Garg wrote:
Thanks Jim and Matijn for the quick replies.
I will try to have a workaround.
On Wed, Jul 10, 2013 at 11:09 PM, Matijn Woudt tijn...@gmail.com wrote:
On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg ajaygargn...@gmail.com wrote:
Hi all.
I have a
Thanks Jim and Anthony.
Jim,
You are right, your solution is doable.
But one thing I am a little skeptical about, is what would be the
percentage of the people willing to suggest a new name immediately,
versus the percentage of people who would like to cancel the current
upload, and come back
On 7/10/2013 3:37 PM, Ajay Garg wrote:
Thanks Jim and Anthony.
Jim,
You are right, your solution is doable.
But one thing I am a little skeptical about, is what would be the
percentage of the people willing to suggest a new name immediately,
versus the percentage of people who would like to
Is there anything that would prevent you from somehow uniquely knowing who
the user is uploading the file. For example you mentioned client'. If you
know
who the client is you can append that to the filename or prepend it, for the
destination string (second parameter to the function call). That
Bastien Koert
On 2013-07-10, at 3:29 PM, Anthony Wlodarski ant92...@gmail.com wrote:
Is there anything that would prevent you from somehow uniquely knowing who
the user is uploading the file. For example you mentioned client'. If you
know
who the client is you can append that to the
Hi,
On 07/08/2013 05:10 AM, dealTek wrote:
Hi all,
I would like to make a timeout length to session variables, so that if a user
didn't use the browser page for let's say 5 minutes - the session variables
would expire and the user would need to login again.
Q: What's the best way to
You can simply update phpdocumentor
Am 07.07.2013 17:10 schrieb Lester Caine les...@lsces.co.uk:
Anybody have phpdocumentor running with PHP5.4?
I'm convinced that the errors my copy is throwing are due to e_strict, but
I've confirmed that I have the right ini file ( all the needed extensions
It's a clean install via PEAR a couple of hours ago!
Sent from my android device.
-Original Message-
From: Sebastian Krebs krebs@gmail.com
To: Lester Caine les...@lsces.co.uk
Cc: PHP General List php-general@lists.php.net
Sent: Sun, 07 Jul 2013 16:41
Subject: Re: [PHP] phpdocumentor
-general@lists.php.net
Sent: Sun, 07 Jul 2013 16:41
Subject: Re: [PHP] phpdocumentor with PHP5.4
You can simply update phpdocumentor
Am 07.07.2013 17 0707201317:10 schrieb Lester Caine
les...@lsces.co.uk:
Anybody have phpdocumentor running with PHP5.4?
I'm convinced that the errors my copy
Sebastian Krebs wrote:
I meant: PhpDocumentor 2
Problem solved ...
Notes on https://github.com/phpDocumentor/phpDocumentor2 need a little update to
correct the installation notes to use the beta builds rather than alpha ones.
--
Lester Caine - G8HFL
-
Contact -
You can submit a pull request for that
2013/7/7 Lester Caine les...@lsces.co.uk
Sebastian Krebs wrote:
I meant: PhpDocumentor 2
Problem solved ...
Notes on
https://github.com/**phpDocumentor/phpDocumentor2https://github.com/phpDocumentor/phpDocumentor2need
a little update to correct
On 8/07/2013, at 8:06, Tedd Sperling t...@sperling.com wrote:
Hi gang:
I have a client who has an account with GoDaddy (I know).
GoDaddy says they have PHP v 5.3 installed on the client's account, but
phpinfo() says different, namely it reports 5.2.17.
After calling GoDaddy, they said
Simon:
Confirmed. Those two lines cause the problem.
However, commenting out those lines causes other problems.
Are there similar statements to these:
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php5-cgi .php .htm .html
That will allow for their function (whatever
Jim Giner wrote:
And the answer is - yes, there is a LF char at the end of my data in my whole
table.
Now the question is - how the heck did I put that in there? Certainly not
intentionally. The data is captured from a d/e screen I wrote and it simply
grabs the post value and inserts a new
On 7/6/2013 2:59 AM, Lester Caine wrote:
Jim Giner wrote:
And the answer is - yes, there is a LF char at the end of my data in
my whole
table.
Now the question is - how the heck did I put that in there? Certainly
not
intentionally. The data is captured from a d/e screen I wrote and it
simply
Jim Giner wrote:
It's probably worth checking the sting length back through your code
just to confirm what added it?
The best I can figure is that I did a preload of many of the names from a csv
file. Apparently when I do that it stores the LF at the end of the csv line.
Have to remember that
Could the comma after the last element in your array be causing the problem?
Date: Sat, 6 Jul 2013 14:42:07 -0400
From: bluethu...@gmail.com
To: php-general@lists.php.net
Subject: [PHP] mongo usage
Hey all,
I'm trying to pick up some basic use of MongoDB using PHP.
I seem to have
You commented out the setting of yhe addresses variable
On Jul 6, 2013 1:42 PM, Tim Dunphy bluethu...@gmail.com wrote:
Hey all,
I'm trying to pick up some basic use of MongoDB using PHP.
I seem to have hit an early obstacle that I'd like your opinion on. I try
to pass an array to the
| Could the comma after the last element in your array be causing the
problem?
I tried removing it, but there was no change. Thanks for the suggestion!
On Sat, Jul 6, 2013 at 2:55 PM, Thomas Punt unassailable...@hotmail.comwrote:
Could the comma after the last element in your array be causing
| You commented out the setting of yhe addresses variable
Those were both equivalent ways of stating the same thing. I tried
substituting the other statement but there was no change:
$db = $connection-jfdb;
//$collection = $db-addresses;
$adresses = $connection-jfdb-adresses;
On 6 July 2013 19:50, Brian Smither bhsmit...@gmail.com wrote:
It looks like you are running the thread-safe version with
FastCGI, which I understand to be counter to the recommendations.
Thank you for the comment.
I switched to PHP5.4.17-NTS-VC9, but the application still crashes. And
On 6 July 2013 21:45, Brian Smither bhsmit...@gmail.com wrote:
Have you got all your extensions updated?
I would think so. Just to state the required disclaimers:
phpinfo.php with ? phpinfo() ? works.
Liberally peppering a tracer routine throughout the application shows it
is getting
On Sat, Jul 6, 2013 at 9:16 PM, Tim Dunphy bluethu...@gmail.com wrote:
| You commented out the setting of yhe addresses variable
Those were both equivalent ways of stating the same thing. I tried
substituting the other statement but there was no change:
$db = $connection-jfdb;
| You seem to spell the variable differently (1 'd' vs. 2 'd's)?
Thanks! Fixed the type-o. Still no change.
$connection = new Mongo();
$db = $connection-jfdb;
//$collection = $db-addresses;
$adresses = $connection-jfdb-addresses;
Any other suggestions? Appreciated.
Tim
On
Thanks. Sorry to bug you guys with this. That did it. sigh
On Sat, Jul 6, 2013 at 6:49 PM, Tim Streater t...@clothears.org.uk wrote:
On 06 Jul 2013 at 23:27, Tim Dunphy bluethu...@gmail.com wrote:
| You seem to spell the variable differently (1 'd' vs. 2 'd's)?
Thanks! Fixed the type-o.
Tamara Temple wrote in message
news:557a0092-2b7d-49f4-ae3d-593968dd3...@gmail.com...
On Jul 4, 2013, at 8:02 AM, Jim Giner jim.gi...@albanyhandball.com wrote:
On 7/4/2013 6:42 AM, Richard Quadling wrote:
Hi.
I've just had a conversation regarding DB, foreign keys and their
benefits.
I
Tony Marston wrote:
I was designing and building database applications before relational databases
became popular, and in those old hierarchical and network databases there were
no such things as foreign key constraints. Database integrity had to be handled
in the code, which is what we did.
Lester Caine wrote in message news:51d6987c.9050...@lsces.co.uk...
Tony Marston wrote:
I was designing and building database applications before relational
databases
became popular, and in those old hierarchical and network databases there
were
no such things as foreign key constraints.
Tony Marston wrote:
Certainly in some instances then managing everything in code makes sense.
Cross database working for instance. So everything works the same for each
engine. But the main advantage of adding constraints in the database is that
it protects the foreign entries from being deleted
On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote:
Hello. I have a form in HTML/PHP with for loops that generate a selected
list like this:
for($i = 1; $i 25;$i++ ){
option value=?php echo $i; ??php echo $i; ?/option
}
The lists look like this:
form
On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen karlar...@gmail.com wrote:
The lists look like this:
form action=index.php
view-source:http://localhost/%7Ekarl/kasen/io/kp/index.php
method=postselect name=valgt_dynamit_polse_1-25kgoption
value=1-25 selected=selected1-25/optionoption
2013/7/5 Stuart Dallas stu...@3ft9.com
On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote:
Hello. I have a form in HTML/PHP with for loops that generate a selected
list like this:
for($i = 1; $i 25;$i++ ){
option value=?php echo $i; ??php echo $i; ?/option
}
2013/7/5 Tedd Sperling tedd.sperl...@gmail.com
On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen karlar...@gmail.com
wrote:
The lists look like this:
form action=index.php
view-source:http://localhost/%7Ekarl/kasen/io/kp/index.php
method=postselect name=valgt_dynamit_polse_1-25kgoption
On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen karlar...@gmail.com wrote:
2013/7/5 Stuart Dallas stu...@3ft9.com
On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen karlar...@gmail.com wrote:
Hello. I have a form in HTML/PHP with for loops that generate a selected
list like this:
for($i = 1; $i
2013/7/5 Stuart Dallas stu...@3ft9.com
On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen karlar...@gmail.com wrote:
2013/7/5 Stuart Dallas stu...@3ft9.com
On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen karlar...@gmail.com
wrote:
Hello. I have a form in HTML/PHP with for loops that generate
On 5 Jul 2013, at 15:24, Karl-Arne Gjersøyen karlar...@gmail.com wrote:
2013/7/5 Stuart Dallas stu...@3ft9.com
On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen karlar...@gmail.com wrote:
2013/7/5 Stuart Dallas stu...@3ft9.com
On 5 Jul 2013, at 14:56, Karl-Arne Gjersøyen karlar...@gmail.com
Can't you just use a number field, which is a hell of a lot easier (especially
on an iPad) to use than a bunch of select lists.
Karl-Arne Gjersøyen karlar...@gmail.com wrote:
2013/7/5 Stuart Dallas stu...@3ft9.com
On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen karlar...@gmail.com
wrote:
Jim Giner wrote:
Trying to manage line breaks in some output I'm generating and using
strlen to measure the lengths of the strings I'm printing. Discovered
something strange (to me!) in that strlen is returning +1 more than it
should.
The strings are from a query of my database - simple name
On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
Mike Hall comes back as 10, not 9
F.B. comes back as 5, not 4.
Doesn't work for me.
php var_dump(Mike Hall, strlen(Mike Hall));
string(9) Mike Hall
int(9)
Try trimming it first and then apply strlen.
--
On 7/5/2013 1:32 PM, shiplu wrote:
On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
Mike Hall comes back as 10, not 9
F.B. comes back as 5, not 4.
Doesn't work for me.
php var_dump(Mike Hall, strlen(Mike Hall));
string(9) Mike Hall
int(9)
Try trimming it
On Fri, Jul 5, 2013 at 8:33 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
On 7/5/2013 1:32 PM, shiplu wrote:
On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner jim.gi...@albanyhandball.com
**wrote:
Mike Hall comes back as 10, not 9
F.B. comes back as 5, not 4.
Doesn't work for me.
php
On Fri, Jul 5, 2013 at 8:39 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
I checked them in the db manually. Clicked on the name, selected it, no
extra space highlighted. Cursored through the length of the value - no
extra movements.
That does still not guarantee there are no extra
On 7/5/2013 2:42 PM, Matijn Woudt wrote:
On Fri, Jul 5, 2013 at 8:39 PM, Jim Giner jim.gi...@albanyhandball.comwrote:
I checked them in the db manually. Clicked on the name, selected it, no
extra space highlighted. Cursored through the length of the value - no
extra movements.
That does
On 13-07-05 02:50 PM, Jim Giner wrote:
Now the question is - how the heck did I put that in there? Certainly
not intentionally. The data is captured from a d/e screen I wrote and
it simply grabs the post value and inserts a new record with that
value along with some other values. And I
On 7/5/2013 3:02 PM, Stephen wrote:
On 13-07-05 02:50 PM, Jim Giner wrote:
Now the question is - how the heck did I put that in there? Certainly
not intentionally. The data is captured from a d/e screen I wrote and
it simply grabs the post value and inserts a new record with that
value along
MOTS: never take any input on faith.
Jim Giner wrote:
On 7/5/2013 3:02 PM, Stephen wrote:
On 13-07-05 02:50 PM, Jim Giner wrote:
Now the question is - how the heck did I put that in there? Certainly
not intentionally. The data is captured from a d/e screen I wrote and
it simply grabs the
Check the permissions on the files/directories involved. I get this
on Linux when the files/directories are too open.
Ken
At 05:38 PM 7/5/2013, Brian Smither wrote:
I have an application running under PHP-5.4.17-TS-VC9 (and .14 as of
yesterday) with Aprelium's Abyss X1 v2.8 web server in
Jim Giner jim.gi...@albanyhandball.com wrote:
On 7/5/2013 3:02 PM, Stephen wrote:
On 13-07-05 02:50 PM, Jim Giner wrote:
Now the question is - how the heck did I put that in there?
Certainly
not intentionally. The data is captured from a d/e screen I wrote
and
it simply grabs the post
Richard Quadling wrote:
Is there a difference in those in 'startups' and web only situations, or
those doing more traditional development (split that as you like - I'm just
trying to get an understanding and not go off on one!).
Depends if you consider MySQL is any use as a real database :)
I think it depends on the application.
A lot of small web apps simply don't need any kind of normalization, and it
really does make sense to put everything in one table, or a couple of
unlinked tables. Therefore, on those apps, there's no need for foreign
keys. For instance: I used one
On Jul 4, 2013, at 8:02 AM, Jim Giner jim.gi...@albanyhandball.com wrote:
On 7/4/2013 6:42 AM, Richard Quadling wrote:
Hi.
I've just had a conversation regarding DB, foreign keys and their benefits.
I was told I've never worked on a web application where foreign keys were
used in the
On Thu, Jul 4, 2013 at 4:20 PM, Tamara Temple tamouse.li...@gmail.comwrote:
On Jul 4, 2013, at 8:02 AM, Jim Giner jim.gi...@albanyhandball.com
wrote:
On 7/4/2013 6:42 AM, Richard Quadling wrote:
Hi.
I've just had a conversation regarding DB, foreign keys and their
benefits.
I was
On Jun 27, 2013, at 8:47 PM, Paul M Foster pa...@quillandmouse.com wrote:
On Thu, Jun 27, 2013 at 11:47:28PM +0200, adriano wrote:
holes in sequence of auto increment happen using transaction for
insert new record but you don't commit transaction itself
it seems that the autoincrement is
Fernando A soporteallpurp...@gmail.com wrote:
I am working with php and codeigniter, but I have not yet experienced.
I need create a variable that is available throughout system.
This variable contains the number of company and can change.
as I can handle this?
Hi, Fernando, welcome. I'm
Tedd Sperling tedd.sperl...@gmail.com wrote:
On Jun 27, 2013, at 8:47 PM, Paul M Foster pa...@quillandmouse.com wrote:
On Thu, Jun 27, 2013 at 11:47:28PM +0200, adriano wrote:
holes in sequence of auto increment happen using transaction for
insert new record but you don't commit
holes in sequence of auto increment happen using transaction for insert
new record but you don't commit transaction itself
it seems that the autoincrement is incremented anyway
at least this is my case.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Thu, Jun 27, 2013 at 11:47:28PM +0200, adriano wrote:
holes in sequence of auto increment happen using transaction for
insert new record but you don't commit transaction itself
it seems that the autoincrement is incremented anyway
at least this is my case.
I think what Tedd was
You can try this: *ALTER TABLE tbl AUTO_INCREMENT = 100;*
*
*
*Source: *http://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html
(never did it myself, though)
On Wed, Jun 26, 2013 at 2:07 PM, Tedd Sperling t...@sperling.com wrote:
Hi gang:
I have a client where their next
On Wednesday, 26 June 2013 at 18:07, Tedd Sperling wrote:
Hi gang:
I have a client where their next auto-increment number just jumped from 2300
to 10 for reasons not understood. They want it set back.
Options such as dropping the primary key and rebuilding the index is NOT
On Jun 26, 2013, at 1:13 PM, Stuart Dallas stu...@3ft9.com wrote:
On Wednesday, 26 June 2013 at 18:07, Tedd Sperling wrote:
Hi gang:
I have a client where their next auto-increment number just jumped from 2300
to 10 for reasons not understood. They want it set back.
Options such
On 6/26/2013 1:30 PM, Tedd Sperling wrote:
On Jun 26, 2013, at 1:13 PM, Stuart Dallas stu...@3ft9.com wrote:
On Wednesday, 26 June 2013 at 18:07, Tedd Sperling wrote:
Hi gang:
I have a client where their next auto-increment number just jumped from 2300 to
10 for reasons not
On Jun 26, 2013, at 1:32 PM, Jim Giner jim.gi...@albanyhandball.com wrote:
But more importantly - don't you need to figure out why it happened?? As
well as correcting any inserts with the bogus id?
Yes, I would like to know -- I'm open for suggestions.
Cheers,
tedd
_
Gang:
Let me add, currently I am inserting an email address into a database.
To find which record was created, I ask for the record number (ID) back.
I am asking simply because mysql_insert_id() is deprecated.
Cheers,
tedd
_
tedd.sperl...@gmail.com
http://sperling.com
On Wednesday, 26 June 2013 at 18:39, Tedd Sperling wrote:
Let me add, currently I am inserting an email address into a database.
To find which record was created, I ask for the record number (ID) back.
I am asking simply because mysql_insert_id() is deprecated.
How are you doing the
On Jun 26, 2013, at 1:56 PM, Stuart Dallas stu...@3ft9.com wrote:
On Wednesday, 26 June 2013 at 18:39, Tedd Sperling wrote:
Let me add, currently I am inserting an email address into a database.
To find which record was created, I ask for the record number (ID) back.
I am asking simply
On Wednesday, 26 June 2013 at 19:01, Tedd Sperling wrote:
On Jun 26, 2013, at 1:56 PM, Stuart Dallas stu...@3ft9.com
(mailto:stu...@3ft9.com) wrote:
On Wednesday, 26 June 2013 at 18:39, Tedd Sperling wrote:
Let me add, currently I am inserting an email address into a database.
To
AFAIK mysql_[...] is deprecated in favor of mysqli_[...] correspondent
functions, there's nothing to do specifically with mysql[i]_insert_id.
On Wed, Jun 26, 2013 at 3:01 PM, Tedd Sperling tedd.sperl...@gmail.comwrote:
On Jun 26, 2013, at 1:56 PM, Stuart Dallas stu...@3ft9.com wrote:
On
Learning something new everyday is one of the joys of this profession. If
you learn two new things, consider yourself lucky :)
On Wed, Jun 26, 2013 at 11:03 AM, Samuel Lopes Grigolato
samuel.grigol...@gmail.com wrote:
AFAIK mysql_[...] is deprecated in favor of mysqli_[...] correspondent
501 - 600 of 180972 matches
Mail list logo