Re: [PHP] ID problem

2007-02-28 Thread Richard Lynch
On Wed, February 28, 2007 3:24 am, Delta Storm wrote: > I'm building an CMS system (for practice and experience :)). > > And of course like many times before I have encountered a problem. > > The problem is: > > I have a index.php that takes the news from the database and publishes > them. And by t

RE: [PHP] ID problem

2007-02-28 Thread Tim
> -Message d'origine- > De : tedd [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 28 février 2007 15:54 > À : Delta Storm; php-general@lists.php.net > Objet : Re: [PHP] ID problem > > At 10:24 AM +0100 2/28/07, Delta Storm wrote: > >The problem is: >

RE: [PHP] ID problem

2007-02-28 Thread Tim
> -Message d'origine- > De : Delta Storm [mailto:[EMAIL PROTECTED] > Envoyé : mercredi 28 février 2007 10:24 > À : php-general@lists.php.net > Objet : [PHP] ID problem > > Hi, > > I'm building an CMS system (for practice and experience :)). >

Re: [PHP] ID problem

2007-02-28 Thread tedd
At 10:24 AM +0100 2/28/07, Delta Storm wrote: The problem is: I have a index.php that takes the news from the database and publishes them. And by the end of every news on index.php I have a link ('Show full news') Yep, that may be the problem -- try: Show full news Cheers, tedd -- ---

Re: [PHP] ID problem

2007-02-28 Thread Németh Zoltán
2007. 02. 28, szerda keltezéssel 10.24-kor Delta Storm ezt írta: > Hi, > > I'm building an CMS system (for practice and experience :)). > > And of course like many times before I have encountered a problem. > > The problem is: > > I have a index.php that takes the news from the database and pub

[PHP] ID problem

2007-02-28 Thread Delta Storm
Hi, I'm building an CMS system (for practice and experience :)). And of course like many times before I have encountered a problem. The problem is: I have a index.php that takes the news from the database and publishes them. And by the end of every news on index.php I have a link ('href="show

Re: [PHP] ID-tags from picture?

2006-04-04 Thread Gustav Wiberg
- Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Tuesday, April 04, 2006 4:14 AM Subject: Re: [PHP] ID-tags from picture? Gustav Wiberg wrote: Hi guys! If I've got

Re: [PHP] ID-tags from picture?

2006-04-03 Thread Chris
Gustav Wiberg wrote: Hi guys! If I've got this right, there will be some kind of tag that is saved in a picture (hidden). Is it possible to retrieve this information from PHP and what it is called? Any ideas / suggestions would be approciated! Depends on what information you are after. Some

[PHP] ID-tags from picture?

2006-04-03 Thread Gustav Wiberg
Hi guys! If I've got this right, there will be some kind of tag that is saved in a picture (hidden). Is it possible to retrieve this information from PHP and what it is called? Any ideas / suggestions would be approciated! /Gustav Wiberg -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] ID vs NAME in different browsers

2006-01-28 Thread Niels
On Saturday 28 January 2006 18:20, David Hall wrote: > Uh, sorry to disappoint, but that's a description of the form element, > not of the input element or select input. Right. > In fact, if you go to > http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.4.2 > , you will see

Re: [PHP] ID vs NAME in different browsers

2006-01-28 Thread David Hall
Niels wrote: name = cdata [CI] This attribute names the element so that it may be referred to from style sheets or scripts. Note. This attribute has been included for backwards compatibility. Applications should use the id attribute to identify elements. Uh, sorry to disappoint, but that's

Re: [PHP] ID vs NAME in different browsers

