No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
i need to Build a form textarea where someone enters a list of books (comma seperated). Use explode to populate an array of the book titles. Loop through and show the book titles on new lines. any help will be gladly appriacated ! |
|
lets say i have a cms and i'm giving it to the client, in the table i have various rows (each row is a page) now in each and every row has a field under the name of protected, the protected field can either have yes or no in it. … |
|
hi i was wondering how should i tackle this problem as i got stuck on the delete feature, getting data is fine deteling is the problem since now i made the following: [CODE]<?php include 'cms/core/config.php'; include 'cms/core/opendb.php'; // get data $query = "SELECT id, name FROM ody_admin.templates ORDER BY id"; … |
|
to connect/close connection my dbs i use the below include files [B]config.php[/B] [CODE]<?php // Admin Database Properties $admindbhost = 'localhost'; $admindbuser = 'user_default'; $admindbpass = '************'; $admindbname = 'db_admin'; // Default Database Properties $defaultdbhost = 'localhost'; $defaultdbuser = 'user_default'; $defaultdbpass = '************'; $defaultdbname = 'db_default'; ?>[/CODE] [B]opendb.php[/B] [CODE]<?php // Admin … |
|
is there any way to get the name before i post, i want to get the name before i post becuase i want to delete a php file and create a new one instead of it [CODE]if(isset($_GET['id'])) { $query = "SELECT id, name, title, description, keywords, content, skin ". "FROM … |
|
have this script [CODE]$idhandle = fopen($filename, 'r+') or die("can't open file"); $id = "<?php \$lastid = \"$lastid\"; ?>"; fwrite($idhandle, $id); fclose($idhandle);[/CODE] trying to write "<?php \$lastid = \"$lastid\"; ?>"; in the first line of the file but what is happening is its deleting some of my code in the file. … |
|
so i have a page called addpages with the following [CODE] mysql_query("INSERT INTO pages (name, title, description, keywords, content, updated) VALUES('$name', '$title', '$description', '$keywords', '$content', '$updated' ) ") or die(mysql_error()); // Get Last ID $lastid = mysql_insert_id(); // Start Create php page file $filename = "$name.php"; $template = file_get_contents("templates/default.php"); $filehandle … |
|
is there any way to get the id you are going to insert the data in before you post the data, like get the last id and do a +1 to it or something pleaseee? |
|
hi guys any idea how i can insert a whole html code in $content please ? basically i want to paste my html template after $content ='whole html code goes here' any ideas ? thanks in advance [CODE]<? if(isset($_POST['save'])) { $pagename = $_POST['pagename']; $content = 'test'; $filename = "cms/pages/$pagename.php"; $filehandle … |
|
i have this code [CODE]<body> <?php include 'cms/core/config.php'; include 'cms/core/opendb.php'; $query = "SELECT id, language, updated ". "FROM meta ". "WHERE id = '5'"; $result = mysql_query($query) or die('Error : ' . mysql_error()); list($id, $language, $updated) = mysql_fetch_array($result, MYSQL_NUM); include 'cms/core/closedb.php'; ?> <form method="post" action="default.php?s=editmeta"> <input type="hidden" name="id" value="5"> <table … |
|
hi guys, found out about this forum a few weeks ago and found it very useful in regards php issues, i started to experiment with the language lately so i'm still a beginner, i need some help the following code: [CODE]<body> <?php ob_start(); include 'cms/core/config.php'; include 'cms/core/opendb.php'; if(isset($_POST['save'])) { $description … |