39,323 Topics
| |
I got this problem when open this files,how to solve this problem? Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/indomari/public_html/administrator/includes/connect.php on line 64 this code locate at line 64 <?php set_time_limit(0); if (isset($_POST["scan"])) { $url = $_POST['traget']; echo "<br /><span class='start'>Scanning ".$url."<br /><br /></span>"; echo "ReSulT:<br … | |
So I am trying to create a blog in php and mysql. I am not sure how this is going to work out there. Just let me know if i am on the right track with the DB. Let's say i have database called blog with table user and posts. … | |
This php code updates a database entry. The form consists of a checkbox (name = download) and a hidden field so I can check it has actually been sumbitted(name = updated). When I run this code it gives me the success message but the database remains unchanged. Why is this? … | |
I have set up a cookie in JavaScript to store the change to the stylesheet. The cookie is loaded using <body onload="set_style_from_cookie()"> This cookie was working fine until I set a session cookie in PHP to verity if a user was logged in session_start(); if(isset($_SESSION['username'])) { $user = $_SESSION['username']; } … | |
Hello all, This is my first site project using codeigniter. The frontend is all html and I am using codeigniter for the backend. Everything was working fine until I added the frontend files and modified my htaccess file to not redirect to index.php but instead to index.html. htaccess looks like … | |
I have a snippet of mysql which is filled in with two variables: SELECT `download` FROM `images` WHERE `owner_un`='$owner' AND `url`='$url' The `$url` variable comes directly from a URL variable. This input should only ever contain alphanumeric characters, if this helps. Thanks for any help | |
I've got a mysql query that should return a single cell SELECT `download` FROM `images` WHERE `owner_un`='$owner' AND `url`='$url' How would I echo the result of this? Thanks for any help | |
Hi people, Need some help in keeping query string values intact while moving across pages via pagination. Thing is that I'm fetching records from mysql table and displaying it in tabular format. Its like... I have a page "records.php" In phpmyadmin there is "userdetails" table with columns as...... first_name, last_name, … | |
Hello all, this might not be related to php (I don't know which forum I should post this topic) so I thought may be someone could help me out. How to edit pdf file ? Is there any specific software to edit adobe pdf file ? I have tried adobe … | |
Hi everyone i am installing opencart on my local server but it's showing error **Warning: CURL extension needs to be loaded for OpenCart to work!** i have already strated from php extention Php_Curl can any one help to me in this.. | |
hi all! i have here a code. <?php /** * Main.php */ include("include/session.php"); ?> <html> <head> <title>Export to Excel</title> </head> <body> <form action="saverec.php" method="post"> <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) { die('Could not connect: ' . … | |
Hi.. Any PHP code to display the IPaddress of all systems which are connected in a LAN ? Thanks in advance | |
Hi all, I have a very simple question, for many of you.. I need to write out a select list like this : From table pages, I need id and link to fill up the options in my select list. But I need to tjeck in another table, if there … | |
I have a contact form in a popup div. I want the contact form to redirect to the popup div with an error or a successful message when form is completed obviously depending if message was sent NOT A PAGE. Please can someone help me. <?php //set variable error var … | |
I am looking for input form that you can enter the data to submiyt into Mysql database. the form should have these conditions: Invoice: auto generate Date: date pickerfrom pop up calendar choose client from drop down list then option to add/remove rows rows would have: Auantity, Product(drop down), category(drop … | |
I have tried following code index.php <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>JQuery Popup Demo</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript"> function openOffersDialog(x) { $('#overlay').fadeIn('fast', function() { $(boxpopup).css('display','block'); $(boxpopup).animate({'left':'30%'},500); $('#content').html(x); }); } function closeOffersDialog(prospectElementID) { $(function($) { $(document).ready(function() { $('#' + prospectElementID).css('position','absolute'); $('#' + prospectElementID).animate({'left':'-100%'}, 500, function() … | |
i am working on a mobile verification code wher user can enter his email and his mobile number.then code has to be send to his mobile number,by that code user can login to site. how to achive this target. | |
| Hi I have some script that I have used for sometime so understand it is out of date code, but it works. I want to amend it so that it also checks a field user_type and on successful login directs each to a differnt page. The code at the moment … |
Hello. I am facing a challenge in passing a dynamic php variable to an SQL statement i wrote in Jaspersoft iReport. I downloaded the PHP-Jasperserver-integration library and i am managing to open a jrxml file i created in Jaspersoft and then using the libraries to open it in PDF format, … | |
Here, I have created a php mysql login page. I am a newbie so please also comment on my code too. I have this login page where after entering the correct data i am getting welcome "id" instead of "username". I want to know what i am doing wrong here. … | |
i need to update ADMIN COLUMN with $_SESSION variable. however, it does not seem to be working correctly. why? help me plz... require("conn.php"); $sql = "select * from pemohon where id='$_GET[id]';"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)) { $sn = $_SESSION['SESS_NAME']; $sql = "update pemohon set admin='$sn',status_key='2' where id='$_GET[id]';"; $result … | |
Hey, I just finished reading book "PHP Team Development" http://www.amazon.com/PHP-Team-Development-Samisa-Abeysinghe/dp/1847195067 and I can say its interesting read, especially should be interesting for project managers. It might look that there are not many technical things and its waste of time on one hand, but its easy read when you are not … | |
Hi, I am working on a code that dispatches airtime depending on a schedule that is specified. Now all works just fine. The only problem is that the code executes only once. To throw more light, here is how it is meant to work; 1. An administrator creates a schedule, … | |
this is link to code http://jsbin.com/ixupuk/4/edit when my form is loaded into browser OR refreshed, all fields are auto-submitted to mysql database.. i included at the bottom, an if(isset) statement that i couldnt get to work. thanx | |
Hi! I have a Zend project and I would like to implement a login form in the header of the site in such a way, that if a user is not logged in, he can use the site, but the form is always there, no matter what pages he access. … | |
i have stored some value into DB table and want to get them displayed on my form with a restriction that the column title in DB and the Value of the previous feild are same and only the cloumn rows are shown inthe following feild in the form....!!!! Cant Figure … | |
SO friends... i had a fight with this code.. please help :( <? ob_start(); ?> <?php // Make sure an ID was passed if(isset($_GET['id'])) { // Get the ID $id = intval($_GET['id']); // Make sure the ID is in fact a valid ID if($id <= 0) { die('The ID is … | |
Hi I have two button in my page One is 'search' and another is 'print' But i could not re direct and passing date to another page. code is working fine for search. But print I am blur of this. Pls help me how i can redirect the page by … | |
hi I tried to generate ageing reports in php. But I could not get result and even error. it is my code. Pls help me connection.inc.php try { $hostname = "server"; //host $dbname = "database"; //db name $username = "user"; // username like 'sa' $pw = "password"; // password for … | |
I accesed php info from cPanel .. php.ini said to be /etc/php5/php.ini but in the "etc" folder is nothing :( help... :( |
The End.