39,326 Topics

Member Avatar for
Member Avatar for axymak

Thanks you all in advance. I want to make a website showing the result of exams that are conducted in India. I want the user to enter his/her Roll Number in the form created at my website and as he/she press enter. His/her results should be displayed on the page. …

Member Avatar for veedeoo
0
1K
Member Avatar for joshmac

I am getting the error message "Invalid argument supplied for foreach()". I can't see to figure out what. Below is my query. Is there something I'm missing? Thanks public function editRole($id) { $q = $this->_db->query("SELECT * FROM `" . TP . "roles` WHERE `ID` = '" . floatval($id) . "' …

Member Avatar for pritaeas
0
199
Member Avatar for pritaeas

Below is a documented code example showing how to use the SQLite3 class to connect and query your database (and check for errors). IMHO using PDO is a better alternative, as this extension uses mixed technology in a non-standard way (objects, arrays and exceptions). If there are any questions let …

2
4K
Member Avatar for Buppy

Hello, I have a website with an average hourly homepage visit of ~150, however, in the last day it suddenly jumped up to over 1000 visits per hour. Only the homepage is visited. How to determine what is causing the activity and should I be concerned? Thanks

Member Avatar for Atli
0
67
Member Avatar for showman13

I was having issues getting this working 2 years ago and through posting in here, got it resolved... Now I have another related question to the same rewrite code... I haven't ever run into this issue til now, so didn't realize it existed... I need the rewrite rule to be …

Member Avatar for showman13
0
163
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
425
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
529
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
110
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
326
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
250
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
196
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
82
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
170
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
409
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
353
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
418
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

The End.