39,320 Topics

Member Avatar for
Member Avatar for devianleong

Hi,currently i m developing a PHP Cart. I have a php function is call product option value. When Admin adding product ,ajax will load my php function without refreshing page to allow admin to select the option like color,size etc. In my php function got no any submittion data but …

Member Avatar for devianleong
0
221
Member Avatar for dannybarh

Am building a vehicle fleet management system, srevice cost is added each time a vehicle is serviced. Now, lets say vehicle A have been service 8 time, B 5 times, C 10 times ... I want to show the SUM(cost) for servicing each vehicle at the same time. I wrote …

Member Avatar for dannybarh
0
170
Member Avatar for kshahnazari

$link = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=90A1173C22358704FA80D2070D9C987C&steamids=76561198081118741" $file = file_get_contents($link); echo $link; echo $file; I have coded this php , when it runs the link and the file are echoed but the link is right (also I know its correct) but the file echo gives nothing , when I go to the link a …

Member Avatar for anthonydaly
0
143
Member Avatar for durgesh1

here is html and php code i like to pass video from my database to this via jquery on click action i try to do something like this but it fail jquery code `jQuery("#player").val(data["video"]);` <p> <label style="width:87px">Video:</label> <div id ="show_image2" style= ""> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="player" name="player" width="500" height="300"> <param name="movie" …

Member Avatar for durgesh1
0
317
Member Avatar for tibor.marias

Evening Sirs, I got some problems in PHP when using while loop in tables. My problem is that I can't make the rows be the same width. This is my preview: ![11ce93daec6265124e189def81dc9696](/attachments/large/4/11ce93daec6265124e189def81dc9696.png "11ce93daec6265124e189def81dc9696") I want the blue part of the table, to be equal width with every relative white part. …

Member Avatar for tibor.marias
0
582
Member Avatar for websponge

`<a href="#" onclick='contacts($code)'>Contact Details</a>` This runs a jquery code with the value $code. in Firebug I can see it gets the correct rowset value, the jquery is below: function contacts(code){ jQuery.ajaxSetup({async:true}); jQuery.post("php/contact.php", {code: code}, function(data) { $('#results').hide(); $('#results').fadeIn(2000); $('#results').show() .html(data); }); } it is supposed to post this value to …

Member Avatar for anthonydaly
0
416
Member Avatar for klemme

Hi all, I need to parse an XML file, which includes CDATA and HTML <br> tag I would like to include for my output. I would like to replace <br> with <br /><br /> - Two spaces, but it doesnt seem to happen. This is an example on the XML …

Member Avatar for pritaeas
0
5K
Member Avatar for mmcdonald

Hi all, I'm having that oldschool issue with saving rich text content to MySQL and then retreiving it. As far as I'm concerned I thought I was doing it correctly - but one of you lucky devils is about to tell me otherwise :D When I'm saving to DB: if(isset($_SESSION['auth'], …

Member Avatar for mmcdonald
0
3K
Member Avatar for faisaldss

I have a website developed in PHP. I have recently done the URL rewriting which works fine. However, I just found out that my pages with parameters are also accessible. For eg. I converted this URL domainname.com/index.php?page=product&pid=5&proTitle=Samsung Galaxy After rewrite it looks like this domainname.com/products/5/Samsung-Galaxy.html Everything works just fine. However, …

Member Avatar for almostbob
0
185
Member Avatar for NitsPatel

