39,316 Topics

Member Avatar for
Member Avatar for logicslab

Dear pals, I am using the tutorial code of "xmlrpc in wordpress" in URL [Click Here](http://wp.tutsplus.com/tutorials/creative-coding/xml-rpc-in-wordpress/) , but it shows result as blank in my local wamp but it work fine on another local pc. I attach the code and preview of the problem. Please check and help me. code …

Member Avatar for logicslab
0
310
Member Avatar for gil857

Howdy All, I have a wordpress website where the featured image is being used as a thumbnail on the front index page. Here is the code I'm using: <?php the_post_thumbnail( array(100,75), array('class' => 'alignleft' ) ); ?> It works fine on a specified category post where I'm using the same …

Member Avatar for bradly.spicer
0
208
Member Avatar for kosar latif
Member Avatar for pritaeas
0
8K
Member Avatar for Priti_P

Hello, I have done code for scheduling the event in php. As I schedule it, it goes to user's calender as an invitation. If I reschedule it, then new invitation goes with same matter with new values. But I found it is not overwriting the previous one. How can I …

Member Avatar for Priti_P
0
119
Member Avatar for php_php

0 down vote favorite i want radio buttons remain selected across all pagination. For taht I have collected the checked value in pagination at the top of page. But it is not working well. What is wrong with this code ? This is how i get selected value of radio …

Member Avatar for pritaeas
0
191
Member Avatar for Donima4u

Please help, i get this error when i run my script on my testing server Notice: Undefined index: id in index.php on line 5 Notice: Undefined offset: 1 in index.php on line 8 but on my actual website, it displays a blank page, with the background colour, how do i …

Member Avatar for cereal
0
522
Member Avatar for dannybarh

Is the error i get trying to connect to my db. Warning: mysqli_connect() [function.mysqli-connect]: (HY000/2005): Unknown MySQL server host 'http://www.fleethabari.com/' (1) in /home/www/fleethabari.com/inc/config.php on line 2 Unable to select database: Unknown MySQL server host 'http://www.fleethabari.com/' (1) Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in /home/www/fleethabari.com/inc/config.php on line …

Member Avatar for pritaeas
0
667
Member Avatar for Ramakrishnan.L
Member Avatar for chrisschristou

hello fiend i need help i have create a lot of pages with same methode and work fine on local but never work online i want know if oder way exist when i have data in form and i clic on submit data insert into table and users directly navigate …

Member Avatar for broj1
0
394
Member Avatar for NitsPatel

hello, How I can not display Uncategorised category from post when not select any category in Wordpress Thanks in Advance nits**

Member Avatar for NitsPatel
0
296
Member Avatar for boney

Hello, My HTML+JS : <head> <script type="text/javascript"> function passList() { var p=[]; $('input.first').each( function() { if($(this).attr('checked')) { p.push($(this).attr('rel')); } } ); $.ajax( { url:'process.php', type:'POST', data: {list:p}, success: function(res) { $("#result").html(res); } }); } function passType() { var q=[]; $('input.second').each( function() { if($(this).attr('checked')) { q.push($(this).attr('rel')); } } ); $.ajax( { …

Member Avatar for boney
0
225
Member Avatar for gogs85

I have problem with css when use this htacces code RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /index.php?id=$1&page=$2 [L] mode_rewrite work ok but css is not :( How to fix?

Member Avatar for cereal
0
3K
Member Avatar for shasta90

What option for cURL needs to be changed in order to retrieve the XML content, as I have added the curlopt option for xml content but all that happens is the JS error of "no data received" <?php $agent = $_SERVER["HTTP_USER_AGENT"]; $timeout = 5; // set to zero for no …

Member Avatar for shasta90
0
406
Member Avatar for lewashby

In the following program the first strpos() function is working just just fine when searching for a matching email address in the text file as long as it's on the first line but the second entry it jumps streight to the else clause and echos "Unknown user name" even though …

Member Avatar for pixelsoul
0
172
Member Avatar for lewashby

(Linux) In the following program I'm trying to process the file accounts.txt line by line searching for a match to the form supplied variable '$email'. The function fgets() is stepping though the file line by line correctly but my attempts at using preg_match() and or strpos() to determine if that …

Member Avatar for lewashby
0
151
Member Avatar for cussel

hy all, how to compute eigenvector from array bellow? I am confused in make nested loop and temporary for compute eigenvector please help me!!! $data = array( array(1,-0.52836,0), array(-0.52836,1,-0.19845), array(0,-0.19845,1) ); $data2 = array( array(1), array(1), array(1) ); echo "<pre>"; //print_r($data2); echo "</pre>"; for ($i=0;$i<count($data);$i++) { for ($j=0;$j<count($data[$i]);$j++) { $R2[$i][$j] …

Member Avatar for cussel
0
247
Member Avatar for lewashby

(Linux) In the following code all I'm trying to do is open a file but evertime I run this script the fopen function jumps right to the die() function. Any ideas? The file accounts.txt does exist in the same directory, and I also tried refrencing the file via ./accounts.txt . …

Member Avatar for lewashby
0
161
Member Avatar for shrikanthnk

hi kindly help me here..... i have written code like this to display **hi** when page gets loaded. please correct it this code so as to display message. <html> <head> <script type="text/javascript" src="jquery-2.0.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#b").load(function(){ alert("hi"); }); }); </script> </head> <body> ......... ...... .... </body> </html>

Member Avatar for JorgeM
0
127
Member Avatar for PerplexedB

Consider my method : static public function mysqldate($c,$f = 'd-M-y'){ // date is supposed to be in dd/MMM/yyyy format. // returns a date in mysql form try { $result = "'" . DateTime::createFromFormat($f,$c)->format('Y-m-d') . "'"; } catch (Exception $e){ $error = "error in mysqldate <br />" ; $error .= "date …

Member Avatar for PerplexedB
0
129
Member Avatar for chrisschristou

hello my Daniweb friend i'm trying to get data from database where only users is connect so i user this code i get a errot on navigator i got this errot on navigator : Parse error: syntax error, unexpected '=', expecting ',' or ')' in /homepages/0/*/htdocs/domainname.com/*/*.php on line 145 this …

Member Avatar for chrisschristou
0
103
Member Avatar for chrisschristou

hello Dear friend i can't explain cause i dont' know why, i'm using the code below to insert data into a myql table but i work fine ust today i get a error colum subtotal can't be null... i' have try too much thing but still same i delete the …

Member Avatar for chrisschristou
0
219
Member Avatar for patk570

I have a database and I have 3 different values that I want to count, to say that You have x amount of tickets open. I am created an array $array = array( 'Pending', 'Waiting on parts', 'Waiting for customer response' ); and a query string $result = mysql_query("SELECT COUNT(*) …

Member Avatar for diafol
0
182
Member Avatar for shrikanthnk

Hi All, Below code gives me exact result which I want.. output gets displayed at div # result which is as per design. Now i wouldlike to know is there any method to display result in textbox? if so please help me. <html> <head> <script type="text/javascript" src="jquery-2.0.3.min.js"></script> <script type="text/javascript"> { …

Member Avatar for diafol
0
581
Member Avatar for venkyb47

The following code used in productlist.php // some code manipulation to generate new values $filetodownload = 'DoubleClick to run.txt'; $filehandler=fopen($filetodownload,"w"); fwrite($filehandler,$generatedValue); fclose($filehandler); header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.$filetodownload); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($filetodownload)); ob_clean(); flush(); readfile($filetodownload); header('Location:druglist.php'); After file downloaded page …

Member Avatar for venkyb47
0
3K
Member Avatar for PriteshP23

Hello, I would like to solve form validation and filename problem. Here is my code: /************************** Step 1: Select Cell************************************/ if(isset($_POST['SmartPhone'])) $checked1=$_POST['SmartPhone']; $form->add_checkbox('SmartPhone','SmartPhone',$checked1); if(isset($_POST['Apple'])) $checked2=$_POST['Apple']; $form->add_checkbox('Apple','Apple',$checked2); /************************** Step 2: Select Model************************************/ if($_POST['SmartPhone']==false and $_POST['Apple']==false) { $this->add(new error('<span style="color:red">Select your cell..!!</span>')); $this->step1(); return; } if(isset($_POST['S4'])) $tech2=$_POST['S4']; $form->add_checkbox('S4','S4',$tech2); if(isset($_POST['iPhone 5'])) $tech3=$_POST['iPhone 5']; …

Member Avatar for andreiviziru
0
418
Member Avatar for prateek_chandra

Hello, I am just a beginner and I need some help. Can anyone please provide me an article on PHP.

Member Avatar for veedeoo
0
82
Member Avatar for shrikanthnk

<?php SESSION_start(); if(!isset($_SESSION['email'])) { echo"access denied"; exit; } else{ $email=$_SESSION['email']; include("menu.php"); $num=$_SESSION['num']; $date=date("Y/m/d"); } ?> <html> <head> </head> <body> <div style="position:absolute; top:143px; left:292px; width:999px; height:244px; background-color:pink; border-radius:15px;"> <table> <form enctype="multipart/form-data" action="" method= "POST"> <tr><td>Document Type:</td><td><select name="doc_type" > <option value="police report" selected="true">Police report file</option> <option value="medical report">Medical report file</option> <option value="purchase …

Member Avatar for shrikanthnk
0
168
Member Avatar for klemme

Hi all, I am trying to lay out a plan for my classes, and havent godt the most experience in oop yet. I am using an abstract class, to be able to have a more clear overview and keep the project easier to manage. SO: I have created two abstract …

Member Avatar for diafol
0
328
Member Avatar for devianleong

This is my code : for($i = 0;$i<$count1;$i++){ echo '<select name="attribute['.$i.']">'; while($parent = mysql_fetch_array($query)){ //echo $parent['Name']; echo '<option value="'.$parent['ID'].'">'.$parent['Name'].'</option>'; }//while $parent echo '</select>'; }//for loop My problem is why the output like this?: <select name="attribute[0]"> <option value="2">Colour</option> <option value="3">Size</option></select> <select name="attribute[1]"></select> Why this line does not contain the both option …

Member Avatar for devianleong
0
235
Member Avatar for johmny

hello to all the members which one is better php or asp.net to create the dynamic website

Member Avatar for diafol
0
149

The End.