39,320 Topics
| |
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` … | |
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. | |
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 … | |
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 … | |
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 … | |
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 ); … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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]"); … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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' )); | |
For Security Concern, I am using mssql_execute(). I am not getting way to get the recordset return from procedure. Below is my sample code $query = mssql_init("USP_GET_ICIN_DATA",$mssql_link); mssql_bind($query, '@ICIN_NUMBERS',trim($icin_data), SQLVARCHAR, false); mssql_bind($query, '@FROMRECORDNUMBER', $start, SQLINT4, false); mssql_bind($query, '@LIMIT', $limit, SQLINT4, false); $result = mssql_execute($query); while ($row = mssql_fetch_assoc($result)) { $icin … | |
Hi guys... i want to delete data from datagrid in mysql...i have also done update query using same datagrid... but i m not able to delete data... my code is <script type="text/javascript"> $(document).ready(function () { // prepare the data var data = {}; var theme = 'classic'; var source = … | |
Hi, I have some issues on my website with my deeplinks Let me show you sample regarding this issues www.mywebsite.com/buy-online-tv.php www.mywebsite.com/buy-LCD-tv.php www.mywebsite.com/buy-cheap-tv.php www.mywebsite.com/affordable-tv.php etc.... Until here everything is fine but I got lots of visitor coming for Google and the vistor find my website and come from such URL www.mywebsite.com/buy-online-tv.php/buy-LCD-tv.php … |
The End.