39,326 Topics

Member Avatar for
Member Avatar for PrettyBird

Right, first of all I'm new to PHP and I was trying if I could update information in table via a form. So here's the problem: I was unable to UPDATE my existing data in a table through a form using this code: $updateFN = "UPDATE person SET firstName='$_POST[updateFN]' WHERE …

Member Avatar for phorce
0
264
Member Avatar for yachile

hi, i have a problem in login form, whene i try to see if it works, but there is an error, so hope if you can help me and thx ;) [COLOR="Red"]Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\test\login.php on line 11 Username or password[/COLOR] [CODE]<?php …

Member Avatar for yachile
0
133
Member Avatar for Alex12345

I would like to do something rather complicated for a type of classifieds site. Basically, after a user creates a post in a certain category, that category is added to an SQL table. Let's assume the category is called "Books." I want the title of the user's post to be …

Member Avatar for phorce
0
97
Member Avatar for anon0

Hi all, I installed Ubuntu Server with the LAMP package and there is behavior I don't understand. If I access the web server by its local IP, my browser will display the index.html file located at /var/www/index.html, and PHP apparently works. But if I try to access it over the …

Member Avatar for fobos
0
1K
Member Avatar for tgr0ss83

[url]http://www.iso-ne.com/markets/hrly_data/selectHourlyLMP.do[/url] I'm trying to parse a CSV generated from the above link. From what i gather the link is : [url]http://www.iso-ne.com/markets/hrly_data/selectHourlyLMP.do?locationType=HUB&node=4000&startDate=12%2F20%2F2011&endDate=12%2F20%2F2011[/url] My problem is it seems half the tiem it downloads, half the time it doesn't, almost as if it gets cached in my system. Is there a way to …

Member Avatar for tgr0ss83
0
88
Member Avatar for shamsidah

[CODE]<form method="POST" action="prosesMultiple.php"> <?php include 'connection.php'; $sql="SELECT defect_code,totalDaily FROM grandTotal ORDER BY totalDaily DESC LIMIT 10 "; $row = mysql_query ($sql); while ($check=mysql_fetch_array($row)){?> <input type="checkbox" name="defect_code[]" id="defect_code[]" value="<?php echo $check["defect_code"];?>" /> <?php echo $check["defect_code"];?> - <?php echo $check["totalDaily"]; ?> <input name="text" name="totalDaily[]" id="totalDaily[]" type="hidden" value="<?php echo $check["totalDaily"]; ?>"><br/> <?php } …

Member Avatar for Jay-Kandari
0
103
Member Avatar for accra

[ICODE]I have two date fields in my db, one is a CURRENT_TIMESTAMP and the other Date. I use a date picker to input the date into the date fields in my form. All other date in the form is input into my db, except the two date fields. But when …

Member Avatar for it386
0
125
Member Avatar for daniel36

I am working on a project which needs to expire session after 24hr how it is possible.

Member Avatar for daniel36
0
97
Member Avatar for Jay-Kandari

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 …

0
178
Member Avatar for jcarbillon

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

Member Avatar for jcarbillon
0
106
Member Avatar for nizam27391

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 …

Member Avatar for nizam27391
0
98
Member Avatar for bisibee82

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 …

Member Avatar for diafol
0
483
Member Avatar for sptham30

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 …

Member Avatar for diafol
0
197
Member Avatar for theonlylos

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 …

0
80
Member Avatar for IanArcher

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

Member Avatar for fobos
0
882
Member Avatar for BilalAKhan

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

Member Avatar for fobos
0
197
Member Avatar for rotten69

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.

Member Avatar for phorce
0
161
Member Avatar for missumissu

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

Member Avatar for qazplm114477
0
131
Member Avatar for reygcalantaol

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 …

0
100
Member Avatar for manc1976

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

Member Avatar for diafol
0
87
Member Avatar for nam.aggarwal

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

Member Avatar for cereal
0
86
Member Avatar for Jay-Kandari

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 …

Member Avatar for phorce
1
248
Member Avatar for jacob21

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 …

Member Avatar for pritaeas
0
22
Member Avatar for Stickie

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 …

Member Avatar for Stickie
0
405
Member Avatar for ayub05

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 …

Member Avatar for phorce
0
333
Member Avatar for phorce

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 …

Member Avatar for pritaeas
0
84
Member Avatar for Behseini

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

Member Avatar for diafol
0
848
Member Avatar for harintfs

whats usage for Output::GetVar in php, how it ll be usefull, Pls explain, thanks

Member Avatar for pritaeas
0
96
Member Avatar for navachaitanya
Member Avatar for melbahtoast

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 …

Member Avatar for simplypixie
0
70

The End.