Hi,
i´d like to run a sql query to get the different field lengths.
during a while loop, the lengths have to be stored into different variables.
For any resaon this snippet won´t work, becuase the sql resource result seems to be not correct:
$result=mysql_query("SELECT * FROM table");
if ($result!=0)
{
while($db=mysql_fetch_array($result))
{
$data=mysql_fetch_lengths($db);
echo $data['fieldname'];
}
}
else
{
}
Has anyone tried to code something similar yet?