2006-01-28 Thread Niels
On Saturday 28 January 2006 16:47, Jason Petersen wrote: > HTML Forms should always use the NAME attribute to pass values, never ID. > You can use print_r($_REQUEST); at the top of your script to debug. > Thank you for your answer. W3C says: [http://www.w3.org/TR/html4/interact/forms.html] nam

Re: [PHP] ID vs NAME in different browsers

2006-01-28 Thread Jason Petersen
On 1/28/06, Niels <[EMAIL PROTECTED]> wrote: when making an input field for submission from a form, I need to put a > name='something' in it. For CSS I often use an id='something'. Some > browsers apparently submit the field properly if name is missing and id is > present. Others might not. Can an

[PHP] ID vs NAME in different browsers

2006-01-28 Thread Niels
Hi, when making an input field for submission from a form, I need to put a name='something' in it. For CSS I often use an id='something'. Some browsers apparently submit the field properly if name is missing and id is present. Others might not. Can anyone tell me about what browsers do what? Than

Re: [PHP] ID--how to keep them in order

2005-12-19 Thread Curt Zirzow
On Tue, Dec 20, 2005 at 02:12:43PM +0800, Anasta wrote: > I have a script which outputs a movie title, rating and the ID number > (below). > The ID number is also used in the admin section as a select for update and > delete. > > The problem i have is that as i delete certain entries then the nu

[PHP] ID--how to keep them in order

2005-12-19 Thread Anasta
I have a script which outputs a movie title, rating and the ID number (below). The ID number is also used in the admin section as a select for update and delete. The problem i have is that as i delete certain entries then the number sequence on the display page has missing numbers--is there a w

Re: [PHP] ID from lines?

2005-10-09 Thread Gustav Wiberg
D]> Sent: Sunday, October 09, 2005 4:37 PM Subject: Re: [PHP] ID from lines? This one time, at band camp, "Gustav Wiberg" <[EMAIL PROTECTED]> wrote: Line #3 : NH01<><>LiteOn DVD±RW 16<>725<>http://www.varupiraten.se/web/spec_product.php

Re: [PHP] ID from lines?

2005-10-09 Thread Gustav Wiberg
- Original Message - From: "Al Hafoudh" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Sunday, October 09, 2005 4:38 PM Subject: Re: [PHP] ID from lines? /ID=([0-9]*)\ Thanx! /G @varupiraten.se Gustav Wiberg wrote: Hi there! H

[PHP] ID from lines?

2005-10-09 Thread Gustav Wiberg
Hi there! How do I get ID number from these lines? Do I have to use regular expressions? Line #3 : NH01<><>LiteOn DVD±RW 16<>725<>http://www.varupiraten.se/web/spec_product.php?ID=1711<>PC-CD-DVD-LDW-1653S-09C<>1<> Line #4 : NH01<><>LITEON 8x<>725<>http://www.varupiraten.se/web/spec_product.

Re: [PHP] ID based on position?

2005-09-01 Thread Mark Rees
> Auugh!! Why would you want to do this? You're flying in the face of > relational database theory and practice. Position of a record in the table > is, or should be irrelevant. Agreed - "position" is a notional concept. The data is stored physically in some sort of order, but what order that is

Re: [PHP] ID based on position?

2005-08-31 Thread Miles Thompson
Auugh!! Why would you want to do this? You're flying in the face of relational database theory and practice. Position of a record in the table is, or should be irrelevant. What if you have twenty thousand records, or two hundred, and the 45th record in the table is deleted? Fetching an ID f

Re: [PHP] ID based on position?

2005-08-31 Thread Jason Davidson
You could LIMIT your query to the record number you are looking for, and grab the last element in the array from your result set. But this is a serious hack, and I am really wondering why you need to do what your asking, it seems (without knowing more) that you are tackling the problem in the w

Re: [PHP] ID based on position?

2005-08-31 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: Hi there! Is there any function in PHP that gives an ID from a MySQL-db based on which position the record has in the table? Let's say, there's a table like this: 1. Record1 ID 33 2. Record2 ID 76 3. Record3 ID 100 If I know position 2, I want to get ID 76. Is the only

[PHP] ID based on position?

2005-08-31 Thread Gustav Wiberg
Hi there! Is there any function in PHP that gives an ID from a MySQL-db based on which position the record has in the table? Let's say, there's a table like this: 1. Record1 ID 33 2. Record2 ID 76 3. Record3 ID 100 If I know position 2, I want to get ID 76. Is the only way to loop through

[PHP] ID tymfix... thanks

2004-02-17 Thread thies
Yours ID rtvfrh -- Thank <> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] id & name when identifying html elements

