|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Does id of table have to be named id?
I am trying to make an ecard and the primary key in mysql table is sid, not id, and I am calling for the $sid in my php code, but it's not working, for one reason or another. I've posted all my code on the php/c/c++ forum.
Please help. I'm using phpmysqladmin on a web server somewhere on the East coast.
__________________
bow wow! |
|
#2
|
|||
|
|||
|
can you post the problem script as well as the database scructure that your trying to access, i belive that its a simple problem with you database, but i could be wrong.
Thanks |
|
#3
|
|||
|
|||
|
Thanks for the help, you have already been a huge help to me Ben. I read your tutorial on PHP/ Mysql basics and learned a lot. Thanks for taking the time to teach.
I posted the code on the php/c/c++ page and the data base was created from a text file and uploaded to a phpmysql app. - I think it's : sid vchar 16 primary unique sname vchar 25, semail vchar 255, rname vchar 25, remail vchar 255, message vchar 255, image vchar 255. or something close to this, it's all at school. I know the sid is the primary column, and it is receiving the variable string ( I think its a string ), I'm just not able to pull it back on the view page. I'm so close, although honestly, I still don't know how the whole thing works... |
|
#4
|
|||
|
|||
|
as long as the field your using for id is auto incremented you should be able to call it anything you like
|
|
#5
|
|||
|
|||
|
no, the id doesnt have to be named id, there might be a typo in your code, you probably are querying it wrong.
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > Does id of table have to be named id? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|