39,402 Topics
![]() | |
hi need little help displaying xml data from two website need to display data like this 1-website a 2-website b 3-website a 4-website b i am using this code can any one tell me how i can display two xml data from different websites i am using this what i … | |
I need to access an array value but don't know all the values to call until I get them from a different array value. I'm not explaining this well so I will show some of the code below (This is from a drupal based website). I want to access this … ![]() | |
Hey guys! I have an error with the ' and " tags, I can't work out which way they should go.. [code] <?php $uzivatel = mysql_query("SELECT * FROM ip WHERE ip = '" . $ip . "' LIMIT 1"); while($uzivatele = mysql_fetch_array($uzivatel)){ echo '<center><input type="text" value="' . $stranka . '?id=' … ![]() | |
Hello, I have implemented my php code but it says "Parse error: syntax error, unexpected $end" last line. I can't see anything wrong with my syntax. [ICODE] <?php // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); // get value of id that … | |
[url]http://test.gubbit.com/newgubbit/bfsearch.php?q=lenovo&submit=&R1=V7[/url] I am not sure what the problem is here.. but when I run this page on the internet explorer, it shows a completely white blank page. After looking at the source code on IE, it is exactly the same as you would see on chrome, safari or mozilla. Any … ![]() | |
hi i am new to codigniter... i fetch records from db and want to access it in another functio in same class but it giving me error.. any idea... [CODE] class Usercp_Task extends CI_Controller { var $cate=array(); public function index() { $this->getCategoryDetails(); } public fun getCategoryDetails() { $array_db=result form database... … | |
For those of you unfamiliar with Google Documents, it is like Microsoft Word/Excel/etc. online. I would like to create a simple online document editing program where a logged-in users could edit and save a book or other text-based document. However I do not have a lot of Web Programming experience … | |
Hey Guys, I need some help... I have the following code: [CODE]$dueinQ = mysql_query("SELECT * FROM `invoices` WHERE `status` = '10' OR `status` = '11' OR `status` = '9'"); while($dueinR = mysql_fetch_assoc($dueinQ)){ $inv_due = $dueinR['duedate']; $eofy = $dueinR['eofy']; $datediff = $inv_due - $eofy; $days = floor($datediff/(60*60*24)); if($days > 365){ //Do … | |
I am using below captcha.Its working fine in localhost,one server.The problem is same code is not running on different server. Need suggestion [CODE] <?php session_start(); $ranStr = md5(microtime()); $ranStr = substr($ranStr, 0, 6); $_SESSION['cap_code'] = $ranStr; $newImage = imagecreatefromjpeg("img/cap_bg1.jpg"); $txtColor = imagecolorallocate($newImage, 0, 0, 0); imagestring($newImage, 5, 5, 5, $ranStr, … | |
Hi! I got this image uploading script for my website, but i don't know if it's gonna work or not. I just wanted to ask if someone could take a look at it, and tell me if the code looks okay and ready to go. Thx in advance. [CODE] <?php … ![]() | |
Hi. I am developing an apllication(btw try) which requires to use methods for deleting,selecting the database rows. If you write a code for example for delete some rows from the table how would you do it ? [code]delete($table_name,$where,$limit,$asc...)[/code] how many argument do you usually use ? Can the task that … ![]() | |
data does not come at phpmysqladmin. and also shows this warning Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\com\com.php on line 75 Thank you for submission [CODE]<?php if ( isset($_POST['username'])) { $ret = add_to_database(); if (!$ret) { print "Error: Database error"; } else { print "Thank … | |
i have a php code to random 1 - 50 question from database anh print it in web [CODE] $arr1=array(); for($x=0;$x<10;$x++) { while(1) { $s=rand(0,50); if(ktra($arr1,$s)==1) { $arr1[$x]=$s; break; } } } $y=0;$arr2=array(); ?> <?php for($x=0;$x<count($arr1);$x++) { $sql="select * from question where IDQuestion='".$arr1[$x]."'"; $result=DataProvider::ExecuteQuery($sql); if($result !=false) { while($row=mysql_fetch_array($result,MYSQL_ASSOC)) { $noidung=$row["Content"]; … | |
Hi, What code would i need to use for my php form, so when my record is saved using my save button on my form to my mysql database, it displays a message to say "Record Saved". | |
I get this error when trying to send e-mail form with PHP Mailer 5.1: SMTP Error: Could not connect to SMTP host. Error sending: SMTP Error: Could not connect to SMTP host. [CODE] <?php require("PHPMailer5\class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = 'tls'; $mail->SMTPSecure = 'ssl'; $mail->Host … | |
Hello, I am currently learning PHP. I am trying to implement a sign up page. The name at the same email address of the users in the database should give me an error message. I don't know how to start with. I started this by searching the emails in the … | |
Hi all I've searched everywhere on the internet including Daniweb for this answer but I can't find one. I don't want to break the rules, so I've changed the real domain name to domain.co.uk I manage a website [url]www.domain.co.uk[/url] where the owner requires a subdomain called quotes.domain.co.uk He then needs … | |
![]() | Hi community, I recently started learning html and I tried to make a short feedback form. That should send the data over to a php file and that should append it to a txt file. However, every time I try to submit my form data, I keep just seeing the … |
we are want to pass value in url when we click om menu in <?php wp_nav_menuservice(array('menu' => '27')); ?> function click on menu , current output in url: [url]http://localhost/daffodilsite/?page_id=540[/url] and we want in url: [url]http://localhost/daffodilsite/?page_id=540&cityid=3[/url] please help me how to pass cityid in url thanks Rajeev Dhar | |
Hello everone, I am designing a website with php for different users. And I will like to give each user a unique page according to what their input in the form is, I want to MySQL database to save the information and retrieve it each time a user login into … | |
Very simple question, looking on google brings up plenty of MySQL resources on triggers but I can't find the answer I am looking for. What I want to know is; When I perform a query on a database from PHP, Does MySQL provide any way for PHP to know a … | |
Hello Everone, Can any one know where I can get a script for community websites, if you know please don't hesitate to reply this message, Thanks for reading this post. And greater thanks for your reply to this post. ![]() | |
Hi I recently installed XAMPP and tried my first test page by creating a sub-folder in htdocs namely password_test which containts 2 files: password.txt and an index.php. While trying to execute i get the following: file:///C:/xampp/htdocs/password_test/ -------------- Index of C:\xampp\htdocs\password_test\ Name Size Date Modified [parent directory] index.php.txt 129 B 11/18/11 … | |
Hello, I am looking for a way to stop variable scope leakage. I have a class with a function to include a page something like this: [CODE] class functions{ function getView($viewTheme, $viewType, $viewTask, $viewFunction, $pageID=null, $itemID=null){ $baseView = ROOTME.DIR_VIEWS.$viewType.'/'.$viewTheme.'/'.BASE_VIEW_DIR.$viewTask.'/'.$viewFunction.'.php'; if(file_exists($baseView)){ include($baseView); } } }[/CODE] My problem is, I am now … | |
product_preview.php [CODE] <?php // EDIT / DELETE MODE $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; if(!empty($_POST['id']) && !empty($_POST['mode'])){ if(!$_POST['mode'] == 'edit'){ $output = mysql_query("SELECT * FROM kategori WHERE id=".$_POST['id']) or die(mysql_error()); $data = mysql_fetch_array($output); $kategori = $data['nama_kategori']; echo $kategori; } elseif(!$_POST['mode'] == 'delete'){ $output = mysql_query("DELETE * FROM produk WHERE … | |
Hi There; I have a MS-SQL server and I have Turkish names in my table. User enters names and I send it to SQL server, print result to output. However, my PHP code process and prints text as a UTF-8, and send it to MS-SQL and print it to output.However … ![]() | |
I have some code that I use to display random images, which it draws from a list of possibilities. My problem is that I want to be able to echo the name of the randomized image as text below it. If someone could help me figure out how to do … | |
hey guys, i have quiet a number of .css and .js files on my website <head></head> pages. how do i compress them with gzip? | |
how do I set the path of this cookie to my whole site "/"? [ICODE]setcookie("name$id$uid", $id, $month);[/ICODE] currently this is what I have. How do I format the above to set the cookie on a global scale for the entire site. | |
Hi, I'm looking to build a payment button using Amazon Simple Marketplace Payments. Here is some code: [CODE]<input type="hidden" name="recipientEmail" value="email_address yahoo.com" >[/CODE] I would like value to be a variable but having trouble making this happen or finding info on how to do this. Any help would be awesome. | |
Hello, working on an Opencart website using Wamp and Windows7. Having trouble with Php settings _please view screenshot_ [URL=http://imageshack.us/photo/my-images/408/phph.png/][IMG]http://img408.imageshack.us/img408/1097/phph.png[/IMG][/URL] I've seen going through several sites with no solution so far; any help you could provide would be greatly appreciated. regards, C. | |
hi, I am changing my html web pages for website. my eclipse project is inside www directory. But I don't see html changes when I open web pages. I restarted server as well as eclipse many times. Still, the same result. Any Help, suggestion please? ![]() | |
Hi all. I'm working on a project where I'm supposed to store some PDF into a website. I'm usibg PHP/MySql. Actually these PDF are very personal and I need to be sure that no one can access the PDF even if this is on an address like [url]www.site.com/document.pdf[/url]. I need … | |
Hello, Currently I have a PHP Script that screen scrapes a website for data, and store it into a MySQL table. I'd like to set this up to run in intervals during the day. Right now, all I do is open the link in my browser and it runs the … | |
lets say it in example,i had column, which its rows contain numbers increasing -10,-9,-8,-7,....-1, those rows got bugged and changed into 1,2,3,4,.....10, that was example, the real one is over 40,000 rows, and it was -2147483629,-2147483630,-2147483631,....etc and it turned into 1000000001,1000000002,1000000003,.... how to make script that scan for 1000000001~1000000050 (for … | |
HI. I want to dig deep into PHP and OOP so I have been told that Zend is a very popular framework so I want to learn . Can you give me some (not many) resources for learning the beginning Zend and step by step go deep into it ? | |
Well, doing a beginner project. I've 100% finished with adding items to the DB. However, having stuck trying to use the "search" button to retrieve the DB list, as well updating errors. Objective, input last name, click on search, and find the results based on the last name input. Here's … | |
Good day, I'm trying to build an online quiz for my website. i want to do it oop style but i'm having problems in certain areas but i'll need help. this is the class code [CODE]class Quiz{ // method to get the questions and answers public function getQuestion(){ $host="localhost"; // … | |
i nid to set a generated password to email, a link to the mail for user to change to a better password, now the generated password shold expire after few hours how do i do...at the moment am genearting the password effectivly, problem is settimng it expire...how do i do | |
Hello, I have this weird issue with my simple upload form for different files. [CODE] <form enctype="multipart/form-data" action="mesaje_furnizori.php" method="GET"> <table> <tr><td align="right">Va rugam selectati » </td><td><?php echo $selectare; ?></td></tr> <tr><td align="right"><td><input type="file" name="file" id="file"/></td></tr> <tr><td align="right" colspan="2">Fisiere suportate (.*gif,*.jpg,.*jpeg,.*png,.*bmp,.*doc,.*docx,.*xls,.*xlsx) Marimea maxima de: <strong>5MB</strong></td></tr> <tr><td colspan="2"><textarea name="mesajTrimis" cols="70" rows="15"></textarea></td></tr> </table> <input … | |
Is it possible to run to functions at the same time when using onchange? Now i have this one: [CODE] <select name="hovedside_id" onchange="hentPosition(this.value)"> [/CODE] Using ajax i get updated another dropdown list with db info from this function just above. I return the data to a span tag with an … | |
hello i have problem with my code i try to delete user but i have some problem with that i cant to delete it... [CODE] if((mysql_num_rows($resultAdmin))) { if(mysql_num_rows($result) > 0) { ?> <table align="left" border="2" cellspacing="0" cellpadding="3"> <tr><td>Name</td><td>Email</td><td>Phone</td></tr> <?php $str = ""; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $name = … | |
Hi, I want to parse PHP entities (classes, variables functions methods and properties) and save information on database (function signature, variable name et al). I'm trying to see alternatives for how I can archieve that with any language (the technique). So far I'm thinking of using regex to match stuffs … | |
banner_manager.php [CODE] include ("includes/koneksi.php"); //$_REQUEST['simpan'] = isset($_POST['simpan']) ? $_POST['simpan'] : ''; $link = isset($_POST['link']) ? $_POST['link'] : ''; $gambar = isset($_POST['gambar']) ? $_POST['gambar'] : ''; $id = isset($_POST['id']) ? $_POST['id'] : ''; //SIMPAN DATA if (isset($_REQUEST['simpan'])){ $id = $_REQUEST['id']; $link = mysql_real_escape_string($_REQUEST['link']); $gambar = $_REQUEST['gambar']; } //Cek apakah ada file … | |
Hi, I have a problem to split and get the value in string. here example output --_BeginData_ payeeId=xxxx channelId=ECEP billAccountNo=exb111109-315262 billReferenceNo=TOPUP20111109200257 amount=42 paymentRefNo=61417686 transactionDate=20111109 transactionTime=194843 userFullName=KHOR JO FENG status=S --_EndData_ In above example, i need output for payeeId=xxxx, billAccountNo=exb111109-315262, billReferenceNo=TOPUP20111109200257 and etc., so i want value after the equal. It … ![]() | |
How can I export the data which is in excel format? Can images or Videos be embedded in PHP? | |
Hello, I need help on this... I try to insert image from mysql into my php table.... but the output inside the image table are unknown characters [CODE]�Sm��.�l1�ZQm�M�Խok�*����5l��0P9���f�����I� �$A�3tu4Z��Jǽ�_t/�&��[�{Ro������;�� �:��I%�y�ҩ?u\�t_��Ǡ]�����N�>�B��z�9���ҥ��=hƬկdw��~��hY4�E����f%����MC�� 1���I�P@zP&r����j���֩��k8�a�p��bSMyt���Co�Q$��?�ZF*�S�9����حR����������x�h�9$�J \�m,[�6�^C��ct�q�U%��K$%�8����4����le�niX���\B �!s9n�;�1��F~t�䎪:�E�+�7R[���"! �1ZݞzQ�>(�zSxѹ 5�⺞��mG%��֦�k �����/��9]_�4���!4 ���}���hI����� | |
Is there's any way so that I could prevent the embedded iframe page to load itself ( because I have placed a Jquery timer in it which redirects to a page which calculates and displays Score of the candidate, in my Quiz application ) even if the page on which … | |
Getting error as parse error-unexpected at line x and error message headers already sent..what does that mean? ![]() | |
Hello, I hope somebody can help me out here ... I'm having a problem with error code while searching a word in a flat file. My flat file[CODE]|~|20091105213652|~|05 november 2011 - 21:36|~|John|~|18 cm|~|text 1|~|text2|~|text3|~|text4|~|text5|~|text6|~|No|~|John.jpg|~|xxx.xxxs.xxx.xxx|~|extra|~| |~|20091105213929|~|05 november 2011 - 21:39|~|Jeff|~|45 cm|~|text 1|~|text2|~|text3|~|text4|~|text5|~|text6|~|No|~|Jeff.jpg|~|xxx.xxxs.xxx.xxx|~|extra|~| |~|20091105220916|~|05 november 2011 - 22:09|~|Paul|~|15 cm|~|text 1|~|text2|~|text3|~|text4|~|text5|~|text6|~|No|~|Paul.jpg|~|xxx.xxxs.xxx.xxx|~|extra|~| |~|20091105221959|~|05 november … ![]() |
The End.