39,316 Topics

Member Avatar for
Member Avatar for shaqib

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

Member Avatar for dinhunzvi
0
458
Member Avatar for Aser Gado

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 …

Member Avatar for Aser Gado
0
132
Member Avatar for RazorRamon

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

Member Avatar for minitauros
0
280
Member Avatar for refresher

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

Member Avatar for minitauros
0
3K
Member Avatar for ankitsuhail

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 …

Member Avatar for mani-hellboy
-1
192
Member Avatar for tibormarias

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

Member Avatar for broj1
0
176
Member Avatar for zrony

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 …

Member Avatar for pzuurveen
0
83
Member Avatar for davy_yg

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

Member Avatar for pritaeas
0
145
Member Avatar for nova37

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

Member Avatar for nova37
0
298
Member Avatar for kamilacbe

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

Member Avatar for kamilacbe
0
113
Member Avatar for sidra 100

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 …

Member Avatar for charlybones
0
169
Member Avatar for anthonyjpv

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 …

Member Avatar for baig772
0
90
Member Avatar for rudevils

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.

Member Avatar for zwieciu
0
224
Member Avatar for tahirkhanafridi

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 …

Member Avatar for tahirkhanafridi
0
133
Member Avatar for issaru07

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 …

Member Avatar for diafol
0
166
Member Avatar for issaru07

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]

Member Avatar for issaru07
0
146
Member Avatar for riseguim

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; } // …

Member Avatar for riseguim
0
4K
Member Avatar for Z33shan

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 …

Member Avatar for pritaeas
0
138
Member Avatar for Warl30ck

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

Member Avatar for dos_killer
0
112
Member Avatar for riseguim

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 …

Member Avatar for riseguim
0
692
Member Avatar for davy_yg

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 …

Member Avatar for pritaeas
0
475
Member Avatar for wwefriend

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

Member Avatar for cereal
0
88
Member Avatar for vijaykavin10

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

Member Avatar for pritaeas
0
161
Member Avatar for zrony

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

Member Avatar for cereal
0
84
Member Avatar for azegurb

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 …

Member Avatar for azegurb
0
231
Member Avatar for Arjun_Sarankulu

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 …

Member Avatar for pritaeas
0
84
Member Avatar for Baburhytha

this is my code please find the error and reply me. thanks <?php session_start(); ob_start(); //print_r($_REQUEST); //print_r($_SESSION); error_reporting(0); include("includes/conn.php"); header('Content-Language: en-us'); header('Content-Type: text/html; charset=utf-8'); if($_POST['opt']=='logout'){ $_SESSION['username'] == ""; session_unset(); session_destroy(); //require_once("login.php"); } // echo $_FILES["logo"]['name']; //if($opt=='Create') include("includes/conn.php"); /* $opt_multiple = $_REQUEST['opt_multiple']; foreach($opt_multiple as $key => $value){ $b.= $value . ","; …

Member Avatar for pritaeas
0
1K
Member Avatar for anthonyjpv

Database query failed: 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 '' at line 3 [CODE]<?php ob_start(); require_once("includes/connection.php"); include_once("includes/header.php"); //get category id according to selected record $category_id = $_GET['cat_id']; //fetch data to populate …

Member Avatar for baig772
0
85
Member Avatar for RazorRamon

I've been looking to secure a site that has many queries involved. I've always known about mysql real escape string for a while but recently i ran across prepared statements. I had a few questions about them. Is it a good idea to use both? is this over kill? When …

Member Avatar for diafol
0
158
Member Avatar for Joe34

I'm trying to simply match these letters using php, but it's kind-of a complex matching formula... First, I have two arrays and one string. The arrays contain letters and the string is a near match of those letters. $a - [Array] Must be <= 7 $b - [Array] Must be …

Member Avatar for cereal
0
241

The End.