39,316 Topics

Member Avatar for
Member Avatar for danimal132

sorry if this is a noob question, but i am using the following code to read an RSS feed, and I am wondering how to call the variables (date, title,etc...). [CODE]<?php $doc = new DOMDocument(); $doc->load('http://www.softarea51.com/rss/windows/Web_Development/XML_CSS_Utilities.xml'); $arrFeeds = array(); foreach ($doc->getElementsByTagName('item') as $node) { $itemRSS = array ( 'title' => …

Member Avatar for pritaeas
0
87
Member Avatar for kegman

I am presently installing a zen shopping cart on my very well established eCommerce site. The search engine uses an index.php to dynamically generate the pages. Will this affect my high ranking in the search engines? If yes is there a workaround like leaving the existing 500 pages of items …

Member Avatar for bbriniotis
0
124
Member Avatar for sikka_varun

Hi, I have a requirement where i have a windows server with IIS and PHP 5. My PHP script creates a file and windows OS is not allowing me to create a file using fopen function. It gives Permission Denied error. Can anyone give an idea where i can internally …

Member Avatar for mehrana
0
139
Member Avatar for wwwmadeasy

hello every one ..i am planing to do some coding but i dont know how to start... the idea is that i created a form in HTML which is submitted to the database...and what i want is the recourd should display in bold font if i did not view them...if …

Member Avatar for wwwmadeasy
0
73
Member Avatar for thegreatdanton

Hi, I'm retrieving data from a database where it is being called onto a page based on what is in the database. What i want to do is organise this data into a sortable table whereby the user will be able to click on the column header and sort by …

Member Avatar for almostbob
0
81
Member Avatar for Chad Gary

[CODE]<?php if (isset($_POST['submit'])) { $id2 = $_POST['credential_category']; $form = '<form action="' . $_SERVER['PHP_SELF'] . '>"' . 'method="post">'; $form .= '<p> Please Enter Your Credential</p><br/>'; $form .= '<label>Credential:</label><br/>'; $form .= '<input type="text"' . 'name="credential"' . 'size="40">' . '<br/><br/>'; $form .= '<input name="submit2"' . 'type="submit"' . 'value="Submit" />'; $form .= '</form>'; } …

Member Avatar for Spine
0
84
Member Avatar for groogruxking40

here is my code [code]<input type="submit" class="button" onclick="window.open('http://wwww.christiancouriernewspaper.com/upload.html',Upload','width=400,height=400')" name="<?php echo $form_id; ?>" id="<?php echo $form_id; ?>" value="<?php echo $submit_text; ?>" alt="<?php echo $submit_text; ?>"<?php echo $x_or_h; ?>><br<?php echo $x_or_h; ?>>[/code] if you go to this page.. www dot christiancouriernewspaper dot com / blogbase / contactpage.php you will see the SUBMIT …

Member Avatar for noelthefish
0
52
Member Avatar for nihinladejoe

I am new in this forum. I am a php mysql starter. please help me see what is wrong with this code: It is giving me parse error [code=php]<?php $dbhost='localhost'; $dbusername='root'; $dbuserpass=''; $dbname='users'; if (isset($_COOKIE['user'])) { echo "Welcome $_COOKIE[user]"; }else{ //connect to the mysql database server. mysql_connect ($dbhost, $dbusername, $dbuserpass); …

Member Avatar for ShawnCplus
0
73
Member Avatar for apease11

Hi, I am having a problem forcing a download from PHP. I am running 5.2 Stable. I have followed numerous tutorials and still can't figure it out. What I'm trying to do is force-download a file I made, because the browser likes opening it up inside, but it won't let …

Member Avatar for apease11
0
150
Member Avatar for Tekkno

I have a form that gives the user an option to upload a file. The field is optional, but if they do not upload a file I would like to insert a default image into the database. At one point it was working but I can't seem to figure out …

Member Avatar for Tekkno
0
96
Member Avatar for K?!

Hi all I'm encountering some problems switching to PHP 5.3. I am now using XAMPP 1.7.2. I had [URL="http://slaout.linux62.org/php/index.html"]this[/URL] database class extended and it worked when using PHP 5.2.9. But after the switch to 5.3 it doesn't. (Today I found out it was originally written for PHP 4 so it's …

Member Avatar for K?!
0
102
Member Avatar for zupca

Hi, I am using preg_match_all first time and i have problem with getting values from string. Example of the string: [CODE] $str = '... { "trailStart":"1980", "key":{"dim0":"Switzerland"} } ... '; [/CODE] Here is my example. I have to get out year and country (1980, Swizerland). Can anybody write pattaren for …

Member Avatar for ShawnCplus
0
96
Member Avatar for jeyakannanrd

Please help me. I got this error while uploading in Server. I developed this code in windows based. But the deployed server is Linux Server. In windows server i didn't get this session error. Here is my code: [code=php]<?php session_start(); require_once('l2t_connect.php'); if($_GET['action'] == "send") { if(isset($_REQUEST['btnSend'])) { $key=substr($_SESSION['key'],0,5); $number = …

Member Avatar for cwarn23
0
116
Member Avatar for whiteyoh

Hi all, I have completed a cms system but at present they have to use html tags to edit the information. I recently found out about wysiwyg, which i would love to impliment but im having issues. the two following files allow you to type something, then click edit, which …

0
84
Member Avatar for quickbird

Hello, I have a forum and i want to have a avatar system for each users avatar to appear on the side of his thread. but i am newbie to php and don't know how to do this. Can source code for this. Thankyou, Quickbird

Member Avatar for quickbird
0
196
Member Avatar for gilbertsavier

Hey there, I have a class A that uses class B. Class B also uses class A. This is recursive and am wondering if you can redefine PHP classes like in C++. [code]class A{} class B{ private $classA; public function __construct($classA){ $this->classA = $classA; } public function someFunc(){ echo 'blah'; …

Member Avatar for cwarn23
0
96
Member Avatar for crohole

I wan to ask you master, how to detect all partners website in all world that have my link in there. Please reply me. Thank's for your attention.

Member Avatar for danishbacker
0
99
Member Avatar for gilbertsavier

Hi, PHP scripting language have an built in function to change between the timezones , you will need the PEAR package . In the following example show you how to convert from GMT system format to IST Format . [code=php]<?php // include class include ("Date.php"); // initialize object $d = …

Member Avatar for danishbacker
0
93
Member Avatar for gilbertsavier

Hello, Going to try to explain this as best I can. I have a bunch of stuff in a database and I need to display this info within a table. This isn't a problem at all but, I need it to only display 3 td tags per line and then …

Member Avatar for SimonMayer
0
78
Member Avatar for phpNewbie

I have a database with four tables: name, meaning, gender, origin, and i want to have the origin field automatically populated from the database rather than having to type the code for all the selections in the html. Below is what i've been playing with but I can't make it …

Member Avatar for enim213
0
250
Member Avatar for LutherVespers

I'm in the process of writing a comment system for my blog. Each blog page will be on a PHP document with an HTML form where the viewer can type in their name and comment in a form at the bottom. [ICODE] echo "<form action='postcomment.php' method='post'>"; echo "<input type='text' name='PosterName'/>" …

Member Avatar for diafol
0
130
Member Avatar for manizzi

hi guys? Im new to this so please bear with me. I have not seen a practical example of what I am trying to do so i'd appreciate any help I get. The code below contains a form with a number of fields. I am trying to query the database …

Member Avatar for manizzi
0
136
Member Avatar for architact

Hello, I have created a site where users will have to pay fee for signup, that fee will be calculated using the options the select. I want them to be able to pay their fee using Paypal, I know how to process a fixed amount using paypal but don't know …

Member Avatar for chrishea
0
73
Member Avatar for Tekkno

I am trying to echo two predefined variables, on the same line, with a space in between them. I am also hoping to use either ucfirst or ucwords to capitalize the first letter of each word. But to my understanding these only work with a string. Here is the code …

Member Avatar for Tekkno
0
87
Member Avatar for coleguitajuan

Dear people, There is any function instead of explode which does not add an index in the beginning of every line? Instead of show: [0] => Number=0 [1] => Number1=1 [2] => Number2=2 Shows like that: Number=0 Number1=1 Number2=2 or some function that removes the [0], [1],[2]... Thanks in advance! …

Member Avatar for coleguitajuan
0
120
Member Avatar for Thiassi

Hi there, I'm currently trying to write a function that works on a 24 hour (obviously) day but it must run 4x the normal speed. So as an example, hour: 22 will pass 4 times every day. It doesn't need to work on a AM/PM basis but only hour 1-24. …

Member Avatar for SimonMayer
0
100
Member Avatar for rahul8590

well i am creating a registration form . the problem i am facing is i want to generate the name text field based on the input of number of participants. if some one wants to perform bulk registration, then he can keep filling the form again and again, having all …

Member Avatar for noelthefish
0
746
Member Avatar for poobaah

Hi, I am new to PHP and cant seem to find a way to parse a concatenated string and variable. To explain: I have a database to catalogue a composers works, one of the tables has a list of instruments which I then access to dynamically display on a wep …

Member Avatar for SimonMayer
0
121
Member Avatar for Gerald19

Hello, I ran into a problem trying to create a file named after a table in the mysql database. The table name is stored in a variable called $tablename, and the filename should thus be, $tablename.php. for example, a table called guestbook should create a file named guestbook.php. But using …

Member Avatar for Gerald19
0
102
Member Avatar for BlackPhoenix

Hi everyone I have an idea for something but not sure which method would work best to provide the desired result. Let's say I have a database up and running, storing data for 2 users (php and mysql). What I want to achieve is: having 2 clients on the page …

Member Avatar for BlackPhoenix
0
186

The End.