hello, I get a following error in my localhost in contact page only in IE(internet explorer) other page work properly.In Firefox whole site run properly including contact page The error is: `Sorry, the IP address of localhost is not public. For security reasons, validating resources located at non-public IP addresses …

Member Avatar for anthonydaly
0
201
Member Avatar for PerplexedB

I'm not sure I undestand the second dimension of the three dimensional array that I created in `$rowData`. `test.xlsx` contains 3 row and 2 columns of string values. Also `count($rowData)` returns 12, not 6. <?php // Include PHPExcel_IOFactory include '../PHPExcel/Classes/PHPExcel/IOFactory.php'; $inputFileName = 'c:\DOCS\test.xlsx'; // Read your Excel workbook try { …

Member Avatar for PerplexedB
0
484
Member Avatar for best4earn

I m using xampp 1.8.2 on windows xp , i was testing my word pres plugin it shows queries not executed or show a blank page while when i upload my plugin to byethost online server all codes working properly . My question is , why a same code show …

Member Avatar for best4earn
0
172
Member Avatar for redcore

I am a total php newbie and hope to find someone who could help on a few issues: Site CMS=joomla 2.5; the component breezingforms/contentbuilder requires certain php code to link a field to a task i.e. referring to a URL. I have more detail for someone willing to help.

Member Avatar for AARTI SHRIVAS
0
270
Member Avatar for karthik_ppts

Hi Frendz, I need to login with a site to get the content. I'm using the below code to do the same. <?php include_once('simple_html_dom.php'); extract($_POST); if($submit) { $username = '*************'; $password = '*************'; $loginUrl = 'https://secure-admin.booking.com/booking.html?bn=685763648&hotel_id=439210&code=57ed501f25de55965e13ab29fcd936a3'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $loginUrl); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, 'loginname='.$username.'&password='.$password); curl_setopt($ch, CURLOPT_COOKIEJAR, …

Member Avatar for karthik_ppts
0
318
Member Avatar for Ashkan_1

I didn't expect to find this so difficult, but I'm trying to set a user variable in MySQL to contain an array of values. I have no clue how to do this so tried doing some research and was quite suprised to find no answer.

Member Avatar for Atli
0
6K
Member Avatar for patk570

I have a form that i am getting info from and then I want to update certain fields in the database only not all the fields it then sends out an email to the person that filled out the form with a randomly generated ticket number that they can then …

Member Avatar for Atli
0
218
Member Avatar for alobi

I am not sure why I keep getting the error message below(Pleae see the Asterisks ) Notice: Undefined index: myusername Notice: Undefined index: mypassword Notice: Use of undefined constant myusername - Fatal error: Call to undefined function stripslashed() Here is my code <form action="Main_login.php" method="post" name="fromLogin"> <table width="300" border="0" align="center" …

Member Avatar for mmcdonald
0
349
Member Avatar for garyjohnson

How can I replace <br>, \r, \n with " ". Which is an empty space. Is there a way to detect these characters in a string and replace them with a single white space?

Member Avatar for mmcdonald
0
1K
Member Avatar for daniel.conlinjr.1

<div class="test" style="color:#fff; width:500px; height:100px;" on onmouseover="style='display:inline;'" onmouseout="<?php sleep(5) {//need a display none here}?>"> <p>Hello All</p> </div> can some one help me please!!!

Member Avatar for JorgeM
0
353
Member Avatar for Elfhabbo

How do I make a uploader for .cct files to be uploaded into the catalogue of my database for my shockwave game or is there a uploader already created? please help

Member Avatar for diafol
0
86
Member Avatar for lilwizz770

I have a table applicants and one of the columns is age, i want to be able to calculate the age range, frequency and variation. Is there a way this can be achieved?

Member Avatar for diafol
0
194
Member Avatar for chrisschristou

hello friend, i ust need your help when i insert in database i go to page of my choice on local alla work fine but on server it don't work when i insert a data the page just refresh, this is the code please help me friend ("INSERT INTO commande …

Member Avatar for chrisschristou
0
485
Member Avatar for websponge

Hi, I use a query which is identical throughtout my application, only thing that differs is the select part of the query, so for example: mysql_select_db("mydatabase", $con); $result4 = mysql_query("SELECT * FROM nap where Exchange LIKE '$majorvalue%'"); while($row = mysql_fetch_array($result4)) { $psba = $row['Site']; $status = $row['Status']; $spectrum = $row['InSpectrum']; …

Member Avatar for Atli
0
145
Member Avatar for blueguy777

how to update table in foreach loop with where clause my code: foreach($output as $var) { $tmp = explode(",", $var); $collec_date = $tmp[2]; $cust_id = $tmp[4]; $cust_name = $tmp[5]; $install_no = $tmp[6]; $amount = $tmp[7]; $sql = "UPDATE ankali_slabpay SET install_date='$collec_date', install_amt='$amount' WHERE ac_no='$cust_id' AND install_no='$install_no' AND $install_amt='000000' GROUP BY …

Member Avatar for Atli
0
3K
Member Avatar for Tko_1

What im tryig to do is add one line of code to all files at once Can this even be done ? I have tried reading all files in a directory then fopen to fwrite without any success. Any ideas ? Thank you

Member Avatar for Tko_1
0
198
Member Avatar for garyjohnson

I want to remove all enters from an input and replace them with a single space. By that I mean something as </br>. So if someone places the input like this Hello, my name is bob. How are you? It will look like this, Hello, my name is bob. How …

Member Avatar for buzzfire
0
168
Member Avatar for brandon66

User fills out certain values in a form and hits the submit button. The values the user filled out will be submitted to the database. The user needs to come back to that form and be able to update the values he did not enter the first time. How would …

Member Avatar for brandon66
0
196
Member Avatar for Lewis_1

Hello. I've created 2 pages that i'm currently working on. One is called; Test.php -- which just includes a basic form in HTML. <Form name ="form1" Method ="POST" Action ="result.php"> Building Name: <INPUT TYPE = "TEXT" Name ="buildingName"> Room Number: <INPUT TYPE = "TEXT" Name ="roomId"> <INPUT TYPE = "Submit" …

Member Avatar for Lewis_1
0
265
Member Avatar for gogs85

I need help for my code when i login successfly i have error this is my code: <?php session_start(); $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="portfolio_baza"; // Database name $tbl_name="skole_login"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot …

Member Avatar for gogs85
0
337
Member Avatar for kshahnazari

I'm working with openid library and one thing has been bodering me. <?php # Logging in with Google accounts requires setting special identity, so this example shows how to do it. require 'openid.php'; try { # Change 'localhost' to your domain name. $openid = new LightOpenID('localhost'); if(!$openid->mode) { if(isset($_GET['login'])) { …

Member Avatar for Atli
0
296

The End.