39,316 Topics

Member Avatar for
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
988
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
148
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
139
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
455
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
Member Avatar for deraad

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 …

Member Avatar for diafol
0
152
Member Avatar for asif49

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 …

Member Avatar for asif49
0
115
Member Avatar for 18engineer

I need a php code for company house XML gateway.... can any one send me... I need it tooo much .. plz help

Member Avatar for 18engineer
0
106
Member Avatar for showman13

I have what will, I'm sure, turn out to be a very simple calculation but I'm drawing a blank... Too many years since High School I think What I have is a table that maintains positions and these positions are stacked, with each successive row containing twice as many positions …

Member Avatar for showman13
0
211
Member Avatar for bossie09

Hello Every One Can some one provide me with a php download script......I would appreciate if its well commented so I can know what each line of code is doing. I understand the php uploading.....just need the download script to tap things off Thanks

Member Avatar for diafol
0
140
Member Avatar for mwenyenia07

I wanted to implement an ERP using joomla, and the open source CK-ERP module. i followed the instructions properly but when it reaches to the point of trying to access it from address bar(URL) as per installation instruction, it says and i quote "You Must Login To Access CK-ERP".It is …

Member Avatar for diafol
0
80
Member Avatar for narekm

Hi. I have an AJAX code which sends requests to multiple .php files in the server. All the files (that I send request) are using the same Db class and I think using sigleton pattern will help me out. But now I doubt that everytime I send request it creates …

Member Avatar for narekm
0
439

The End.