39,388 Topics
![]() | |
Hi there, I'm trying to create a button that toggles an sql query. I have a navigation bar with certain elements hidden by the admin, the admin can preview the page and there's a toggle button to hide or show the items that are marked as hidden. $sql = "select … | |
I have an application that I wrote that allows users to upload files (pictures or PDFs). I am using IIS 6 and php 5.4. The problem I am having is that it seems like file uploads are getting cached somehow. For example, if I upload the same file over and … | |
Hello guys, I tought this is simple at a very 1st place... but I didn't manage to do it .. Anyone of you can give me an idea on how to do this... I've created a web apps that required authentication. and yeah ... oh the user setting section I … | |
Hi there, so my site has a public side and an admin side, the admin side which requires a login. The used id is stored in a session variable to limit access to certain features based on the number. In the admin side a user and show or hide pages … | |
Hi, How to pass an array to a form which is above the part where the array is created I have a php script with html in it. The page is divided into blocks using div tags. There is a form in a div tag which is at the top … | |
Hi I need to do in wordpress, when we click on readmore post option then post will open in a popup window , (show full post in popup or show only after readmore link) Can some one give me any plugin for this or any code or guide line..! thanks … | |
Hi, I am designing a system wherein a student can search projects based on technology, project type, location etc etc. The search form goes like this :- Project Type - HTML Select Option - Example:- Automobile, Manufacturing, Marketing, Communication Technology - Text Input Type - Example:- HTML, CSS, Java Starting … | |
I am looking for a method with one or more php functions for manipulating form textarea data. I want to clean it up by indenting it and wrapping it after a certain length with EOL but not necessarily html <br> or <br /> before it is inserted in My database. … | |
Hi... I want to display associative using variable as its key value. I used the following script. But it is not functioning. <body> <?php if(isset($_POST['st'])) { while ($item = current($_POST)) { echo $_POST[$key]; next($_POST); } } ?> <form id="form1" name="form1" method="post" action="mysql_inj.php"> <p> <label for="textfield"></label> <input type="text" name="t1" id="textfield" /> … | |
Hi, i'm using a javascript so i can do a messagebox confirmation, and then it goes to a .php where is the delete sql. But is not working: <!----------------------------------------------> <script language="JavaScript"> function confirmBox(id) { if (confirm("Tem a certeza que pretende eliminar este utilizador? ")) { location.href="remover_user.php"; } else { return … ![]() | |
Hello there! I've been trying to import data from csv file to remote postgre database with no luck. Locally i can do it with simple COPY query, but that only works because i'm superuser. \COPY command also works when i run it in psql. So the question is: how can … | |
Hello everyone, I am trying to play a HTML5 Video using a MP4 file hosted in Amazon S3. I found a file called S3.php and this is the method that I am using public static function getAuthenticatedURL($bucket, $uri, $lifetime, $hostBucket = false, $https = true) { $expires = time() + … | |
**can help me please .. when i need to remove MAX_SIZE from my code and $dir='upload'; because function create thumbnail in images folder Nd i think error in this code if(move_uploaded_file($t_name,$dir."/".$name)) {** <?php //define a maxim size for the uploaded images define ("MAX_SIZE","1000"); // define the width and height for … | |
Hey everyone, I'm pretty new to web design in general, so I'm not really sure how to get started with this. I have a wordpress site that I would like to be able to manage user profiles on. The built in account management stuff works great for regular logon/off sessions, … | |
hi i'm just wondering on how can i make all the type text in my textbox all uppercase using php? tnx Alot.. | |
Hi there guys, I wonder if you could help. I have a small issue when using the below code with certain browsers mainly with the echo image part. at the moment the code checks to see if there is an image name in the field and then appends to the … | |
hello there, i want to make my web application to desktop application. My application is in php so i want to create a exe file from php. is there any way ? thanks. | |
Hi everybody, i created ajax uploader.what is the problem in my code. upload file failed message display. anybody,plz help me. This is the my action file. class pictureActions extends sfActions { /** * This function may update later when plugin is used. */ public function executeUpload(sfWebRequest $request) { $planbook_id = … | |
Hello, For my current project i'm working with a lot of nested arrays and objects. i'd like to be able to see all their values just as vardump does, but that function doesn't go as deep as i'd like. I already tried the krumo library, but it didn't show me … | |
am getting an error that "Notice: Undefined variable: new_string in C:\wamp\www\plus256 beta\search.p". someone help me figure out wat's wrong coz am goin nuts. <?php include 'header.php'; echo '<div align="center">'; include('class.stemmer.inc'); include('cleaner.php'); include('connect.php'); if(isset($_POST['submit'])){ $search = $_POST['search']; $stemmer = new Stemmer; $stemmed_string = $stemmer->stem($search); $clean_string = new cleaner(); $stemmed_string = $clean_string->parseString($stemmed_string); … | |
i made some pages. When i am running on xammp server, its working fine, every form gets submits and i can see data in database. After that i upload on net webserver, here page showing is ok. But when i am submitting the page than data is not comming in … | |
Hi, i am getting this error for an email activation function. can someone help me removing this error message and make it work? ## Error: ## Warning: mysql_result() expects parameter 1 to be resource, boolean given in /home/prevpxmj/public_html/core/functions/users.php on line 6 ## Code: ## <?php function activate($email, $email_code){ $email = … | |
<?php session_start(); if(!isset($_SESSION['userid'])) { print '<script type="text/javascript">'; print 'alert("Login to submit resume.")'; print '</script>'; header('location:login.html'); }?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> i try every thing still im getting the same problem Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/royal/public_html/submitresume.php:1) in /home/royal/public_html/submitresume.php on line 2 … | |
Hello everyone, can you please help me regarding on converting duration to milliseconds. I have a code below working but need to include the hours. I do not know what is the best practice regarding this but please advise. Thanks in advance. list($get_minutes, $get_seconds) = explode(':', '1:27:04'); $minutes = $get_minutes … ![]() | |
Can any body provide me countdown timer script similar to [Website](http://www.groupclone.net/) .I am searching this type of timer from 3 days.Please help me? | |
Hi there, I got the following challenge. I have a site that is hosted on a windows 2010 server and i am trying to get the website to send emails. The site runs on Apache 2.2.9, PHP 5.2.6 and we set it up to run on port 6000. I have … | |
header is not working in iframe tag of html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <iframe src="blog3.php" frameborder="0" width="100%" height="600px" scrolling="yes" ></iframe> </body> </html> and at blog3.php there is a an header command <? ob_start(); ?> … ![]() | |
I'm trying to upload an Image to PHP. The most common method I found out to do this was using FORM/POST; But that doesn't help me for what I am about to do. What I actually am trying to do is upload an image to PHP, the PHP Script will … | |
I'm pretty sure this is done with php, but have no idea how to do it! I built a simple website for a friend that owns a reptile shop. But I need to be able to sort it so that he can change/update his own stock list. The stoock list … | |
Hi, Let me explain with an example. I have a postcode `NW1 5LR` and its `LATITUDE:51.546069024064 LONGITUDE:-0.235949008191785` coming from user entry. I also have many other postcodes and their Latitide&Longitide values in database. What formula should I use to get only those postcodes which are in 1 mil away maximum? … |
The End.