Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~5K People Reached
Favorite Forums
Favorite Tags
php x 22
Member Avatar for odysea

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 !

Member Avatar for Shanti C
0
4K
Member Avatar for odysea

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. …

Member Avatar for BzzBee
0
55
Member Avatar for odysea

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"; …

Member Avatar for odysea
0
93
Member Avatar for odysea

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 …

Member Avatar for pritaeas
0
147
Member Avatar for odysea

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 …

Member Avatar for sureronald
0
89
Member Avatar for odysea

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. …

Member Avatar for cwarn23
0
131
Member Avatar for odysea

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 …

Member Avatar for diafol
0
87
Member Avatar for odysea

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?

Member Avatar for odysea
0
153
Member Avatar for odysea

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 …

Member Avatar for odysea
0
235
Member Avatar for odysea

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 …

Member Avatar for odysea
0
356
Member Avatar for odysea

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 …

Member Avatar for odysea
0
98