39,320 Topics
| |
Hey guys, Was really fed up with this problem .please check it out. I have a PHP page which calls and retrieves a text from other PHP page. Now using the Normal textarea element the value is showing in the textarea. Now I wanted that text area to be as … | |
guys,,need help :( I cannot upload file using this script [CODE]<?php if($_FILES["zip_file"]["name"]) { $filename = $_FILES["zip_file"]["name"]; $source = $_FILES["zip_file"]["tmp_name"]; $type = $_FILES["zip_file"]["type"]; $name = explode(".", $filename); $accepted_types = array('application/zip', 'application/x-zip', 'application/x-zip-compressed', 'application/octet-stream', 'multipart/x-zip', 'application/x-compressed'); foreach($accepted_types as $mime_type) { if($mime_type == $type) { $okay = true; break; } } $continue = … | |
Hello there.Looks.I want to know how exactly to insert an image from the controller itself. I actually want to use this in my application controller where admin can download user applications. I try to get it done using $this->Html->image() . but it said something about call to a non object … | |
I'm doing a bidding listing page and I wanted to add a countdown timer to it. So, I have this Javascript countdown function which is modified from [url]http://keith-wood.name/countdownBasics.html[/url]. I'm supposed to pass the ending time to variable t. I have no problems passing in a direct value such as 2011:11:11 … | |
Hi guys, i've started to write some website and bumped into this problem.. have tried all the solutions on the forum that i could search for.. E.g clear any blanks on the main_left.php (code shown below) no echo on main_left.php and also ob_start(); none of it works... Warning: Cannot modify … | |
I'm currently working on launching a venture website at strongislandgamers.li/index.php and I"m working on making a very detailed registration form which needs to mesh well with the K2 login addon, and also I'm using CiviCRM in the backend to handle membership logistics. Additionally - the biggest stumbling block to this … | |
How can I make it so when I e-mail for e.g. [email]news@example.com[/email] text/information of the e-mail is written into a mysql table? It would extract the contents of a new email and write them into MySQL table. This table manages news articles on the website, so in the MySQL columns: … | |
Hi, Can anyone please tell me whats wrong with this piece of code? I am trying to insert email (user name)in the database. This thing is now getting on my nerves. [CODE] if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) { $insertSQL = sprintf("INSERT INTO blog (title, specialization, message) VALUES (%s, %s, … | |
G'day everyone, I'm just wondering about what's actually the best option out of these PHP sessions(server-side) and JavaScript sessions(client-side)? If the server-side session is not stored on client's machine, where else would it be stored? Are there any pros and cons of each option? Thanks folks. | |
[CODE]<?php $target = "upload/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded"; } else { echo "Sorry, there was a problem uploading your file."; } ?> [/CODE] that's mean must create 'files' table? and 'target' is entity … | |
Hello everyone. I do not know where to post this but I think is it php related topic. Currently I am working on WordPress plugin. The problem I have is that I have a url "http://www.widgetel.com/sales/affiliatecode where affiliatecode is unique for every affiliate member. What I want to acomplish is … | |
Hi I understand the basics of concatenate, but then I saw this example and I am now confused! [CODE] $Update = "Update people set " . "permission_id = '" . $permission_id . "', " . "username = '" . $username . "', " . "forename = '" . $forename . … | |
Hi, I am building an application for my company and need to integrate outlook and Exchange server with the web application... It should be able to access outlook calender and make entries. Also should be able to send mails via outlook. Need a start Help | |
Greetings Forum Members, Let me Introduce myself. Hello I am Jay Kandari From India. I am a Student. I am basically interested in Web Development. Now I have started with PHP. Currently, I am building websites using scratch. Now it's time to jump to Advanced Development. so I started off … | |
I have to show records with checkbox in front of every row with pagination. If I check ALL checkbox then all checkboxes will select and if I go to next page then automatically all checkbox will be selected. As well as I can do process on selected records. How I … | |
I have this query, but the ordering by is not working. It should order by value, but doesn't react. you'll see what I mean in the code. [ICODE]<table class="pme-main"> <tr> <th class="pme-header">Bestemming</th> <th class="pme-header">Naam Klant</th> <th class="pme-header">Aantal Manden</th> <th class="pme-header">Aantal Duiven</th> <th class="pme-header">Naam Bestemmeling</th> </tr> <?php $con = mysql_connect("****","****","****"); if … | |
Again guys here is same problem. Please check this code. Everything is OK. But sql data does not show up. <?php /*Set to error level to development modes*/ ini_set("display_errors", 1); error_reporting(E_ALL); if ( isset($_POST['username'])) { $ret = add_to_database(); if (!$ret) { print "Error: Database error"; } else { print "Welcome … | |
Hello I need some advice (I'm not expecting code - Just want to know if it's possible / references) Basically, I want to create a class that I can check if the email has been submitted AND also, if it's formatted right (e.g. does it contain a @ but also … | |
Hi Everyone, I am trying to test a simple email validation form using $_SERVER['PHP_SELF'] at the same page as [CODE] <?php if (isset($_POST['submitted'])) { $email = $_POST['email']; $result = filter_var($email, FILTER_VALIDATE_EMAIL) ; if($result) { echo "Valid email address."; } else { echo "Invalid email address."; } } ?> <html> <body> … | |
| whats usage for Output::GetVar in php, how it ll be usefull, Pls explain, thanks |
Hello, I've been poking around for a while now and I can't seem to find a way to do this. I'm fairly new to php, and I'm looking for a little help. What I am looking for is very similar to [URL="http://www.daniweb.com/web-development/php/threads/316912"]http://www.daniweb.com/web-development/php/threads/316912[/URL]. 1. User hits "unsubscribe" link in an e-mail … | |
Hi all, I came across a new issue in curl request with php. I need to fetch a document from other host [url]http://xyz.com/content.html[/url]. I cannot view that page without login credentials. So I have given [url]http://user:pwd@xyz.com/content.html?get1=x&get2=y[/url]. I can send a successfull curl request to that page in a command line … | |
I want to make a rating system that uses ajax for the rating. i use php and call all of the images, then i want to use ajax to post all the votes to a php script. However, i dont know how to get the elements. I want to be … | |
Hi, DaniWeb I'm doing a website for a music school and i have a table with all the instruments: [img]http://img195.imageshack.us/img195/427/50490685.jpg[/img] And i want to click in one image and it goes to other page where's the instrument program. I mean, each image has 1 page with its own program. | |
Hey guys, im working on a website and i need to design the database so that a user can follow another user and it will be easy to figure out the number of people i follow and the number of followers i have. I'm using mongoDb btw. [URL="http://www.mongodb.org/"]http://www.mongodb.org/[/URL] can someone … | |
Hi, My name is stefan and I've been trying to develop a php/mysql based CRM for private use. I've stumbled upon a problem a few days ago and I just can't figure it out, so if you could help me, I'd really appreciate it. The problem is the following: I … | |
I need to create a form where you have two possible finishing pages dependent on the answers you give in the form. For instance if you have the question: Do you like sweets? And have the two possible outcomes Yes or No The answer yes takes you to a yesilikesweets.php … | |
hi, i want to load data after loading related php page. i used ajax and even jquery. jquery was not sure this is jquery code [CODE]$.post('<?php bloginfo('template_url'); ?>/bk_page/schedule_check.php', "", function(data) { $("#fieldsetConfirm").html(data);}) [/CODE] but this and when i was using ajax it changes data, but unfortunately, the pay now button … | |
Hi, WebForums I'm doing a login system, and it's working, but i'm having difficults in understand where does the "logout" go, other thing is that i want to improve the validation system - if someone could give me some tips. Here are the codes i'm using login form, "index.php": [CODE] … |
The End.