Jump to content


Photo

Describe tables through PHP


  • Please log in to reply
2 replies to this topic

#1 essjay_d12

essjay_d12
  • Members
  • PipPipPip
  • Advanced Member
  • 121 posts

Posted 13 March 2006 - 03:15 PM

Is it possibly to describe tables through php?

describe table; just doesnt seem to return anything.

Thanks

D

#2 shocker-z

shocker-z
  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 13 March 2006 - 03:36 PM

[a href=\"http://dev.mysql.com/doc/refman/5.0/en/show-columns.html\" target=\"_blank\"]http://dev.mysql.com/doc/refman/5.0/en/show-columns.html[/a]

that is basicaly the command that DESCRIBE runs so if you look at that it may help but im not sure to how you would echo this back..
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 essjay_d12

essjay_d12
  • Members
  • PipPipPip
  • Advanced Member
  • 121 posts

Posted 13 March 2006 - 03:39 PM

Yeah I have done that - in MySQL its fine,

I just cannot seem to get anything appearing when I try to echo it in PHP.

Thanks though.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users