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
https://forums.phpfreaks.com/topic/77805-solved-id-or-id/
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
https://forums.phpfreaks.com/topic/77805-solved-id-or-id/#findComment-393798
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.