39,320 Topics
| |
I have a php file with the following code and i am trying to not display information after todays date. my incl_frontpageschedule.inc is listed below as well. im new to php and think i am close but confused at the moment any help would be great. <?php $today = date("F … | |
Hi I keep getting Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in and dont know how to fix. I have 1 table and need to display two colums awnser here is the code can any one olease point me in the right direction. <?php $result = mysql_query("SELECT … | |
I can't seem to figure out what I'm missing. After the end user selects one or more classes, they go to a page that runs a foreach statement to determine which discount to use on each class. But it doesn't seem to be adding the resulting total to the array, … | |
PHP, MySQL & ajax with data on default page default page is empty when page first load. how can i show data on default page? i mean when page first load i want to show all data then do the ajax after user select to filter Example is based off … | |
I would like to alter the example provided [URL="http://www.w3schools.com/php/php_ajax_database.asp"]here [/URL]so that there is a second dropdown input for 'Male/Female'. I know the example itself does not provide a 'Sex' field in the MySQL db, but let's just pretend it does. Furthermore, assume we have a new in out select for … | |
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? |
The End.