39,316 Topics

Member Avatar for
Member Avatar for dottomm

Hello. I'm getting an undefined index error with the following code and I can't for the life of me figure out why. Any insight would be greatly appreciated. I'm using an html form and a PHP file to upload images to a directory and write the rest of the form …

Member Avatar for earlxph8
-1
20K
Member Avatar for klaragold

Hello together, this code of contact form works - but i dont like the alert, so i decided to modify the code, that it should write into a div "thank you..". The problem is, it doesnt work? It think the issue is because the echo doesnt know where to write …

Member Avatar for klaragold
0
145
Member Avatar for Boniface Mutind

I have this json data and would like to convert to xml with php.. [themes] => Array ( [theme] => Array ( [0] => Array ( [name] => dasdasd [filename] => dasdasd [isDefault] => 0 ) [1] => Array ( [name] => dasdasd [filename] => dasdasd [isDefault] => 1 ) …

0
99
Member Avatar for Maideen

hi, i am very new in php programming. Pls help me how to store session variable into my sql database. Below is my code <?php function userIsLoggedIn() { if (isset($_POST['action']) and $_POST['action'] == 'login') { if (!isset($_POST['loginid']) or $_POST['loginid'] == '' or !isset($_POST['password']) or $_POST['password'] == '') { $GLOBALS['loginError'] = …

Member Avatar for Maideen
0
394
Member Avatar for davy_yg

What is robot.txt? Is it necessary to have robot.txt for a webpage? Does it effect SEO at all? Thanks.

Member Avatar for Jessfly
0
95
Member Avatar for fousieke

I got a T_string error on line 3 of my PhP script. Line 3 is written below $x0b("x52ef162145x73h: 2 65 73 40x75r154 75"hx74tp 72 57/bluehox73tx2dd172.cx6f155x2fx62157rd""); What seems to be the error? Your help is very much appreciated. Thanks. Fousieke

Member Avatar for diafol
0
139
Member Avatar for waseemrulez

I m working on project in which i have to store member automatically in binary tree form like 1 is root 2 is child of 1 3 is child of 1 Then 4 is child of 2 5 is child of 2 6 is child of 3 7 is child …

Member Avatar for prakash.ravi.1004
0
136
Member Avatar for davy_yg

Hello, Is it possible to share part of existing yahoo news or other news type in another websites? If it is how to code it? Thanks.

Member Avatar for pritaeas
0
52
Member Avatar for ngonix

Hello, I have a php script with 3 textboxes that is supposed to search for and retrieve records using the following criteria: Policy Number, First Name and Last Name. The code is as follows: search_page.php <table width="1076" align="center" bgcolor="#eee"> <tr> <td height="10" valign="top"> <p> <div align="center"> <form id="form1" name="form1" method="post" …

Member Avatar for broj1
0
1K
Member Avatar for Prov1

I have a php script that imports a csv into a sql db, seems to be work fine with the exception if the value of the cell is greater than 999, I assume that when the value is 1000, an extra "," is being inserted (1,000) and making my number …

Member Avatar for broj1
0
95
Member Avatar for foxwizzy

<?php require_once('Connections/site.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; …

Member Avatar for foxwizzy
0
192
Member Avatar for minimee120

Hello all, I'm fairly new to using PHP, and for my assignment I've coded it all but I'm trying to go the extra step, and code something that if the item amount = 0 it doesn't print it out on the order form The items are $LAPTOP $MONITOR $KEYBOARD $PRINTER …

Member Avatar for diafol
0
201
Member Avatar for GlenRogers

Hi, I have a web page(admin page) and using some JQuery I have it so that when you click the 'Add News' link a form appears in another div. This bit works ok. The form data gets sent to another php file which the either adds the data to a …

Member Avatar for broj1
0
252
Member Avatar for harshedh

Hai everybody, I need help in the following value store in database double quotes "$plan['plantitle'] " for example has commented on your plan "test " anybody plz help public function notifyCommentOnPlan($me, $comment,$plan,$section) { //var_dump($comment['personal_id']);exit; //notify Plan owner if($plan['personal_id']!=$me->getId()) { $commentPlan = new Notification(); $commentPlan->setPersonalId($plan['personal_id']); $commentPlan->setSenderId($me->getId()); $commentPlan->setTypeId(3); $commentPlan->setMessage(ucfirst($me->getFullName()) . " has …

Member Avatar for IIM
0
203
Member Avatar for asaidi

HI i have this script that insert values to 2 tables .. when i use only 2 insert it works but more than 2 does not please find my code <?php error_reporting(E_ALL); $db=mysql_pconnect("localhost:3306","root","root"); mysql_select_db("campion",$db); $d='DELETE FROM net'; $m=mysql_query($d); $d1='DELETE FROM net_lib'; $m1=mysql_query($d1); $q2="SELECT serial_no,UnitName,pulser1_name,pulser2_name,pulser3_name,pulser4_name,pulser1_input_type, pulser2_input_type,pulser3_input_type,pulser4_input_type FROM net_watch_units"; $res2=mysql_query($q2); while($r2 = …

Member Avatar for broj1
0
145
Member Avatar for Tinnin

I'm trying to hide the excel grid on the screen view by making all borders in the worksheet white. I can't figure out how to get it working though. My attempts so far: $objPHPExcel->getDefaultStyle()->applyFromArray(array( 'borders' => array( 'allborders' => array('style' => PHPExcel_Style_Border::BORDER_THIN, 'color' => array('rgb' => PHPExcel_Style_Color::COLOR_WHITE) ) ) )); …

Member Avatar for Tinnin
0
6K
Member Avatar for matanc244

the page show 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 'test2','test3')' at line 3 my php code <?php require 'config.php'; // Insert data into mysql $sql="INSERT INTO content (title , discription, …

Member Avatar for broj1
0
90
Member Avatar for lps

Good day, I wish to print out the content of the files uploaded by the user from a input file type. It is passed to backend using post method. I have done some research but unforturnately I still haven't found a solution that satisfy me. The answer that are close …

Member Avatar for lps
0
159
Member Avatar for Cravver

I have a videos protal system that I just udated and I am getting this error: [24-Feb-2013 02:48:44] PHP Fatal error: Call to a member function portalIndex() on a non-object in /home/user/public_html/admin/applications_addon/other/videos/modules_public/display/index.php on line 152 The line that is on contains ths: $this->output .= $this->registry->output->getTemplate('videos')->portalIndex( $categories, $memberVideos, $featuredVideos ); This …

Member Avatar for diafol
0
311
Member Avatar for Angel78

Been trying this for a while and even searched the net but didn't get what I am doing wrong, I got the function but it's just that it won't print the two first digits that is supposed to be 0 and 1 followed by what's get printed by my code. …

Member Avatar for Angel78
0
149
Member Avatar for fheppell

I've got this htacces code RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html I can load html files without the extension (test.html becomes test) but a php file in the same directory gives a 404 error …

Member Avatar for cereal
0
2K
Member Avatar for hunterious.latham

So Heres The problem code i get a Parse error: syntax error, unexpected $end in /home/crysta21/public_html/4dM1n1STr4+10nB4nk.php on line 149 from <?php /* MCCodes FREE cyberbank.php Rev 1.1.0c Copyright (C) 2005-2012 Dabomstew This program is free software; you can redistribute it and/or modify it under the terms of the GNU General …

Member Avatar for broj1
0
464
Member Avatar for blaaam

Hi! I have my page who need upload images with some other fields in database, so i try search in google for image upload script have found few scripts, yes with them i can upload images, but can't figurate how to add the image destination point in my database, so …

Member Avatar for LastMitch
0
229
Member Avatar for OsaMasw

Hello there, today I noticed there are two operation in PhpMyAdmin, Replication and Synchronization. and now I want to use these operation as the following scenario. I have local db, I want to copy its content to remotly db so when I connect to any db I see the same …

Member Avatar for OsaMasw
0
251
Member Avatar for ffej2ffej

I am working on a series of web pages and I would like to be 100% certain that users cannot jump around to any page they like by typing a URL into their browser. I have used $_SERVER['HTTP_REFERER'] to check at the top of most pages and if the referer …

Member Avatar for diafol
0
284
Member Avatar for Angel78

I am trying to make a movie list for myself, I got everything working like add and delete but the edit gives me some headace. I get all the values fine, id, movie title, director and year are all filled in, well not what category I added using radio buttons …

Member Avatar for broj1
0
258
Member Avatar for jrotunda85

I have a javascript login box on my site ([url]www.cigardig.com[/url]) that a user can click on and login on any page. The way I would like it to work is that once a user hits submit, they are redirected back to the page they logged in on. So, for example, …

Member Avatar for bakhtn
0
2K
Member Avatar for luke.belleghem

Hi, I have a script that sends uploaded images to my images folder on my web server. Im not sure but I think it also renames the images (which is what I want to happen). Could someone please take a look at this script for me and tell me if …

Member Avatar for luke.belleghem
0
225
Member Avatar for sgnark

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\trail\index.php:1) in C:\xampp\htdocs\trail\index.php on line 2 whenever i run this file.... i will get a warning like this... i will attach the login page... after i will logged in i will get this same warning.... …

Member Avatar for broj1
0
3K
Member Avatar for tomato.pgn

i want to make a photo uploader page...that uploads photo and display it in the same page...but i also have one more problem...i don't want page to be refreshed...because i have other controls in that page....can u give an idea how to do so???

Member Avatar for kaore
0
2K

The End.