Hi Everyone!
In a CMS I am creating, I have the fields working to submit the data to the MySQL database. I was just wondering if I can set the initial value of the field to what is currently being displayed. So far I have tried putting:
[php]
<?php mysql_connect("localhost", "", "") or die(mysql_error()); mysql_select_db("cms_home") or die(mysql_error()); $result = mysql_query("SELECT * FROM botcat_content ORDER BY id DESC LIMIT 1") or die(mysql_error()); $row = mysql_fetch_array( $result ); echo $row['content']; ?>[/php]
into the initial value field, but that didn’t work :’( . I know that code defiantly works, because it is the same one that displays the data on my homepage any help would be greatly appreaciated
Thanks in advance! ;D ;D ;D