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
> -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:
>
> -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 :)).
>
> And of course like many times before I
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
--
---
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
- 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
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
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
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
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
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
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
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
- 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
> 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
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
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
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
> -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
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
Try echo ''.row["name"].'';
if $row["id"] still isn't shown, then you most likely aren't getting the
right data from the database to the correct variable...
-Original Message-
From: Omland Christopher m [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 7:53 PM
To: [EMAIL PROTECTE
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.
>
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
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)
> $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
If you are using mysql as your database, you can use mysql_insert_id.
See http://www.php.net/manual/en/function.mysql-insert-id.php for more info
:)
HTH
Sam Masiello
Systems Analyst
Chek.Com
(716) 853-1362 x289
[EMAIL PROTECTED]
-Original Message-
From: Robert Morrissey [mailto:[EMA
26 matches
Mail list logo