39,320 Topics
| |
So I made a script to upload a file : [CODE]<html> <body> <form enctype="multipart/form-data" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> Choose a file to upload: <input name="uploaded_file" type="file" /> <input type="submit" value="Upload" /> </form> <?php include 'global.php'; //Check that we have a file if((!empty($_FILES["uploaded_file"])) && ($_FILES['uploaded_file']['error'] == 0)) { //Check … | |
After successfully creating a registering system I can't use the login system I've created, it always gives the error message I've set "Wrong Email or Password" although the values are right! The code for validating the login process: [CODE] <?php $con = mysql_connect("***","*****","****"); mysql_select_db("*****", $con); $emailin=$_POST['emailin']; $passwordin=$_POST['password']; $emailin = stripslashes($emailin); … | |
Hi all, i have taken from net script that it has curriying function which itself return function. But i dont understand why before [B]\$arg[/B] is added backslash. the same as on lines 10, 13, 19 and so on. [CODE]function add($a, $b) { return $a + $b; } $az=""; function _curry( … | |
Hello.. I'm the newbie one. I have the file in php. I cannot solving the notice about [COLOR="Red"]Notice: Undefined index: add_item1 in C:\xampp\htdocs\guideline\xmladd_evidence.php on line 44[/COLOR] How to solving that? here my code [CODE] <html> <font size="20" face="arial" color="black"> <center><b> Add item evidence </b></center><br><hr/> </font> <form ACTION="" METHOD="POST"> <select name='add_item1[]' … | |
hi, am getting the following error: Parse error: syntax error, unexpected T_STRING in C:\wamp\www\pro\Copy of procreate.php on line 268 but i am unable to find the error. here is my code <?php // Get values sent to page from user form input $space=$_POST['space']; $exten=$_POST['exten']; Echo "Writing file..."; $myFile = "$exten.cfg"; … | |
Hello, how's everyone? I have created a page with a form for registration and and another php to process the registration and create the rows in the database, but the processor comes with errors. here is the PHP file: [CODE]<?php include 'dbconnect.php'; mysql_query("INSERT INTO users (firstname, lastname, email, password) VALUES … | |
Ok over the last several weeks i've been building a website for fun. Its basically a forum site, with topics and comments. I use queries in their basic form. Now that i'm trying to protect my site I'm getting the impression that i have to rewrite all of my code. … | |
Does anyone would help me how dto update my shopping cart quantity please. here my php code function updateCart() { $cartId = $_POST['hidCartId']; $productId = $_POST['hidProductId']; $itemQty = $_POST['txtQty']; $numItem = count($itemQty); $numDeleted = 0; $notice = ''; for ($i = 0; $i < $itemQty; $i++) { $newQty = (int)$itemQty[$i]; … | |
hi i humbly need some help. I am a php developer but now I am learning asp.net with c# as it is a requirement of our company. I am familiar with the basics of c# and oops. The problem i am facing is that i learned how to retrieve values … | |
Hello everyone! I am having a problem. I receive an error below. Parse error: syntax error, unexpected ')', expecting '(' in /home/fundis/public_html/ww.incs/basics.php on line 27 Here is my 'basics.php'. [CODE] <?php session_start(); function __autoload($name) { require $name . '.php'; } function dbInit(){ if(isset($GLOBALS['db']))return $GLOBALS['db']; global $DBVARS; $db=new PDO('mysql:host='.$DBVARS['hostname'] .';dbname='.$DBVARS['db_name'], $DBVARS['username'], … | |
hello everybody i want to update my edit panel in which file uploader is include.i want that when i click on edit button of specific id then all control fetched their value from database but my fileupload not fetch value from database then after it i want to upload this … | |
Hi, I just installed wordpress custom themes to my wordpress page then this error appears when open the admin page. On top of the admin page. Why is it ? Warning: Cannot modify header information - headers already sent by (output started at /home/ocklaw5/public_html/new/wp-content/themes/ocklaw/functions.php:2) in /home/ocklaw5/public_html/new/wp-includes/functions.php on line 861 Warning: … | |
| [CODE] <?php // Duplicate entries remover from database // task :: load url check if more than 2 entries exists replace it with new entry session_start(); // no time limit set_time_limit(0); // connect to db include ("config.php"); // select data from database target woth and domain table $result = mysql_query( … |
Hii.. Am a C# and ASP.net fan..now have a plan of learning PHP..So experts can you help me out where to start .....i have dreamweaver and Xamp ..Is this good enough or do i need to go for anyother IDE like cakephp ..Zend etc....can anyone guide..... | |
hi n working with a code but m facing a problem of undefined index. i have seen it occurs due to unavailablity of data or like that but here i m declaring that data jst before its use. rest of variable are working correctly just SESS_dept is giving error plz … | |
I want to be able to insert and update 2 different tables at the same time heres the scenario: if i insert a new record, the it will create a primary key for me as auto increment then once that primary key is created, I want to use that to … | |
Hi all, glad to write here again, i need all your help :) Does anyone knows or have simple online booking system that can attach in a wordpress blog. This plugin let user choose check in date and check out date to check room availability. | |
Hello i m developing admin panel for my project i want to add new records when i fill out the form and hit the add button its redirect me a error message i dont know how to ride on this error please help thanks! The error is Insert failureColumn count … | |
i got this error when i trying to submit a form.. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order(firstname,lastname,email,address,city,postalcode,country,totalprice,paymen' at line 1 appreciate if you could assist me.. [CODE] $sql2= mysql_query("INSERT INTO … | |
i have to run 2 queries for inserting 2 different tables userorder table contains orderid , title order_details containts orderid, qty so how can i get orderid for my order_details? the code below donts seems able to get last orderid [CODE] $query = mysql_query("SELECT last_insert_id()"); list($oid)=mysql_fetch_row($query); [/CODE] | |
Hi guys, I simply need to add an exception to this directory listing coding so .php files aren't visible. Do any of you know how to do that? Thanks!! [CODE]<?php // open this directory $myDirectory = opendir("."); // get each entry while($entryName = readdir($myDirectory)) { $dirArray[] = $entryName; } // … | |
hello :) it's been more than 4 days, i had been searching for php client library for facebook app development. all libraries, that i find, are outdated, (not supported by facebook anymore) and i get "undefined function........" error. so where can i get the latest php client library for facebook … | |
I was working on this script which let's you upload and everything is logged in the database. I got this error, any help? Error :You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/home/a6771073/public_html/upload/img.png)' … | |
Hi guys, ok so here's the deal: currently I have this PHP code that allows someone to see every files that are in the directory. I would also like for them to be able to delete any files he wants. Here's my PHP code: [CODE] <?php // open this directory … | |
Hi I would like to create drop scroll show content, how to do so ? v Fiat Justitia Ruat Caelum Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer eros risus, vulputate vel iaculis vel, luctus ac arcu. Vestibulum metus ligula, dignissim nec viverra a, interdum ut magna. Donec dignissim … | |
hello everyone...I wan to add if else statement like for below code if the kilogram field input=0 then [CODE]'item_subtotal' => $item->item_qty * $item->item_price, 'item_total' => $item->item_qty * $item->item_price[/CODE] [CODE]$db_array = array( 'invoice_item_id' => $item->invoice_item_id, 'item_subtotal' => $item->item_qty * $item->kilogram * $item->item_price, 'item_tax' => '0.00', 'item_total' => $item->item_qty * $item->kilogram * … | |
Hi While i am using IMAP protocol to download mails from the Gmail.Some of the mails are skipped(Not downloaded) any ideas would be appreciated... | |
hello i want help all of you that i had made searching php page and my page working well.but i face a problem that when i search for example ssc recruitment in delhi then it not placed top after searching but it should be on top rank then after it( … | |
Hi all, I have taken from net chained select script. here is all PHP and Javascript files but i dont understand one thing there. index.php file [ICODE]<?php include('db.php'); include('func.php'); ?> <!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>Chained Select Boxes using … | |
I have developed the html Frame. Which contain two php pages First show the data in the table which is comming from database and refresh after 30sec and click on the tr it shows the data in the second frame as in graph(candle chart). Everything is working fine. But Problem … |
The End.