utinaeniduin Posted November 26, 2006 Share Posted November 26, 2006 hello.i have the section on my site where each page (php) displays the content from a single cell on my DB as the body. i then wanted my admins to be able to edit the content in this table. rather than teaching them how to use MySQL i just thought i'd set up a page which stores and retrievs data. the code i wrote is as follows: Link to comment https://forums.phpfreaks.com/topic/28571-page-edit-user-interface/ Share on other sites More sharing options...
utinaeniduin Posted November 26, 2006 Author Share Posted November 26, 2006 [code]<?$DBHost="myhost";$DBUser="myuser";$DBPass="mypassword";$DBName="mydatabase";mysql_connect("$DBHost","$DBUser","$DBPass");mysql_select_db("$DBName");$query = "SELECT * FROM pageSHOW WHERE num='123'";$result = mysql_query($query);while ($row = mysql_fetch_row($result)) { $num = $row[0]; $Home = $row[1]; $Audition = $row[2]; $CallBacks = $row[3]; $Rehearsal = $row[4]; $MIDI = $row[5]; $MP3 = $row[6]; $Support = $row[7];}?> [/code]... Link to comment https://forums.phpfreaks.com/topic/28571-page-edit-user-interface/#findComment-130729 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.