39,402 Topics

Member Avatar for
Member Avatar for AARTI SHRIVAS

the interviwever ask me one more question about soap in php can any budy tell me what is this i am really don't know about it?

Member Avatar for AARTI SHRIVAS
0
299
Member Avatar for danishbacker

How can i add expires header to images? i used the following in css file and php respectively [code] <?php -----------CSS------------------------------------------------------ ob_start ("ob_gzhandler"); header ("content-type: text/css; charset: UTF-8"); header ("cache-control: must-revalidate"); $offset = 48 * 60 * 60; $expire = "expires: " . gmdate ("D, d M Y H:i:s", time() …

Member Avatar for mlm2gether
0
3K
Member Avatar for majaheni.magagula

Hi everyone I'm new in Joomla 2.5, can you help me on transfering my database from the localhost to the server. I have up loaded all my joomla files and folders to the public_html folder in the server. When I export my database file through phpMyAdmin I see three files …

Member Avatar for LastMitch
0
210
Member Avatar for stacyjoseph

I am uploading a form with file and other inputs and all that is working fine. But the problem is that it is loading a new page i.e www.mywebsite.com/controller/function. My code :- <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> <script src="http://malsup.github.com/jquery.form.js"></script> <script type="text/javascript"> $(document).ready(function() { var options = { clearForm: true, resetForm: true …

Member Avatar for LastMitch
0
205
Member Avatar for newebmaster

I am redesigning a site in joomla, and moving it to new web host. The new site will be in Joomla 2.5, and the old site seems to be some version of Joomla 1.5 plus some home-made cms called netdocs. I am coming back to this after many years away. …

Member Avatar for JorgeM
0
933
Member Avatar for bhatehardika

Hello everyone, i want to create social forum in php and mysql.. can anyone suggest how to do this??

Member Avatar for diafol
0
189
Member Avatar for lewashby

When I click a link a simple HTML web form linked to a php file, the browser is downloading the PHP file rather than executuing it in the browser. Any dieas?

Member Avatar for broj1
0
154
Member Avatar for lotpb

<?php session_start(); $_SESSION['form'] = $_POST; ?> <?php if(isset($_POST['First'])) { echo htmlentities ($_POST['First']); }?> <?php */?> <tr valign="baseline"> <td nowrap="nowrap" align="right">Last Name:</td> <td><input type="text" name="Last_Name" id="Last_Name" autofocus value="<?php $_SESSION['form']['Last_Name'] ?>" placeholder="last name" size="32" /></td> </tr> <tr valign="baseline"> <td nowrap="nowrap" align="right">City:</td> <td><select name="LookupCity" id="LookupCity"> <option value="" <?php if (!(strcmp("", $_GET['City']))) {echo "selected=\"selected\"";} …

Member Avatar for broj1
0
484
Member Avatar for ukhostland

I have found myself well out of my depth, using a template to create a web site with both JS and PHP scripts. Perhaps someone here can help me? The single page website is accually finished and works well when viewed in a browser from local files. These have been …

Member Avatar for ukhostland
0
233
Member Avatar for ms.rhea

Hi.. I am using MPDF Library to convert my php page into a pdf format. I've displayed already the needed data from my database but my problem is that not all data in the row are being displayed in the pdf. I am having a hard time to display all …

Member Avatar for raghucse2010
0
3K
Member Avatar for McLaren

hello, I am stuck with the simple task. I want to run php script every 5 minutes (now trying to run every mionute for testing) I read that I have to run crontab -e and put commands. Somehow the file is having no commnds added, but as far as I …

Member Avatar for McLaren
0
267
Member Avatar for rubai

I want to store these submitted values. Can it be possible without database? using just array. I don't want to store values for a session. Just for long time unless deleted. <form id="form1" name="form1" method="post" action=""> <form id="form1" name="form1" method="post" action=""> <p> <label for="num1">Some text</label> <input type="text" name="num1" id="num1" /> …

Member Avatar for rubai
0
2K
Member Avatar for BrickZ28

Just looking for third set of eyes on this. I am getting this 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 'to, from, payload, amount, route, majcom, event, type, admin) VALUES ('', …

Member Avatar for ahmedhamdy
0
211
Member Avatar for daniel36

i am working on a project.In which I am displaying the transaction list.and if admin click on any of the row then the row will disappear and a new row with form to update that row will open with cancel button.Here admin can update or cancel .if he can cancel …

Member Avatar for AARTI SHRIVAS
0
99
Member Avatar for xjshiya

Hello. I have two tables, the itinerary table and location table. The itinerary table consists of all the itinerary: * A - B * B - A * B - C * C - B * C - A * A - C The user will select from the itinerary …

Member Avatar for xjshiya
0
219
Member Avatar for mogaka

I am looking for a universal system that can replicate/Synronize database schemas and changed data for mysql,sql server,Oracle or atleast mysql and postgresql. Our company has different branches each with its own local data but any changes in a local database is supposed to be replicated to the central database. …

Member Avatar for mogaka
0
122
Member Avatar for jLamp

Dear Friends, I've created a lit bit advanced web site(Online Library System). Before publishing it, now i wants to check its security level. I meant, can hackers attack my site? blah blah blah... Is there any tools to check ???

Member Avatar for jLamp
0
156
Member Avatar for benclifford

Hi I am having an issue trying to run an sql query from a php script. I have checked the query through phpmyadmin and it runs fine but whenever I run it through php i get an error. The error is "Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean …

Member Avatar for benclifford
0
271
Member Avatar for Albert Pinto

Hi People... I'm very new to this Symfony thing... I'm working on a CRM... Issue is with the url part... I mean....after looging in, no matter which page I go through... It always displays as index.php at the end part of the url.... or sometimes some annoying url... http://127.0.0.1/myproject/symfony/web/index.php/auth/login I …

Member Avatar for LastMitch
0
103
Member Avatar for acacian.tree

i saved my php webpages in htdocs folder,however if i'm doing some changes in files related to the script,or even in the script,its not getting reflected on webpages when i open them on browser. changes can only be seen when i rename the folder in htdocs to something else. like …

Member Avatar for LastMitch
0
189
Member Avatar for showman13

As many forms as I've used over the years and sending data from one script to another, I'm totally baffled with what is going wrong with this situation... I have a form in a script that basically just displays a book face as a link to go read the book. …

Member Avatar for showman13
0
206
Member Avatar for singularity~

I am trying to update multiple rows in my database using php and mysql. Here is my php mysql statment: $sql = "UPDATE book_store SET". "title = '$_POST[title]', isbn = '$_POST[isbn]', price = '$_POST[price]', quantity = '$_POST[quantity]' ". "WHERE ID = '$_POST[id]' "; Here is my Error: Error: You have …

Member Avatar for diafol
0
321
Member Avatar for ahudson

Hello All! This question probably has a really simple answer but I am fairly new to PHP and I'm not very farmiliar with generating numbers yet. This is what I'm having trouble with: * Check MySQL to make sure that this UNIQUE number is not already stored. If it is, …

Member Avatar for diafol
0
3K
Member Avatar for Buppy

Hi, I have a web app which is in the Google marketplace. When user adds the app, it creates account for that user. I also want to import all the other accounts from that domain and as I understand it can be done by accessing the Provisioning API. How do …

Member Avatar for Dani
0
238
Member Avatar for liphoso

i would like to be able to upload a pdf to a database then later be able to download the book and view it. i want the names of the books to appear as links which when clicked will open the book. the uploading is being done but the downloading …

Member Avatar for IIM
0
151
Member Avatar for Tinnin

Hi all, I've created an excel attachment containing an html table that sends using mail(). I'd like to extend that by including multiple tables in different worksheets in the same workbook. Currently my $message = // The first table. my $headers are: $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= …

Member Avatar for Tinnin
0
138
Member Avatar for gagan22

Hi All, When I was testing my site in mozilla I got the following issue I am setting session variable in my login1.php file and accessing it in hoa.php file. this process is working properly in IE but in MOZILLA I am not able to get the value of session. …

Member Avatar for lieky
0
1K
Member Avatar for NardCake

Hello, I have been writing code for someone, specifically making modifications to a user control panel. The client sent me the decrypted version of the code to make changes to. I assume he bought the software as he asked me to make the changes and he didn't himself, but what …

Member Avatar for NardCake
0
128
Member Avatar for earlxph8

hi guys, i saw same article with my problem, but i seem dont get the solution. the code works but some notice error. i have problem: "Notice: Undefined index:" Line: 40 // basename($_FILES['uploadedfile']['name']) the Code: <?php //This is the directory where images will be saved $target = "images/"; $target = …

Member Avatar for earlxph8
0
197
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
148
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
102
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
396
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
100
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
143
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
140
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
53
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
97
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
194
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
211
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
256
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
205
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
146
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
92
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
162
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
316
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
154
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

The End.