Jump to content

page edit user interface


utinaeniduin

Recommended Posts

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

[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]...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.