39,320 Topics
| |
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 … | |
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 … | |
$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 … | |
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" … | |
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. … | |
`<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 … | |
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 … | |
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'], … | |
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, … | |
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 … | |
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 { … | |
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 … | |
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. | |
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, … | |
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. | |
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 … | |
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" … | |
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? | |
<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!!! | |
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 | |
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? | |
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 … | |
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']; … | |
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 … | |
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 | |
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 … | |
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 … | |
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" … | |
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 … | |
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'])) { … |
The End.