39,320 Topics
| |
I'd like to know if there is a simple way of retrieving the Cover photo from a user in my application, via the facebook php sdk. I managed to retrive the cover photo id of the album of the cover photo album, but my solution only works partially.(As you can … | |
Hii i want to save data to the database when user register. I dont know whats wrong. Am having this error: Warning: DOMDocument::loadXML() [domdocument.loadxml]: Empty string supplied as input in C:\Program Files (x86)\EasyPHP-5.3.6.0\www\TestingAjaxRegistration\register_pro.php on line 13 Warning: DOMDocument::schemaValidate() [domdocument.schemavalidate]: The document has no document element. in C:\Program Files (x86)\EasyPHP-5.3.6.0\www\TestingAjaxRegistration\register_pro.php on … | |
Hallo guys, i am new to php. i would like to create a php page that would allow the contents of a folder (word documents) to be displayed on my web page ready for download. i have one end where the files are uploaded from but this other end is … | |
I have a problem using the oci_execute function in php. I start by initialising my query then oci_parse it and then oci_execute it. Everything works fine. And data are being inserted or modified in my database. The problem is that these data are inserted randomly. If I have a query … | |
Hello, i need help on writing a code that can stop a person from voting twice. such as by refreshing the page, clicking back, or clicking on the button again. can anyone help? thanks heres my voting code so far, it works but user can double vote. [ICODE]<?php $con= mysql_connect("xxxxx","xxxxx","xxxxx"); … | |
Hi I am using drupal 6 and integrate with Ubercart. I need to make invoice and fir that I am using uc_order module. I need to add custom theme to http://"root"/admin/store/orders/####/edit page. Can write node-tpl file...? I wrote page-admin-store-orders-edit.tpl.php file it is working. I put [CODE] <?php print($content); ?>[/CODE] I … | |
Hi, if I have few files (xlsx) in a folder on my computer (file's name is known), and I want to give the path of the folder in my form using a textbox, [CODE]<input type="text" name="path" id="path" >[/CODE] and for the files to be uploaded to a specific folder on … | |
Hi..I need help...I am using the following [CODE]<?php $username=""; $password=""; $firstname=""; $lastname=""; $ydob=""; $mdob=""; $bdob=""; $email=""; $gender=""; $priority=""; $usid=""; $users= $_POST['txt_xml_users']; $xml_Doc = new DOMDocument(); $xml_Doc->loadXML($users); if(!$xml_Doc->schemaValidate('users.xsd')) echo "Your xml is NOT valid"; else { include("dbconnect.php"); header('Content-Type: text/xml'); //$xml_users=simplexml_load_string($users ); $xml_users=simplexml_import_dom($xml_Doc); foreach ($xml_users->user as $user) { $username=$user->username; $password=$user->password; $firstname=$user->firstname; $lastname=$user->lastname; … | |
My code below.. I will appreciate all the replies, suggestions and advice. <script> var imageUrl = new Array(); var imageTitle = new Array(); var imageCaption = new Array(); <?php for($counta=0; $counta<$count; $counta++) { echo "imageTitle[".$counta."]=\"".$imageTitle[$counta]."\";"; echo "imageUrl[".$counta."]=\"".$imageURI[$counta]."\";"; echo "imageCaption[".$counta."]=\"".$imageCaption[$counta]."\";"; } ?> jQuery.noConflict(); jQuery(document).ready(function() { var a=0; function changepicture() { jQuery("#slideshowpicture … | |
I'm using the GapAppStarter (HTML5) to build a small app. I've ran into a problem though, the emulator won't parse PHP no matter what I do. Basically, I can't run any PHP through it. Whether its in the html document, in a PHP document, or if I run it through … | |
Hey. So in just the past 2 days, my website has just recently experienced a tsunami of spam. It's a simple site where people anonymously post their confessions for others to read or submit themselves. But last night when I checked, there was around 20 posts of someone advertising their … | |
Hi pals , I need a particular script for spun text generation: We need to create a script that will generate a spun text using the data entered by the user, it can use JS/Ajax to make it user friendly. below you will see how the script will look like, … | |
Hi all, Basically, here's what I'm trying to do. I have a DB table called [B]products_ssd[/B]. This table contains the columns named: - id - manufacturer - item - description - price - size - pic This table contains the information for SSD drives, from varying manufacturers. Now, to the … | |
hi, i have a text area on a form which a user will enter a letter into it. on the page i have a recordset which holds all the clients names and addresses from the table. i want the user to be able to key in <<FirstName>> or <<Address>> into … | |
Hello, how can i send an email every 10 min? I want to query the database and then send an email. | |
Hello Everybody ! i have a few questions for u I have already made an appointment booking website on PHP using PHP Designer as editor and on WAMP platform, i run it on localhost. The website consults Database and puts forward the times available and lets users fix appointments and … | |
[code] mysql_query("UPDATE hostip SET time = '".date("d/m/y h:m:s")."' WHERE ipaddress = '".$ip."'"); [/code] Whats the problem in this query.... Its giving me syntax error... | |
Hi guys..Good Day! I just want a little help why my dynamic image from mySQL database will not display in firefox but with IE it will. Ive created a table to hold the image where i only save the image path which was located in the server folder img. This … | |
Hello, I am making a dynamic vertical sidebar which uses PHP to fetch data from the database. However, as it is dynamic I have to make sure it will work properly even if it has 100 lines of text. But I am facing a problem that it is going below … | |
[CODE] <?php $tags = $_POST["search-tags"]; $age = $_POST["search-age"]; $rating = $_POST["search-rating"]; $city = $_POST["search-city"]; $state = $_POST["search-state"]; if (!$tags = "") { $tags = " WHERE `tags`='$tags'"; } if (!$age = "") { $age = " WHERE `age`='$age'"; } if (!$rating = "") { $rating = " WHERE `rating`='$rating'"; } … | |
Hello, I have done a PHP project and on my localhost it is working perfectly but when I uploaded it on my webspace the CMS part of my website did not work as it is supposed to. The strange thing is that the client side of the website is working … | |
I'm trying to create a tiles matching (memory) game. I'm a beginner and I'm confused how exactly to start on creating one dimensional array for sessions. The tiles should be at least 30 with text values. When the user select first tile (reveal the text) and then user select second … | |
hi, what is the best password encryption to use on a website with mysql backend? i have used md5 and sha1 in the past however which is best? crypt? â—¦RJINDAEL ? what is best to use? they wont be recovering the password only sent a new password if forgotten. so … | |
Here is my code, I dont receive any error, but Im unable to set cookie Tried using of OB_START too. Thanks in Advance. [CODE]<?php include ("../includes/dbcon_.php"); $login_chk_sql = mysql_query("SELECT * FROM TCustomer WHERE UsrName = '$_POST[lusername]' AND LoginPwd = '$_POST[lpassword]'"); $login_row = mysql_fetch_array($login_chk_sql); if ($login_row['IsLoginActivated'] == "N") { header( 'Location: … | |
Hi Guys, Another puzzle for someone to try and crack... I have two divs inside the <body> that basically act as two versions of the same page. I need PHP to call one based on a variable retrieved from a database. As it stands, this is what I have... [CODE] … | |
Hey.. Is it possible to make PHP type arrays? Like keys? For example, I have an array of numbers, and an array of letters.. A = 10 B = 20 C = 30 And then I sort the numbers so that the highest number is at the top etc.. But, … | |
Im really stumped on trying to format user input. I have an input box where users enter data separated by commas. Then I explode it: [CODE] $data = $_POST['data']; $words = explode(',', $data); [/CODE] then I'm analyzing each word. Everything works perfectly when you enter the data correctly. However, if … | |
The best way to describe my problem is with an example... Consider, [CODE] $content = "This is a string <kjfkldsjf> <jslkdjfksd>"; [/CODE] What I want to do is clear everything in between the <...> tags no matter how long the length of text in between the left and right arrows … | |
I need a php code for company house XML gateway.... can any one send me... I need it tooo much .. plz help |
The End.