39,323 Topics

Member Avatar for
Member Avatar for kb.c7

i want the month to date reports from starting of this month to present day. how to do that in php

Member Avatar for almostbob
0
62
Member Avatar for jetlife76

Ok guys i am working on a program that will compute the distance in miles from Chicago or dallas(radio buttons)to specific destinations. The destination cities are in a selection list. The output should be the distance between the two cities, the time it would take to drive at 60 mph. …

Member Avatar for jetlife76
0
111
Member Avatar for klemme

Hi guys, I would like to validate some form input, and only allow the folowing: letters, numbers, /, - if(!preg_match("*[0-9A-Za-z,-,/]", $url_key)){ $erros[1] = '<small>Error submitting url key!</small>'; } Which is not working.. Its not the point only to allow one / or - But only letters, numbers and /- in …

Member Avatar for pritaeas
0
2K
Member Avatar for agam360

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 …

0
106
Member Avatar for techyworld

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 …

Member Avatar for pritaeas
0
434
Member Avatar for Galbatorix

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 …

Member Avatar for Stefano Mtangoo
0
97
Member Avatar for mkab

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 …

0
135
Member Avatar for Mayank23

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"); …

Member Avatar for Stefano Mtangoo
0
576
Member Avatar for umandajayo

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 …

Member Avatar for umandajayo
0
64
Member Avatar for 54uydf

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 …

Member Avatar for niranga
0
992
Member Avatar for amee01

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; …

Member Avatar for broj1
-1
92
Member Avatar for jovypinoy

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 …

Member Avatar for jovypinoy
0
130
Member Avatar for persianprez

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 …

Member Avatar for peter_budo
0
68
Member Avatar for louie540

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 …

Member Avatar for TySkby
0
149
Member Avatar for calebcook
Member Avatar for logicslab

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, …

0
89
Member Avatar for flynismo

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 …

Member Avatar for diafol
0
140
Member Avatar for mrhankey

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 …

Member Avatar for pritaeas
0
58
Member Avatar for extjac

Hello, how can i send an email every 10 min? I want to query the database and then send an email.

Member Avatar for pritaeas
0
81
Member Avatar for siva28

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 …

Member Avatar for diafol
0
95
Member Avatar for Majestics

[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...

Member Avatar for Majestics
0
57
Member Avatar for PinoyDev

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 …

Member Avatar for KazmiLahore
0
192
Member Avatar for Nahiyan

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 …

Member Avatar for Zagga
-2
465
Member Avatar for WickidGRAFX

[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'"; } …

Member Avatar for diafol
0
158
Member Avatar for marimifs

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 …

Member Avatar for Stefano Mtangoo
0
244
Member Avatar for kryz

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 …

Member Avatar for Stefano Mtangoo
0
202
Member Avatar for mrhankey

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 …

Member Avatar for Stefano Mtangoo
0
147
Member Avatar for aryajasi

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: …

Member Avatar for Stefano Mtangoo
0
77
Member Avatar for jakizak

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] …

Member Avatar for Stefano Mtangoo
0
242
Member Avatar for phorce

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, …

0
71

The End.