39,320 Topics

Member Avatar for
Member Avatar for Smudly

In my code, I loop through 3 random users, and I am trying to add 500 to their total number of credits. The variable $credits isn't being captured correctly, as it shows blank when I try to echo it. The odd part however, is $userid (primary key) is captured into …

Member Avatar for karuppasamy
0
95
Member Avatar for LRNPHP

Hi There. Does anyone have a php select option that will pull data from mysql DB and populate next select option with data. I need to have 3 select option. I also want to run mysql query with data from all 3 select options. Thanks Regards

Member Avatar for sourcebits
0
70
Member Avatar for betabasic

hi! i want to view an rss file using php.. i found this site: [url]http://www.softarea51.com/tutorials/parse_rss_with_php.html[/url] here's the code: [CODE=php] <?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' => $node->getElementsByTagName('title')->item(0)->nodeValue, 'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue, 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue, 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue ); …

Member Avatar for sourcebits
0
110
Member Avatar for faizabest
Member Avatar for vibhaJ
0
61
Member Avatar for fakemew

I am storing the images in a folder on my webserver and adding the location/details of the image to the database. But I have problems retrieving them, please help! Is this the code I should be using? [code=php]<?php echo "<img src='/images/". $filename ."'>" ?>[/code] then $filename is supposed to be …

Member Avatar for rajarajan2017
0
177
Member Avatar for cristi08

IT NOT WORKING :(( [CODE] $igletuire="INSERT INTO valoare_lucrari (id_ofertant, id_manopera, id_camera Denumire_camera, um, Cantitate, Pret_manopera, Total )VALUES( '" . $row['id_ofertant']. "', '" . $row['id_manopera'] . "', '" . $row['id_camera'] . "', '" . $row['Denumire_camera'] . "', '" . $row['um'] . "', '" . $row['Sgletuire'] . "', '" . $row['Pret_manopera'] . …

Member Avatar for rajarajan2017
0
77
Member Avatar for phphit

Hello Everyone, I have table name schedule in my database. There is field sch_time in that. sch_time stores time in GMT. I also have timestmp field which stores data in unix format. The time stored in sch_time is of future date i.e. schedule of some event. This events are displayed …

Member Avatar for phphit
0
310
Member Avatar for Smudly

I'm creating a daily drawing system. The users have a chance to win every day. Once a user wins, they will not be able to win again for 30 days. I need to select all rows inside my mysql database that have dates over 30 days ago, or are still …

Member Avatar for aquilax
0
81
Member Avatar for Mike516

Is there any way to search with a variable that is an array. ie) [code=php] mysql_query("Select * FROM table_name WHERE `id` = '$var'"); [/code] where $var is an array. Is this possible?

Member Avatar for Mike516
0
141
Member Avatar for ahmadjhoney

Hello Great developers, i am working on an application, where i am trying to implement the multiple users chat, Basically the users send message to mobile and then get back the reply , then it shows like normal chatting. all everything is working and GREAT :icon_wink: But Except the multiple …

Member Avatar for diafol
0
139
Member Avatar for vidyaputra

iam trying to install phpmydirectory to my localhost server (i have testing it using xampp and wamp)...but there is a problem; when iam using wamp, the installation of mhpmydirectory working just fine, but then i cannot login as administrator. If i check on mysql there is administrator username and password, …

Member Avatar for Ezzaral
0
195
Member Avatar for phpl0v3r

hey, as i said, i am phpl0v3r ( if you can't read phplover :p ) i love to code php, js i love debugging problems i love neat web design i love learning new stuff i love my friends and family and i truly love good nature in the world …

Member Avatar for maceman
0
153
Member Avatar for thom22

Hi, i have been struggling for a while now trying to finish this, i am new to a lot of this and although i have had some tips i think i am getting myself more lost. So i have stripped the code to a point where it almost works. DEMO …

0
93
Member Avatar for Indirect

Hey all. First post ;) and since i've used this site a lot for help i think its about time i registered and joined up. Im not new to programming but i am new with php + database manipulation. [CODE] $app = mysql_query("SELECT * FROM applicant_classinfo WHERE appid='".$_GET['id']."' AND '".$_GET['cname']."'"); …

Member Avatar for Indirect
0
148
Member Avatar for kirtan_thakkar

I want to set all the permission in one specific folder with htaccess. What to code in htaccess for that? Please help..

Member Avatar for pritaeas
0
75
Member Avatar for helloworl

Hi Guys, I am using xlsStream class by Ignatius Teo to generate an excel. It working fine in english but not in chinese. Pls help

Member Avatar for chrishea
0
36
Member Avatar for braveheart_sb

Hi, I'm Having a Problem with populating a combo box with more than one result from a query. until this stage i have managed to get the first Row Curso_name,but i still find difficulty in displaying the second row and also adding a "-"between both the rows. Thank You! [CODE=php] …

Member Avatar for braveheart_sb
0
150
Member Avatar for asahmed

Hello Does anyone know how to effectively search for a string in a Mysql table? Here's the problem: Let's say I have a table(id,song) and I want to search for a specific song (ex: One Love) Using the following query returns the exact song when the user enters it exactly …

Member Avatar for asahmed
0
144
Member Avatar for peck3277

Hi guys, I have a form where users update a posts information. One of the sections is the following : [CODE]<td><input type="text" name="author" size="30" value="<?php poem_info($pid,author); ?>"></td>[/CODE] as you can see I'm using php to populate the field. Here is the function poem_info(): [CODE]function poem_info($pid,$record){ require_once '../classes.db_connect.php'; $db = new …

Member Avatar for peck3277
0
116
Member Avatar for aneeka

hey guys, i have this code in php i don't know if this works but there is no error at all. i am trying to get the value from a database and assign it as the value of the combo box. [CODE]echo "<td align=left><font size = '2'><select name='status' id='status' selecteditem='$status'><option>Active</option><option>Resigned</option></select>"; …

Member Avatar for rajarajan2017
0
137
Member Avatar for tanha

Hello everybody, firstly I am new in PHP, and I use the WAMP5 tools which has the following features: i) Apache 2.2.4 (SERVER) ii) PHP 5.2.3 + PECL iii) SQLitemanager iv) MySQL 5.0.41 v) Phpmyadmin I have a table named 'tblStudent' with four fields as follow properties: 1. stID int …

