39,316 Topics

Member Avatar for
Member Avatar for mpc123

I have a news feature on a website and have a page that shows all of the news and a link to the actual page of each individual news. On first page that lists all the news i would like to limit the amount of Characters that is echoed from …

Member Avatar for P0lT10n
0
146
Member Avatar for hmhb.in
Member Avatar for P0lT10n
0
79
Member Avatar for julianmoors

Hello, I am building a search filter, but I don't have much experience using AJAX. What I want to do is select a subject from an initial list then return a list of tutors which I have already done. Then I would like to return a list of centres, year, …

Member Avatar for P0lT10n
0
630
Member Avatar for shaikh_mshariq

I have written some code to fetch details from database according to the given id. I am using ajax to help the ui. I can see the responseText in alert box but when i use it as reponseXML than it doesnt give me any child node my server side and …

Member Avatar for gecata83
0
152
Member Avatar for iammirko

Yesterday, I had started a thread with a problem, am trying to execute the script below, but each time it is failing and returning "Unable to record form details". Note: "Unable to record form details" is the response returned when isset($_POST) is not working, refer the code for more details. …

Member Avatar for iammirko
0
99
Member Avatar for g4george

Why dose this not work? When I submit a emty form [CODE] if((!isset($uname)) || (!isset($passw))) { header("Location: ../pub-login.php"); $_SESSION[validate] = "Entry not recognized"; exit(); } [/CODE]

Member Avatar for swilliamrobert
0
92
Member Avatar for swilliamrobert

Hi, I have some problem posting data to other page. Now i am explain. One page (called A.php) is refershing and checking database whether status 1 or 0. If sataus finds 1, A.php page posting values to B.php automatically. Then i need to confim whether B.php page getting values or …

Member Avatar for swilliamrobert
0
130
Member Avatar for kavykav

