Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. luxgud

    Cannot outputfirst colum of record ( primary key )

    I found the problem. When you want to dispaly the primary key (that's autoincremented)you need to explicitly state that in the insert command ie INSERT(id,name,age) values('', 'name','age') In the above I have id in the columns but not the values. This solved the problem. Thank you for...
  2. luxgud

    Cannot outputfirst colum of record ( primary key )

    Yes ! I can see the ID field when using phpMYAdmin - this is what is confusing me ??? It is autoincrementing perfectly. Why can I not see it when I output the data ??? Thanks
  3. luxgud

    Cannot outputfirst colum of record ( primary key )

    Hi This is the code I have used in the output file $result = mysql_query("SELECT * FROM person") or die(mysql_error());
  4. luxgud

    Cannot outputfirst colum of record ( primary key )

    Hi I am new to MySQL/PHP. I wanted to see if I could set up a database table in an existing database and output the data into a web page. Everything works OK except that I cannot see the ID column. This is the primary key (auto_increment) Here's the strange thing, I can see the ID...

Part and Inventory Search

Back
Top