39,320 Topics

Member Avatar for
Member Avatar for azgold

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 …

Member Avatar for jmichae3
0
87
Member Avatar for ash55

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 …

Member Avatar for jmichae3
0
348
Member Avatar for turpentyne

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, …

Member Avatar for jmichae3
0
175
Member Avatar for johns1982

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 …

Member Avatar for johns1982
0
678
Member Avatar for ettypaldos

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 …

Member Avatar for johns1982
0
5K
Member Avatar for dyingatmidnight

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 …

Member Avatar for dyingatmidnight
0
172
Member Avatar for dschuett

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 …

Member Avatar for dschuett
0
128
Member Avatar for trektrak

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 …

Member Avatar for vibhaJ
0
182
Member Avatar for dyingatmidnight

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 …

Member Avatar for dyingatmidnight
0
182
Member Avatar for harshm027

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 …

Member Avatar for harshm027
0
108
Member Avatar for zagam2

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 …

Member Avatar for vaibhav_j
0
156
Member Avatar for harshm027

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 …

Member Avatar for harshm027
0
3K
Member Avatar for dwlamb

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. …

Member Avatar for dean8710
0
107
Member Avatar for divyakrishnan

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" /> …

Member Avatar for ko ko
0
2K
Member Avatar for PF2G

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 …

Member Avatar for jmichae3
0
176
Member Avatar for Elandir

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 …

Member Avatar for Elandir
0
172
Member Avatar for jamojo

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() + …

Member Avatar for veedeoo
0
1K
Member Avatar for afrogfx

**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 …

Member Avatar for Squidge
0
241
Member Avatar for Duki

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, …

Member Avatar for veedeoo
0
150
Member Avatar for ehpratah

hi i'm just wondering on how can i make all the type text in my textbox all uppercase using php? tnx Alot..

Member Avatar for designershiv
0
176
Member Avatar for richlacey

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 …

Member Avatar for richlacey
0
116
Member Avatar for technoknol

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.

Member Avatar for technoknol
0
2K
Member Avatar for vijayram

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 = …

Member Avatar for pritaeas
0
127
Member Avatar for phoenix_2000

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 …

Member Avatar for pritaeas
0
98
Member Avatar for collinskawere

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); …

Member Avatar for pzuurveen
0
350
Member Avatar for newbie1234

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 …

Member Avatar for phoenix_2000
0
90
Member Avatar for eoop.org

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 = …

Member Avatar for tyson567
0
207
Member Avatar for prvnkmr449

<?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 …

Member Avatar for Szabi Zsoldos
0
418
Member Avatar for jamojo

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 …

Member Avatar for diafol
0
111
Member Avatar for daniel36

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?

Member Avatar for TrustyTony
0
112

The End.