Member Avatar for JimiTster
-1
188
Member Avatar for aMOEBa

Hey guys I am trying to write this application to display members who are celebrating the birthday in a particular week, month. I want the app also to be able to display those who will be celebrating their birthdays in abt 2months. I want to do something like how Facebooks …

Member Avatar for pritaeas
0
149
Member Avatar for rahul8590

I have a couple of input boxes where the user will be entering his/her data . for example: Name:------------- Fathers name:----------- mothers name:------------ when the user enters the data , i need the xml to be generated something like this <family> <name> users name </name> <fname> fathers name </fname> <mname> …

Member Avatar for rahul8590
0
903
Member Avatar for commando_chandu

i m getting subscription id at the time of recurring profile creation but not getting at the time of recurring payment in the ipn response

0
45
Member Avatar for muralibobby2015

some times i am getting this appache error. i dont know why it is comming? [CODE]Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience.[/CODE]tell me what to do?

Member Avatar for rajarajan2017
0
61
Member Avatar for nick3592

hi i have a bunch of files that i need to make undetectable to search engines and from people viewing it because it is very dangerous to show these files to the outside world. I was wondering how i can completely make them unviewable to anyone but me and a …

Member Avatar for keval_hack
0
95
Member Avatar for wish02

i need to print this as a report, how do i export it to word or pdf with seeing exactly what is seen on the browser? because sometimes the format is disorganized. please help! thanks! [code=php] <?php session_start(); if(!session_is_registered(myusername)){ header("Location:main_login.php"); } $userId = $_SESSION['userId']; include "../../../_functions.php"; ?> <html> <meta http-equiv=\"Content-Type\" …

Member Avatar for chrishea
0
140
Member Avatar for nwalker78

hi, not sure if im posting in the correct section but im working on a site registration for a mate this bit has been completed, however i am wanting to extend this and display a plethora of info but i have hit a bit of a wall. iam wanting to …

0
88
Member Avatar for alicem

I just want to scan through a directory containing several subdirectories, each containing several text files, and display the name/word count/character count of each text file in each subdirectory. All I'm looking for is a quick and simple way to do the scanning through all subdirectories finding each file. thanks …

Member Avatar for HavocAngel
0
7K
Member Avatar for reza.adinata

Hi, I have a snippet code below [CODE] <?php //get value of $new from other codes //$new will provide outputs of a new number every time it is executed echo "$new<br/>"; $strFile = "1.txt"; file_put_contents($strFile, $new); [/CODE] The idea is that I want to put a new line of number …

Member Avatar for reza.adinata
0
144

The End.