39,323 Topics

Member Avatar for
Member Avatar for amith_ami

hi all.... please help me..... i want to download the files from server using php code. any help tnx in advnc........

Member Avatar for picassokaka
0
6K
Member Avatar for Lynne Good

I have registered new custom post types and used this filter to add to my blog homepage add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && $query->is_main_query()) $query->set( 'post_type', array( 'post', 'kicksimage3', 'kicksimage5', 'kicksvideo', 'kicksstatus' ) ); return $query; } Now that it is showing on …

Member Avatar for picassokaka
0
424
Member Avatar for pritaeas

Below is a documented code example showing how to use the SQLite functions to connect and query your database (and check for errors). Please note that using the SQLite extension is NOT RECOMMENDED. This extension is no longer available in PHP 5.4.0. If you want your scripts to be future …

2
587
Member Avatar for pritaeas

This demo will show a PHP script using a Smarty template. It assumes basic installation. In the folder where you copy the script, there should be a smarty folder containing the Smarty files. You should create a writable `cache` and `templates_c` folder, and a folder called `templates` where the `.tpl` …

Member Avatar for pritaeas
2
528
Member Avatar for giovannitao

Hello, I'm developing a classified script, I want that each member can register, upload your ads and view it in your personal area. I create script for registration but I don't know how develop personal area, I think that I set 2 db: users and ads.

Member Avatar for rotten69
0
109
Member Avatar for Vijaysurya

Hai everybody, I need help in doctrine raw sql query, this query count not properly, $query = $db->prepare("SELECT count(p.friend_id) AS count , p.layer_id, l. * from layer l, people p where l.personal_id = :personal_id and l.id = p.layer_id "); layer_id friend_id 5 2 6 7 5 3 this is my …

Member Avatar for urtrivedi
0
135
Member Avatar for mbarandao

Hello all: I have the following mysql query statement: SELECT COUNT(*) as ttl_rows FROM (SELECT DISTINCT(date(timeentry)) AS day, COUNT(*) AS total FROM history where MONTH(CAST(timeentry as date)) = MONTH(NOW()) AND YEAR(CAST(timeentry as date)) = YEAR(NOW()) GROUP BY DATE_FORMAT(timeentry, '%d') ASC) as ttl_row the statement performs a search for all records …

Member Avatar for mbarandao
0
456
Member Avatar for subrata_ushasi

Hi , I have a form having some text fileds and submit button. One more input box and submit button . If a value is entered in input box and button pressed then that will search data from database and displayed in text boxes ,is done . Now I want …

Member Avatar for subrata_ushasi
0
266
Member Avatar for DaveyMoyes

Hi Everyone, How can I add a + sign to the following string.... for some reason I just can not figure it out I have tried ".+ and ".+." and sign quotes - both options but it just doesnt seem to work for me.... $number = $Code."".substr( $mobnum, 0 ); …

Member Avatar for LastMitch
0
322
Member Avatar for dannybarh

