39,326 Topics
| |
Hi All, I've hit a brick wall trying to get the jquery autocomplete to work correctly. The problem is with the .php file and the way the While loop works, as what it does is create a array for every name rather than one single array. I've tried to move … | |
| basically i am using xpath for a search query, the results display like this Array ( [0] => SimpleXMLElement Object ( [TITLE] => Empire Burlesque [ARTIST] => Bob Dylan [COUNTRY] => USA [COMPANY] => Columbia [PRICE] => 10.90 [YEAR] => 1985 ) [1] => SimpleXMLElement Object ( [TITLE] => Greatest … |
is it posible to pass information held inside a MySQL database into a javascript array using PHP code? something like: $sql = mysql_query("SELECT * FROM uploads WHERE ref_id = '$refID'"); //javascript below var array = new Array() while(<?php echo $row = mysql_fetch_array($sql)?>) { array.push(<?php echo $row['name']; ?>) } or am … | |
is there any way to pass a variable from php into a variable in javascript? or do I need to revert to AJAX to get this done? | |
Been getting PHP Fatal error: Cannot redeclare class Facebook error since... Can anyone please enlighten what does this means? | |
Hi I have the following email script, which is working fine except none of the carriage returns work and the entire message from all the fields just goes in one line without any spaces. I've tried to look up carriage returns and didn't find anything different from \r\n Any help … | |
Hi all, I am trying to create an excel file in PHP which I then want to send as an attachment via the mail() function. I am able to create the excel file using the following code: function setHeader($excel_file_name)//this function used to set the header variable { header("Content-type: application/octet-stream");//A MIME … | |
Hello Community, I was wondering if there is a way to goto the direct link of a file (eg. http://example.com/files/test.txt) and for it to download insted of loading and displaying the file. I want to do this for every file in the "files" folder and only that folder. | |
Yesterday when I was working on php script I noticed that categories and subcategories works seperatly if I clicked on main category its show all articles under this main category and nothing imported from subcategories, now am working on somthing like this, so what should I do to avoid this … | |
Stock Recording System - I basically wants to see the data recorded in the table sql. yet this is not the case. mysql_query("INSERT INTO Produk FROM stock VALUES ('Produk')"); mysql_query("INSERT INTO Jumlah FROM stock VALUES ('Jumlah')"); mysql_query("INSERT INTO Tanggal_Masuk FROM stock VALUES ('Tanggal_Masuk')"); Is that instruction not enough to record … | |
I've been trying to send email using php. But I've been getting this error since... **PHP Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\www\IT3126Prac\Reservation\insertReserve.php on line 36** I know I have to configure something … | |
please help me to make a form like this http://www.worldvision.in/one_child/# . need to be connect to carious payments also | |
I need to create chart for log Database fields are, *** host * pageurl * VisitPage * VisitorIP * VisitDate * VisitorTimeZone * VisitTime * browser * operatingsystem * referer** I need chart for **Toatl Visits, Uniquie Visits, Impressions, Online Users, Pageviews, %New Visits, % Uniquie Visits, %New Visitor, %Returning … | |
hi guys, please post here some php tips, i need some help in php, thanks | |
$url=$_POST['url']; $ip = gethostbyname($url); $long1 = ip2long($ip) if ($long1 == -1 || $long1 == FALSE) { echo 'Invalid IP, please try again'; } else { print $url; echo $ip ?> bu this code i get ip address but i need the country name aslo with this ip address. is thers … | |
i am developing a online chat application, for that i have a server with static ip. i want to give only small javascript to include in client website. here my requirement is obtain ip address and the location of the user of the website. websites my in in any language … | |
hello, i want to make a script in php that identify the pc. actually i want to make a script like antivirus software which can only install at one pc. if we want to install it on other pc it cant. and also if we install it on same pc … | |
Hi there, How do I configure php.ini to allow large uploads(around 20M). With the default setting I can only upload up to 2M. I do not know what to set and where? How many settings need to be adjusted and what are they? | |
Hi. Well, i'm trying to add new data to mysql, <input type="text" name="name"/> example: Billy Boy when I check mysql table, it shows "BillyBoy" How do I fix that error? Thank you. | |
Hi... I am using xampp-win32-1.7.3.I want to use Adodb.I had seen that adodb is included on xampp package(xampp/php/pear/adodb).I had used the following code to retrieve data from mysql database. [CODE]<?php include("adodb.inc.php"); $db = NewADOConnection('mysql'); $db->Connect("localhost", "root", "", "emp"); $result = $db->Execute("SELECT * FROM employ"); if ($result === false) die("failed"); while … | |
Hey guys, got a system here which I'l try and explain in lame mans terms. Search > Customer page > Edit Customer. The problem I am having is that it is not letting me carry that ID over. E.g, I put John smith in, I get the customer Page which … | |
I could not put Wamp on line because port 80 was used by IIS7, so I changed it to port 81 and the icon became green,is on line. If I click on phpmyAdmin though I get error 404 not found.I read that phpmyAdmin also uses port 80 so should I … | |
Hi all, I am putting together a CRUD. I have read through tutorials, and references. Just wanted to see if i was on the right track: <?php // root -> /classLib/CRUD/CRUD spl_autoload_extensions(".php"); spl_autoload_register(); use classLib\database\database_Connection as DB; class CRUD { private $id; #__construct to be extended public function __construct($id=null){ $this->id … | |
Hi all, I've been hitting the same problem over and over in my development. Sometimes when i do a MySQL query I keep getting the error Warning: mysql_fetch_row() expects parameter 1 to be resource. I don't understand why. What does this error mean, am I doing something wrong? I've googled … | |
I know this is more of a math question, but since I'm trying to evaluate it in a script, maybe I can squeeze it in here. I know there is an easy way to do this, but for the life of me, I can't seem to get it clear. If … | |
I'm playing with php code to move from procedural to objects: I created a class called data, in a file called data2.php and used this in useData.php where I used some procedural and some use of data class. data class as follows: <? class data { var $anArray; var $element; … | |
Hi guys, sorry if this has been posted before but I am trying to add a color style to my php mail Here is a snipper of the code that generates an email, it all works fine. The . $efreeformcompanyname . being a value that may or may not be … | |
Hello all, I am a php newbie and I have a small project I need someone to work on (since I am totally frustrated at trying myelf). The project involves displaying a record within a table based on a user the is logged into my site. I also want fields … | |
Ive been stuck on trying to validate multiple radio buttons. Can anyone please help me out? I have about 5 radio buttons....... | |
Dear All, I'm facing problem with the symbols while getting the data from the table.. My output contains these ( � ) type of symbols i don't know why these coming even i declared <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> Can any one having solution for this ? Thanks in advance.. |
The End.