[CODE]<?php class Application_Model_YearBook_Mapper { protected $appId = "assOvWMver34QkcaaNYdUc"; protected $collectionId = "chDkpaVkWr36J-caaNYdUc"; public function add($course, $year, $userId) { $body = "$course#$year#$userId"; $entryMapper = new Application_Model_Appdata_Collection_Entry($data); $data = array("content_type" => "text/plain", "body" => $body); $entry = $entryMapper->create($this->appId, $this->collectionId, $data); } public function fetchAll() { $collectionMapper = new Application_Model_Appdata_Collection_Mapper(); $collection = $collectionMapper->fetch($this->appId, …

0
40
Member Avatar for pjh1985

Hi, I am trying to design a dynamic website with a content management system and i was wondering what would be the best way to add content such as a photo gallery etc to the dynamic pages. This is a general question but i will explain the problem i am …

Member Avatar for pjh1985
0
141
Member Avatar for hmhb.in

i have the student record .excel file. how can i display the student detial one by one(when next buuton is pressed)

0
54
Member Avatar for mangel.murti

hi guys,,, deep trouble,,,, i don't know where to put this question ... when i am seeing my webpages onevery page this script comming .. i have no idea how to deal with this thing.. i search google did some thing for related to cpanel. changning all my account password,,,, …

Member Avatar for vaibhav1983
0
116
Member Avatar for qazplm114477

I was just wondering if there was a more optimal way to add dates to mysql if I had a drop down for each field. This is the code I use to format the dates [CODE]$date_hired = format_date($_POST['month_datehired'], trim($_POST['date_datehired']), $_POST['year_datehired']); //I have 3 dropdowns in my form, 1 for months, …

0
97
Member Avatar for flamer_x86

Hi, I'm newbie in IIS and MSSQL using php. I got problem connecting to my host and selecting database. Could you please help me how to connect using php. Mar,

Member Avatar for flamer_x86
0
127
Member Avatar for muralibobby2015

hello i am working on google map,streetview. i am using below code.[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Google Map and Street View</title> <script src="http://maps.google.com/maps?file=api&v=2&key=INSERT_API_KEY_HERE" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { if (GBrowserIsCompatible()) { var lat = -33.867141; var lng …

Member Avatar for muralibobby2015
0
160
Member Avatar for muralibobby2015

hello... i am getting problem with this regex....what is the exact format of this pattern only 000-000-0000. exact this pattern only not other U.S phone number format. why because i am using below javascript for this validation. [CODE]if(window.document.UserDetails.phone.value=="") { alert("Please Enter The Phone Number") window.document.UserDetails.phone.focus(); return false; } var pattern …

Member Avatar for muralibobby2015
0
183
Member Avatar for Smudly

Hi, I'm trying to type in a name of a song into an input field, for example: I'll Be Missing you This field is captured through $_POST and set to a variable $title I then update the table with this new title. Once it is updated, all that is shown …

Member Avatar for Lsmjudoka
0
94
Member Avatar for pallen

OK, this is as basic a question as any of you will get on this site. Here's the deal. I have a very basic PHP file saved, of course, as php. I have an HTML page built in Dreamweaver. So, how do I include that file in the HTML so …

Member Avatar for Lsmjudoka
0
226
Member Avatar for nyler01

Im noob in php and i have a website which allow users to search for a keyword and give them a result as a link which able to redirect them based on their search.. and i need a script to track how many times a search result's link is clicked. …

Member Avatar for nyler01
0
192
Member Avatar for TySkby

I am calling a function in PHP that should return values from a database that I have set up. However, I'm getting a blank screen instead of what I'm asking for. If I comment the correct lines out and process it without the function, everything works perfectly. I've posted both …

Member Avatar for TySkby
0
130
Member Avatar for prettyrein

Hi, I am also having an ONLINE ENROLLMENT SYSTEM and having a problem with coding.. I am a returnee student and more programming languages has been adapt... Using php, apache, mysql, html, javascript, css etc... I am confused especially in php query.. can anyone help me here, i don't have …

Member Avatar for Stefano Mtangoo
0
174
Member Avatar for akvlko

Hi Friends! Can you people help me out about this I have Two Array's 1: a[] =>1 =>3 =>4 2: b[] =>5 =>6 =>8 and I want to combine both array like this c[1]=5 c[3]=6 c[4]=8 Means the value of first array will be the Index of Third array and …

Member Avatar for baltazar
0
144
Member Avatar for festprabu

<?php $allsql="SELECT SUM(Salesprofit)+SUM(Serviceprofit)+SUM(softwareprofit)+SUM(Airtelprofit) FROM billing,service,software,airtel"; $profitall=mysql_query($allsql) or die(mysql_error()); while($row=@mysql_fetch_array($profitall)) { echo $row['SUM(Salesprofit)+SUM(Serviceprofit)+SUM(softwareprofit)+SUM(Airtelprofit)']; } mysql_close($con); ?> Hi everybody.... i have problem in mysql query.. i got the sum for the field called profit from each table... i am getting the TOTAL value as wrong calculation value... how do i get the …

Member Avatar for digital-ether
0
125
Member Avatar for 5416339

Hello Everyone, I made a GET form recently.But the problem is that it is highly vulnerable.You can inject your an script as below. http://mysite.com/processget.phtml?search=<a href="http://google.com">Hacked</a> I'm able to inject any kind of script into my above URL.I'm actually echoing my GET data using an echo in my BODY,so whenever i …

Member Avatar for baltazar
0
148
Member Avatar for jrock2004

Ok so I am writing a PHP script that will gather some information into a file and the push it up via SVN. I am running into a problem with pushing it up via SVN. [CODE=php] shell_exec("svn commit -m $message store-webapp-test-selenium-$storeCode --password $svnPassword"); [/CODE] I have even tried it like …

Member Avatar for digital-ether
0
137
Member Avatar for segiboy

[B]Hello, I want to search data through multiple drop down, using different tables in database just like if user want to search "data" field recode then he select Normal Resumes (radio button) and select drop down for search and same thing i want in "special" table in database.. i have …

Member Avatar for segiboy
0
129
Member Avatar for iammirko

Hi, I am trying to execute the following script, but each time it is failing and returning "Unable". Note: "Unable" is the response returned when isset($_POST) is not working, refer the code for more details. [COLOR="red"][B]PHP CODE[/B][/COLOR] [CODE]<?php $test = "Hi!"; if ((isset($_POST['usrName'])) && (isset($_POST['pWord']))) { $user = $_POST["usrName"]; $pass …

Member Avatar for iammirko
0
444
Member Avatar for raul8

The only difference is that the 2nd is written within a function and returns instead of echo. What is the problem? [code=php] <?php jcarousel_add('tango'); drupal_add_js ( '$(document).ready(function(){ $("#carousel-cars").jcarousel(); } ); ', 'inline' ); echo getcwd(); echo "<div id=\"carousel-cars-horiz\">"; echo "<ul id=\"carousel-cars\" class=\"jcarousel-skin-tango\">"; $pic = NULL; $url = "./sites/all/modules/img/Images/"; $handle = …

Member Avatar for hielo
0
50
Member Avatar for ekSquall

Hi, I have populated a dropdown menu using php pdo from sqlite database. How would i go about reading what the user has selected in the dropdown menu. so i can do something like: $userSelected = [whatever user selected in the dropdown menu]; my code is as follows (part of …

Member Avatar for hielo
0
578
Member Avatar for dannynez

i get this Warning: Cannot modify header information - headers already sent by (output started at c:\appserv\www\conectarse.php:2) in c:\appserv\www\conectarse.php on line 61 and this warning happen in line 58 - header("Location: ".$MM_redirectLoginSuccess); and in line 61 - header("Location: ".$MM_redirectLoginFailed); pls i need somebody help me to resolve this this is …

Member Avatar for pzuurveen
0
128
Member Avatar for maxelcat

I have a client that wants a site for people who are potentailly being abused, often by partners they live with. He is under the impression that it is possible for there to be a "Button" that deletes the cache when the user presses it rather than going through the …

Member Avatar for pritaeas
0
63

The End.