Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Get field length

Sun Oct 26, 2008 8:14 pm

Get database mysql field length ,
Code:
<?php
   mysql_connect
("server","user","password");
   
mysql_select_db("javadb");

   
$query "SELECT FirstName FROM Employee ";
   
$result mysql_query($query);
   
$row mysql_fetch_row($result);
   echo 
mysql_field_len($result0);

?>




Post a reply
  Related Posts  to : Get field length
 Pad array to the specified length with a value     -  
 get string length in asp     -  
 reverse ,length of strings as number of bytes     -  
 Please help me in the form field     -  
 Get Text Field value by php     -  
 List Database, Table, and Field in php     -  
 How To Store Date Dynamically as a field in mysql using JSP     -  
 MYSQL TEXT field types lengths     -  
 Pad a string to a certain length with another string     -  

Topic Tags

PHP Database