How to get primary key of table?
How do I get the name of a primary key field from a MySQL database? id name 1 Foo1 2 Foo2 3 Foo3 There the field `id` is...
Latest news, tutorials, and updates from the PHP community
8483 articles available
How do I get the name of a primary key field from a MySQL database? id name 1 Foo1 2 Foo2 3 Foo3 There the field `id` is...
Separately, they both do what they are supposed to but when I try to use the result from the first statement in the seco...
I am building a site that is permissions based. The user can add or remove read permissions to the public for pages as w...
How can I take all the attributes of an element? Like in my example below, I can only get one at a time. I want to pull ...
I've been able to make this code work using CodeIgniter's `db->query` as follows: [Code Block] The 'appearances' table t...
I have developed a website www.tenxian.com. It has three language versions, English, Japanese and Chinese. How can I wri...
I have made this code for giving out +1 point, but it doesn't work properly. [Code Block] The `$points` variable is the ...
I'm following this tutorial about building a multilingual web sites using PHP gettext http://onlamp.com/pub/a/php/2002/0...
I have an unknown number of arrays, each containing an unknown number of words. I want to concatenate the values from ea...
In PHP, what's the most elegant way to get the complete list (array of strings) of all the Unicode whitespace characters...
What is the correct format to pass to the `date()` function in PHP if I want to insert the result into a MySQL `datetime...
Is there an existing way to parse the `HTTP_RANGE` header correctly in PHP? Thought I'd ask here before re-inventing the...
Showing 8305 to 8316 of 8483 articles