am using jquery.min.js to insert a form data into myqsl db.I just added a captcha script i got online,but i keep geting an [ Notice: Undefined index: secretNumber in D:\xampp\htdocs\mim\insert.php on line 25 ].I tryed all i know ,nwwd your help. javascript code: <script type="text/javascript"> > > $(document).ready(function(){ > //Get …

Member Avatar for diafol
0
200
Member Avatar for hwoarang69

i am trying to save value inside input files. code below works fine when i use input field <input type="text" name="price" value="<?php if(isset($_POST['price'])){echo htmlentities($_POST['price']);}?>" /> but when i do same thing inside testarea it dooesnt safe the value. any idea why its dont safe it? <textarea type="text" name="description" value="<?php if(isset($_POST['description'])){echo …

Member Avatar for diafol
0
248
Member Avatar for mastermind2

H friends i need your help again I have shooing site where user can pay through credit card . There are a general form where user submit primary data then he redirect to payment getaway provider page to give his credit card info please check the demo url [url]http://hostingcare.co.in/payment/testpage1.php[/url] now …

Member Avatar for Jessy1pooh
0
1K
Member Avatar for dancks

This is based on advise given ina previous thread I posted awhile ago for protecting data. I tried the following: <?php function base_encode($text) { $size = strlen($text); $str=""; for($i=0;$i<$size;$i++) { $str=$str.slide_left(substr($text,0,1),4); $text=substr($text,-1); } return $str; } function base_decode($text) { $size = strlen($text); $str=""; for($i=0;$i<$size;$i++) { $str=$str.slide_right(substr($text,0,1),4); $text=substr($text,-1); } return $str; …

Member Avatar for pritaeas
0
195
Member Avatar for thakkarpranav

Hi, I have a Python code that uses google app engine to get data via a html page. I need to modify the Python code and write a PHP code, so that the PHP code is able to pass on the required data, which is two numeric values, directly to …

0
81
Member Avatar for anandschiru
Member Avatar for cdays

this code is giving me a blank page <?php session_start(); include("header.php"); include("conection.php"); include("modal.php"); $abc = 100; if($_GET["view"] == "delete") { mysql_query("DELETE FROM administrator WHERE adminname ='$_GET[slid]'"); } if(isset($_SESSION["userid"])) { if(isset($_GET[first])) { } else { $_GET[first] =0; $_GET[last] = 10; } $result = mysql_query("SELECT * FROM administrator LIMIT $_GET[first] , $_GET[last]"); …

Member Avatar for simplypixie
0
169
Member Avatar for SmackFN22

Hello, I'm working on a project that needs to be done in PHP, however, everything has to be done locally. To test files that I'm editing I have installed Xampp on my computer. As far as I can tell, I have installed everything properly. When I load up this page, …

Member Avatar for axymak
0
277
Member Avatar for jcomputing

I have a contact form on my site when I click send I get the following errors: can anyone help please. Warning: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1:25 (Connection refused) in /home/jholmes6/public_html/contact/contactpage/sendmail.php on line 102 Warning: fgets(): supplied argument is not a valid stream resource in /home/jholmes6/public_html/contact/contactpage/sendmail.php on line …

Member Avatar for jalpesh_007
0
408
Member Avatar for eyeda

Anybody can help me with this code? Why the pop up message for deactivated account did not showed up? <? include("database.php"); $myid=$_POST['myid']; $mypassword=$_POST['mypassword']; $status=$_POST['mystatus']; if ($_POST['user']='Admin'){ $resultad = mysql_query("SELECT * FROM staff WHERE staff_id='$myid' AND level='ADMIN' AND password='$mypassword'" ); $count1 = mysql_num_rows($resultad); $row1 = mysql_fetch_array($resultad); if($count1==1){ header('Location:adLandingPage.php'); $insertSQL = "INSERT …

Member Avatar for eyeda
0
119
Member Avatar for kc.smith.100

We are developing a mobile payment system which enable our Agents to collect cash (in person) from our members and update our online database via PHP/MySQL. Our Android Smartphone Agents CAN send an instant SMS receipt to the Member at the time of payment (despite lots of expert advice saying …

Member Avatar for LastMitch
0
274
Member Avatar for Behseini

I am trying to create a secure login app using php and MySQLi by following this tutorial: Link To Tutorial The tutorial is using a table(members) with 5 fields as:"id", "username","email","password",and "salt". but at the very beginning there is a an SQL INSERT function which is confusing me INSERT INTO …

Member Avatar for veedeoo
0
352
Member Avatar for dancks

Hey guys its me again: Basically everything on this page, at least the parts I'm able to test, are working, problem is addproduct.php is supposed to print errors when error checking the form and repopulate the data fields with the previously submitted data. I'm doing this by populating $_SESSION. addproduct.php: …

Member Avatar for gavinflud
0
417
Member Avatar for eman neercs

I've got 2 tables, basically this weeks stock list and last weeks. Each has around 25,000 SKU's. I'm trying to run a comparison programme to see where there are stock-outs i.e. SKU missing from the latest table. Table structures identical. Both about 20mb in size. Script is timing out so …

Member Avatar for jstfsklh211
0
146
Member Avatar for lewashby
Member Avatar for lewashby
0
87
Member Avatar for jstfsklh211

A simple way for using templates in php new pages can run server side code or pretty much do anything you would normally want to do on a web page First create your template. cleary there is way more that can be done with this, I've kept it simple for …

Member Avatar for jstfsklh211
0
429
Member Avatar for eburlea

Hi all. I am a beginner in Zend and I am wondering if there is any good book or tutorial for developing applications with Zend Framework, using json for data encoding and decoding and how to use jquery with Zend. Thanks.

Member Avatar for eburlea
0
237
Member Avatar for RRPowered

I have a slider that load all of my content at once. Into a div. Like so: external page.php $get_users = mysql_query("SELECT * FROM user WHERE id!='$user_id'"); while ($rows = mysql_fetch_assoc($get_users)) { $id = $rows['id']; $firstname = $rows['firstname']; $display_info .= ' <div class="f_outer" id="' . $id . '"> <div class="f_name …

Member Avatar for pritaeas
0
256
Member Avatar for hwoarang69

you can see the image that i upload to see what this code below is dowing. it make 3 cols and 6 rows table. echo" <div id = 'index_content_page_wrapper'> <br/> <br/> <table border='1px' cellspacing='0' cellpadding='0'> <tr width='1075' height='250px'> <td width='355'>image 1</td> <td width='355'>image 2</td> <td width='355'>image 3</td> </tr> <tr> <td>random …

Member Avatar for gon1387
0
2K
Member Avatar for hwoarang69

lets say i have $num1 = 0; $num2 = 1.00; $num3 = 1.2; is there a php function that will convert int or double/float to usa dollar currency? so the output should be $num1 => 0.00; $num2 => 1.00; //note this will stay same $num3 => 1.20; i found this …

Member Avatar for blocblue
0
171
Member Avatar for prakhartiwari

please help me here with this problem. dont knwo whats happning. problem is here. require_once ( JPATH_ROOT .DS.'includes'.DS.'mpkorn'.DS.'userauth_include.php' ); $mpkauth = new manage_user_component(); $authorized = $mpkauth->check_loggedin_access(JRequest::getVar( 'option' ));

Member Avatar for coreyavis
0
121

The End.