39,326 Topics

Member Avatar for
Member Avatar for renierdbruyn

the following function "ranks" the applicants and writes them to the rank_results table in the database: function rank() { $rank = 0; $sql1 = "SELECT * FROM applicant_details"; $results = $this->db->query($sql1)->result(); $sql3 = "SELECT * FROM job_advert"; $job_advert = $this->db->query($sql3)->result(); foreach ($results as $applicant) { $applicant_age = $applicant->age; $applicant_id_number = …

Member Avatar for renierdbruyn
0
150
Member Avatar for pritaeas

I'm working on an ORM experiment, and I'm looking for ideas to help choose which path to take in it's development. I currently have an index showing how to use it, two interfaces, a database class, a table base class and two auto-generated classes (representing a database table). The first …

Member Avatar for pritaeas
1
324
Member Avatar for harry_2

Hi i m a professional website designer and interested in learn PHP for Future so can any one explain me where PHP required in website during development or design and what is the main topic which most required for Website Designer or developer I have knowledge about programing like c,c++ …

Member Avatar for Pilot122x
0
188
Member Avatar for Priti_P

Hello there, While submitting the form , though it is validated properly still it accepts ? in mobile number field **sometimes** while it is submitting to database It is not for everytime and at particular digit only so that I can find the issue, It comes rarely as sometimes like …

Member Avatar for AARTI SHRIVAS
0
64
Member Avatar for durgesh1

i need to modify this query $fields = array("lo.name", "lo.id", "lo.status", "lo.sales_status", "pt.name ptname", "lo.city", "st.name state", "co.name country", "lo.zip", "lo.phone", "lo.email"); $result = $select->selectQuery($fields, "locations lo","LEFT JOIN states st ON st.id = lo.state LEFT JOIN countries co ON co.id = lo.country LEFT JOIN location_types pt ON pt.id = lo.primary_type"); …

Member Avatar for pritaeas
0
91
Member Avatar for andreiviziru

i have this class <?php ob_start(); session_start(); include 'db_con.php'; /** * * @Create Breadcrumbs Trail. * * @copyright Copyright (C) 2008 PHPRO.ORG. All rights reserved. * * @version //autogentag// * * @license new bsd http://www.opensource.org/licenses/bsd-license.php * * @filesource * * @package Breadcrumbs * * @Author Kevin Waterson * */ class …

Member Avatar for minitauros
0
182
Member Avatar for andreiviziru

this is the code if (file_exists('/user/'.$_SESSION['Username'].'/avatar.jpg')) { echo 'Exists'; } else { echo 'Doesn't exist'; } and i get the negative case

Member Avatar for paulkd
0
1K
Member Avatar for NitsPatel

Hello, I heard about the multisite in wordpress . I search and do some steps apply for that .I make a network setup .But now what to do after network setup. please give me some suggestions Thanks in Advance Nits Patel

Member Avatar for NitsPatel
0
1K
Member Avatar for lelemkop

Hello to all. I have a problem I can not solve. I have a table where there is a date field (datatime) where it goes automatically inserted the date and time of insertion. So 2013-09-02 12:00:00 AM. For me, this field is essential. Now I wanted to make a search …

Member Avatar for lelemkop
0
228
Member Avatar for sajidk25

Hello, I am making a wordpress theme by myself. I register the menus in my theme's function.php and show the menu using wp_nav_menu(). But problem is that the registered menu is not showing on wordpress dashboard>appearance>. In appearance tab there are themes and editor tab but no menu tab. **my …

Member Avatar for veedeoo
0
263
Member Avatar for muzique18

I already have a php file that catches data from an uploaded CSV file to MySQL but the problem is, every time I upload the csv file, it duplicates the data into the MySQL What i really want is, if I uploaded the first csv file, and edit some data …

Member Avatar for broj1
0
319
Member Avatar for lewashby

I'm getting this -> [Tue Sep 10 10:42:46 2013] [error] [client 127.0.0.1] PHP Warning: SQLite3::exec(): unable to open database file in /var/www/ET/insert.php on line 21, referer: http://localhost/ET/ I changed the owner of the DB file (et.sqlite3) to www-data and now this is what I'm getting. Before I changed the owner …

Member Avatar for lewashby
0
4K
Member Avatar for weeraa

Actually this is a common problem for all who work with php mail function. Before I start this new thread, search for 2 days a proper/correct solution for my probem. But i couldn't find of any. When I send email through my web site, It is sent as spam to …

Member Avatar for almostbob
0
296
Member Avatar for ShadyTyrant

I am trying to refactor some code that selects a category from a database and then displays the listing on a website. Basicly it looks like this: if($_GET['category'] == 'All') { $results = mysql_query("SELECT * FROM members ORDER BY company ASC"); } elseif($_GET['category'] == 'Alterations') { $results = mysql_query('SELECT * …

Member Avatar for ShadyTyrant
0
214
Member Avatar for eltonpiko

hi im trying to create an php email script that will also submit the session data from a multi part form but somehow its not working the session data is not getting submited.take a look at my code hope someone can help out <?php //let's start the session session_start(); //now, …

Member Avatar for minitauros
0
320
Member Avatar for eburlea

Hello everyone, I am trying to retrieve some info from a remote site using PHP DOMDocument and I cannot figure out why the code returns NULL, although the provided ID exists on the page. Please help. $dom = new DOMDocument("1.0", "utf-8"); @$dom->loadHTMLFile('http://sports.yahoo.com/news/messis-tax-hearing-put-back-122033643--sow.html'); $content = $dom->getElementById('yog-content'); var_dump($content);

Member Avatar for pritaeas
0
150
Member Avatar for PriteshP23

PFA...!! **Please look at the table data carefully.** I need to delete the rows. I need urgent help..!! Table: CREATE TABLE IF NOT EXISTS `version` ( `nidt` varchar(11) NOT NULL, `noeud` tinyint(3) NOT NULL, `VERSION` float NOT NULL, `ETAT_FONCT` varchar(20) default NULL, `idnap` varchar(25) NOT NULL, `nidtint` bigint(20) NOT NULL …

Member Avatar for PriteshP23
0
321
Member Avatar for pawan768

Hi, Im working on a PHP script in which I have to run shell script, I have 2 option , 1. If im able to send php veriable value to shell 2. Or i can write shell directly in PHP I used shell_exec(dirname(__FILE__) ."/shl.sh"); for execute shell .... Now the …

Member Avatar for minitauros
0
243
Member Avatar for gurupts

I Need some help.i just have some tables in data base, that is school ---Name(primary key),phonenumber,street,town,state,country college---Name(primary key),phonenumber,street,town,state,country Railwaystation---Name(primary key),phonenumber,street,town,state,country Hotel---Name(primary key),phonenumber,street,town,state,country In the front end, i will put two combobox and a submit button. All i need is first combo box will have to select the table.Second combobox shows …

Member Avatar for AARTI SHRIVAS
0
219
Member Avatar for Tko_1

Basically i have the search script working well, but i need to replace the $input with $inputused if word is found. I have tried str_replace() with no luck any ideas? Thank you <html> <body> <form name="form" method="post"> <br><input type="text" id="search" name="search_box" style="background:#000006; color: #FF0000" /> <br><input type="submit" name="submit" value="Search for …

Member Avatar for Tko_1
0
173
Member Avatar for strongpot

Hi, I've got a page that allows the upload of multiple files at a time (while inserting filename to db). I've added the ability to arrange the file submission's display with a click and drag ui, this is also working fine...sort of. In order for the click and drag rearrange …

Member Avatar for diafol
0
215
Member Avatar for PerplexedB

Am I right to assume that autoload is a performance issue rather than making my life easier as a developer? I mean if I put all my classes in one include, and I don't have any performance issues, should I be worried about autoloading at this early stage of my …

Member Avatar for PerplexedB
0
341
Member Avatar for gandrap

I have a problem to get result from mysql. I want this average result when i have for example two reviews: food: 5.0 prices: 5.0 lodging: 6.2 but i got this results separatly instead: food: 8.0 prices: 6.0 lodging: 3.0 food: 2.0 prices: 4.0 lodging: 10.0 and i cant figure …

Member Avatar for gandrap
0
254
Member Avatar for DiTeN

Hello friends, i am having a trouble, and the server is throwing me this: *Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR: Encoding: object hasn't 'Sdt_coleccionretornoitemsagrupacion' property in /var/www/sitios/webservices/Diego.php:129 Stack trace: #0 /var/www/sitios/webservices/Diego.php(129): SoapClient->__soapCall('Execute', Array) #1 {main} thrown in /var/www/sitios/webservices/Diego.php on line 129 * I have this code: echo 'SEGUNDO XML------------------------------' …

Member Avatar for DiTeN
0
304
Member Avatar for devianleong

Hi, This is my php code for category UL and LI recursive. Now is working fine but the output is not what I expected. Here is the HTML output of the code I provided: <ul><li> <a href="#">Electronic Gadgets </a><span class="subDropdown plus"></span><ul><li> <a href="#">Pant</a></li><li> <a href="#">Aircond</a></li><li> <a href="#">Shoe</a></li><li> <a href="#">test</a></li><li> <a …

Member Avatar for diafol
0
1K
Member Avatar for brenton_77

Hi All, I'm trying to read/pass a value from a dropdownlist on a ASP.NET page to a PHP page so I can excute the required SQL command in the background. Can anyone assist with this? Background: - jQuery autocomplete search box getting results from PHP page that connects to a …

Member Avatar for JorgeM
0
371
Member Avatar for PF2G

Hi, I have this date picker and what i want to do is, how many days, months and years are left from the today's date until the date i chose. <?php $secondDate = '2012-08-02'; // date i picked $currentDate = date('Y-m-d'); //current date $datechose=explode ('-',$secondDate); $todaysday=explode ('-',$currentDate); $daysleft=$datechose[2]-$todaysday[2]; ?> Thank …

Member Avatar for pritaeas
0
419
Member Avatar for devianleong

Hi, How can I add ul and li tag and add `<span class="subDropdown plus"></span>` before sub category `<ul>` called? ? my database: ID,CatName,ParentID This is the output I expected: <ul> <li><a href="#">Car Accessories</a></li> <li><a href="#">Clothing & Shoes</a> <span class="subDropdown plus"></span> <ul> <li><a href="#">Shoes</a></li> <li><a href="#">Sndals</a></li> <li><a href="#">Dresses</a></li> <li><a href="#">Jeans</a></li> </ul> …

Member Avatar for pritaeas
0
225
Member Avatar for Kewne

Hi... I'm seeking out some suggestions, ideas, or anything that could help... my .xl report is taking too long to generate... I'm doing this report under php and html but then It takes too long too generate... Is there any suggestion you could give me to fix such kind of …

Member Avatar for diafol
0
190
Member Avatar for garyjohnson

I have a query that selects data and places it into an array. This array can contain 'null' as a results. I want to remove all the varaibles that say 'null'. I have a code that is suppse to remove all the null variables but instead it replaces them with …

Member Avatar for diafol
0
360

The End.