2003-05-29 Thread Ford, Mike [LSS]
> -Original Message- > From: Roland Tarver [mailto:[EMAIL PROTECTED] > Sent: 28 May 2003 10:07 > > I've got a question about about naming html components (text fields, > select boxes etc) when submitting a form to a php page. > First I tried identifying an element using the "id" attribute

Re: [PHP] id & name when identifying html elements

2003-05-28 Thread Jason k Larson
PHP uses only the 'name' attribute of an element to assign the variable to. You can use 'id' and 'name' together, but the two are different, for instance no two form elements should have the same 'id', but depending on multiform pages with similar inputs, an identical 'name' attribute could be u

[PHP] id & name when identifying html elements

2003-05-28 Thread Roland Tarver
Hi I've got a question about about naming html components (text fields, select boxes etc) when submitting a form to a php page. First I tried identifying an element using the "id" attribute and found that it was not being posted to the php page. When I use the "name" attribute it did get posted

RE: [PHP] ID NUMBER HELP

2002-03-26 Thread Demitrious S. Kelly
Sent: Tuesday, March 26, 2002 7:53 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] ID NUMBER HELP Can someone help me with this. I'm trying to get ?id= set to the id number of the name in the database. I can get ?id="THE NAME" but I can't get it to pick up the id numbe

[PHP] ID NUMBER HELP

2002-03-26 Thread Omland Christopher m
Can someone help me with this. I'm trying to get ?id= set to the id number of the name in the database. I can get ?id="THE NAME" but I can't get it to pick up the id number. here is the code i"m trying: while($row = mysql_fetch_array($result)) { printf("%s\n", $PHP_SELF,

Re: [PHP] ID variable alsways set

2002-03-04 Thread Erik Price
On Monday, March 4, 2002, at 02:25 AM, Rasmus Lerdorf wrote: > Do a phpinfo() and check to see if you perhaps have a cookie with the > name "id" set with the value "1". If your look at variables_order in > your > php.ini file, you will see that cookie data will override get-method > data. >

Re: [PHP] ID variable alsways set

2002-03-03 Thread Rasmus Lerdorf
Do a phpinfo() and check to see if you perhaps have a cookie with the name "id" set with the value "1". If your look at variables_order in your php.ini file, you will see that cookie data will override get-method data. To force a read from the GET data, use $_GET['id'] instead of $id. -Rasmus

[PHP] ID variable alsways set

2002-03-03 Thread Chris N
Ive just found a rather weird bug that im experiencing. Im running PHP 4.1.2 with Apache 1.3.23 on Linux Redhat 7. When ever I try and use variable $id it always has a value of 1 no matter what. It only does it if its in a get, think a post too. I can hard code it in a script and itll have a corre

Re: [PHP] id

2001-02-19 Thread Thomas Deliduka
On 2/20/01 1:08 AM this was written: > when poeple sign up to my site, how can i make a code that finds if > there username is already in the database? Um... Search for it. $findit = mysql_query("Select username from usertable where username = '$inputted_username'"); If (mysql_num_rows($findit)

[PHP] id

2001-02-19 Thread Brandon Feldhahn
when poeple sign up to my site, how can i make a code that finds if there username is already in the database? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mai

Re: [PHP] ID value

2001-01-31 Thread Piotr Duszynski
> $sql = "INSERT INTO songs (id,name,url) VALUES > ('','Foobar','test.php?id=)"; > > The id is autoincrement so obviously left blank, yet I'd like to put it into > the url where is. > > How do I go about dragging back the id even though it is being created (I > suppose) while the statement is

RE: [PHP] ID value

2001-01-23 Thread Sam Masiello
:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 10:17 AM To: [EMAIL PROTECTED] Subject:[PHP] ID value Hi, I wonder whether anyone can shed some light onto this for me... Say I have this example insert: $sql = "INSERT INTO songs (id,name,url) VALUES ('','

[PHP] ID value

2001-01-23 Thread Robert Morrissey
Hi, I wonder whether anyone can shed some light onto this for me... Say I have this example insert: $sql = "INSERT INTO songs (id,name,url) VALUES ('','Foobar','test.php?id=)"; The id is autoincrement so obviously left blank, yet I'd like to put it into the url where is. How do I go about d