Jump to content

[SOLVED] ID or id !!!


npsari

Recommended Posts

In my mySQL table, i put created primary key as ID

 

is it a problem that it is capital letters, should i have made it id?  if yes, why?

 

Because now when someone tries to see a topic for example, he types

 

www.example.com/topics.php?ID=3

 

Will capital letters be disabled one day in browsers!!!, that would be a disaster, please help with some info

Link to comment
Share on other sites

Variables are case sensitive in PHP.

e.g

$id and $ID are different.

 

In MySQL you can keep any name you want but using related name will be good like

user_id if you have only 1 id in that table and

ID_ATTACH

ID_THUMB

ID_MSG

ID_MEMBER

if you have multiple ID

 

Will capital letters be disabled one day in browsers!!!, that would be a disaster, please help with some info

Any reason to disable capital letters ?

Link to comment
Share on other sites

ohh i see

 

hmm, no reason i guess

but i am just worried

 

cus iam sure you know how hard it is to change the id to ID

 

all my site is set up to ID now

 

And i was thinking, what if... capital letters where disabled for mySQL tables  :)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.