52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for websurfer

I', am a newbie and trying to get a better understanding of securing mysql queries vs. injections. I found this code here below, which seems to work nicely and makes it possible to automatically "clean" all inputs coming thru `$_GET`, `$_POST` and `$_COOKIE`. But in some forums I was told …

Web Development php
Member Avatar for websurfer
0
155
Member Avatar for philip.s

Hi guy's, I am missing something, what on earth is wrong with this script, I can not get it to insert all my values into a table. [CODE] $host="localhost"; // Host name $username="root"; // Mysql username $password="1234"; // Mysql password $db_name="database"; // Database name $tbl_name="input table"; // Table name $que …

Web Development mysql php programming-construct
Member Avatar for Caeon
0
83
Member Avatar for shipy013

How do I create a constant No direct script access allowed. As is the Joomla CMS.? [CODE] // no direct access defined( '_JEXEC' ) or die( 'Restricted access' );[/CODE] [CODE]if ( ! defined('BASEPATH')) exit('No direct script access allowed');[/CODE]

Web Development cms php
Member Avatar for hielo
0
7K
Member Avatar for Viruthagiri

Ok guys I'm getting trouble with my php echo command. All the codes after the first echo command, displaying in browser. I mean i have problem with my php echo. I tried in several scripts. I'm using wampserver 2.0. I've given the example of my error. Please solve it ASAP. …

Web Development apache php
Member Avatar for Viruthagiri
0
184
Member Avatar for Viruthagiri

Guys I have 2 files. index.php and connect.php I'm getting database connection error. This is the error i got [QUOTE]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in H:\wamp\www\index.php on line 3[/QUOTE] Then i added the error detection code in the third line. I got the following …

Web Development php session
Member Avatar for richieking
0
202
Member Avatar for 00100110

Hi guys, I'm currently working on an online shop project. I'm kinda stuck on the payment part. I need to make it possible for people to pay with visa and credit card. Only problem is, i have no clue on how to start with programming this. Or maybe there are …

Web Development php
Member Avatar for 00100110
0
73
Member Avatar for curious_me

Please somebody help me how to get the values of Radio Button arrays. here are my codes [CODE]<?php include("conn.php"); $query = "SELECT * FROM pointsprof, subject WHERE pointsprof.Total >= subject.IM108"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result) or die(mysql_error()); do {echo '<form action="subjectload.php" method="POST" name="theForm" onsubmit="return validateFormOnSubmit(this)"> <form id="form1" …

Web Development php
Member Avatar for richieking
0
1K
Member Avatar for mahe4us

Hi everyone, I have set the email piping to script in cpanel. Also in script i send a acknowledge mail to me to confirm whether the script works or not. But the script works fine and i have received the mail to my inbox. I got one more mail which …

Web Development cpanel email php
Member Avatar for kerryJames
0
338
Member Avatar for mickeyci

I have no problem connecting to database, and the form is okay i guess. ¿Do anybody see the problem in here? It keeps returning me ERROR! PHP code: [code=php] <?php mysql_connect("$host", "$mysql_user", "$mysql_pass")or die("Error connecting."); mysql_select_db(users)or die("Can't access to database."); if($id) { $sql = 'UPDATE members SET '; $sql .= …

Web Development php sql
Member Avatar for anojs
0
167
Member Avatar for GDICommander

Hello, everyone! I'm not able to access a WSDL file on a remote machine. I am using DOSGI and I'm creating a service in a OSGI bundle. My container is Apache Felix. DOSGI takes care of exposing a OSGI service as Web services. DOSGI publishes a WSDL at [url]http://localhost:9595/prototype1Service?WSDL[/url] on …

Member Avatar for GDICommander
0
205
Member Avatar for nikc121

I know this is probable a easy one for most of you...But this is my first Javascript. I am trying to write a code that will add two numbers entered by a user and calculate the sum. When I wrote the code inside the HTML it worked fine. But I …

Web Development javascript xml
Member Avatar for kracko
0
932
Member Avatar for dschuett

Ok, so I will do my best at explaining this... I have set up a database of our company's Parts Ordered forms. I have created a php form that allows users to inject new POs into the database. Which works successfully. I am working on the search form to allow …

Web Development mysql php seo
Member Avatar for richieking
0
3K
Member Avatar for RossCode

Hello, I need some help understanding how to display information from the following array and what this method of storage and array is called. The information held in the database looks like this [CODE]{"option1":"1234","option2":"ABCD"}[/CODE] How do I work with these values? I know how to get the array as a …

Web Development php storage
Member Avatar for Kieran Y5
0
124
Member Avatar for ivan3510

Hi! Sory for my bad english. I don't know the name of it. Can you write. Thanks. See the picture (attached). Let's say that the name of it is "little window". I want to make on my site that this disappear, and when I something type, I want that this …

Web Development html-css javascript
Member Avatar for ivan3510
0
97
Member Avatar for akvlko

Hi There! I'm Seeking for a Function by which I can Execute mySQL Queries for any table.

Web Development php sql
Member Avatar for akvlko
0
162
Member Avatar for pbcomput

Hi all, I m newbie in .htaccess i am using .htaccess to make url SEO friendly. I can access admin in localhost of my pc. but when i put all this files to my server i can't access admin. it shows me white blank page. without any message or error. …

Web Development apache php seo
Member Avatar for pbcomput
0
39K
Member Avatar for sinZ

I'm trying to have my code display all pictures for a specific ID, this is the current code that is only showing a single picture to be displayed, how can I get it to display the others as well? thanks [CODE]<?php $id=$_REQUEST['id']; $result=mysql_query("SELECT * FROM gallery_work_thumbnail WHERE id=$id"); while($row=mysql_fetch_array($result)) { …

Web Development php
Member Avatar for Lsmjudoka
0
101
Member Avatar for prakashsd

Hi, I've bought a hosting space from a hosting space provider for my website. It is a Windows 2008 Server. I have an enquriy form that needs to be submitted to my email. I'm using a simple php mail program for that. But I'm getting "HTTP Error 500.0 - Internal …

Web Development php
Member Avatar for hielo
0
143
Member Avatar for teedoff

I have posted this in the AJAX forum, but no responses so I thought maybe I might have asked or went about this from the wrong angle. I have a search page written in CF. It has several form fields that a user can enter any combination of search criteria …

Web Development coldfusion
Member Avatar for jsmall26
0
136
Member Avatar for ivan3510

Hi! Sory for my bad english. Is it posible to make in php a html compiler (program that will check if there is lexical or semantic mistakes)? (eg. If someone write: "<html><haed>", the program will check and write message that is error in code and that must be writen "<html><head>"). …

Web Development html-css php
Member Avatar for ivan3510
0
125
Member Avatar for Capt Spaghetti

Thanks to a forum member I have moved a little forward but now I am stumped on how to convert a passed value to a variable so it can be used to search a MySQL database. When I use the passed variable as the value I receive the following error: …

Web Development mysql php
Member Avatar for Capt Spaghetti
0
133
Member Avatar for sassenach

Hi, I am using jquery to send a form: Copy code [code] jQuery(document).ready(function($) { //References var pages = $('div#paging_menu a'); var loading = $("div#loading"); var content = $("#print_full_list"); //show loading bar function showLoading(){ loading .css({visibility:"visible"}) .css({opacity:"1"}) .css({display:"block"}) ; } //hide loading bar function hideLoading(){ loading.fadeTo(1000, 0); }; //Manage click events …

Member Avatar for Airshow
0
178
Member Avatar for zive_te88

Hi, My name is Zivko and I have a question for You. I'm working on a projekt. I have to do an application in php. It is supposed to be like this: I have a php web site.In that web site i have a large textbox or message text area. …

Web Development php
Member Avatar for chrishea
0
437
Member Avatar for ceeandcee

Good Morning, I am hoping someone can help me. I am not even sure if this is possible. I am building a hockey pool site and I would like to automatically update the value of a variable once a week or 26 times. I would like to use the clock …

Web Development php
Member Avatar for ceeandcee
0
110
Member Avatar for arunpatyal1987
Member Avatar for natchattack
0
206
Member Avatar for panhwer89

Hi dear all.. I have done email attachment in php, code is working fine but output is not coming fine. here is code. <?php $fileatt = "file/imagelks.jpeg"; // Path to the file $fileatt_type = "application/octet-stream"; // File Type $fileatt_name = "imagelks.jpeg"; // Filename that will be used for the file …

Web Development email file-stream php
Member Avatar for Zagga
0
126
Member Avatar for ranu jain

Hello i want that my client subbmit his query by my site n i can resieve it in my gmail acccount . what should i do for that. thanks

Web Development asp.net
Member Avatar for guru_sarkar
0
106
Member Avatar for fobos

Hello CF Coders, I have another question. Basically i want to use a cfif statement with out haveing to use it until im ready. Ill give an example and problem i getting. page.cfm [CODE=CFM] <body> <cfif #URL.get#> or <cfif isDefined(URL.get)> // execute code </cfif> <a href="page.cfm?get=this">click</a> </body> [/CODE] When i …

Web Development coldfusion
Member Avatar for arrgh
0
167
Member Avatar for opteenslippers

For a website about tours I made a form to request for a quotation. There's quite a lot of input fields, some of them with dropdown menu's where the user can choose for example one of the tour destinations. I would like to know if I can pass variables from …

Web Development php
Member Avatar for diafol
0
138
Member Avatar for Capt Spaghetti

I am trying (unsuccessfully) to pass a variable to another php file. I am able to retrieve the information from MySQL, and present it on the web page but I am unable to pass the "hot link" ID to another php file. I am a beginner so it must be …

Web Development php
Member Avatar for P0lT10n
0
141
Member Avatar for natchattack

This is a simple problem but one of those that eats at your brains the more you think of it. I basically want to write a a variable to a php file ( the variable name itself not the contents ). The code i have below. [CODE] // we will …

Web Development php
Member Avatar for natchattack
0
85
Member Avatar for kracko

Hey ppl. I use apach and i've got a problem that i cant fix when i write this code .. [CODE] <img src="Z:/home/localhost/www/ImageGallery/Images/mmbg3xmx3g.gif" width="100px" height="100px" name="imgPreview" /> [/CODE] no image is shown. Whats wrong? The image surely exists in the specified path. And one more problem with this is that …

Web Development php
Member Avatar for kracko
0
105
Member Avatar for ManishS

I made a Login and logout page but whenever i login and press backspace i am redirected to the login page .... what to do to prevent it from going to the login page even if i have not pressed logout option

Web Development php
Member Avatar for qazplm114477
0
61
Member Avatar for olivebibi

Good evening, I'm trying to generate an xml file based upon the result of an SQL query. I'm making some good progress so far but there is 2 problems I can seem to solve. My php code is the following: [CODE]<?php require ("Connection.php"); $db_handle = mysql_connect($server, $user_name, $password); //load the …

Web Development php sql xml
Member Avatar for P0lT10n
0
256
Member Avatar for raul8

I want to call a jsp form my PHP code. I caqme across that it can be done using XML-RPC. Is it possible & where I can find any tutorials for this? Thank You

Web Development php xml
Member Avatar for P0lT10n
0
86
Member Avatar for Rated X

I am working on a assignment in PHP but cannot get my results to show up now on a separate page, or at all. After adding in my IF statements, everything stopped working but I am not getting an error message. Any help would be appreciated. I have supplied all …

Web Development html-css php xml
Member Avatar for Rated X
0
104
Member Avatar for Premsathishbe

i am getting the error as "Can't move focus to the control because it is incisible, not enabled , or a type that does not accept the focus" ,when i am trying open the login page plz help to give suggestions to solve this problem. and my scipt is [CODE]function …

Web Development javascript
Member Avatar for Taywin
0
102
Member Avatar for kobi

hello, I have this button element which i can recognize only through his xptah FORM[1]/TABLE[1]/TBODY[1]/TR[1]/TD[2]/TABLE[5]/TBODY[1]/TR[1]/TD[1]/A[1]/IMG[1] how can preform a click runing a java script Thanks Kobi

Web Development javascript
Member Avatar for Taywin
0
144
Member Avatar for niche1

This works: $result = mysql_query("SELECT * FROM plan WHERE begin BETWEEN '2010-09-01' AND '2010-09-30'") or die(mysql_error()); I need some version of this to work where begin and end are currently timestamped columns in my table: $result = mysql_query("SELECT * FROM plan WHERE date("Y-m-d") BETWEEN begin AND end") or die(mysql_error()); What's …

Web Development php
Member Avatar for niche1
0
88
Member Avatar for bhavesh561988

how to know idle user without refresing page using ajax plz give me solution and i also change the icon when user is idle like a facebook if our friend is online then its icon is green but when he is idle its icon r changed without reloading page ...give …

Web Development javascript
Member Avatar for Brillig
0
63
Member Avatar for dwdata

I have the need for a FUNCTION: Transpose($Song, $direction) The logic I need is pretty straight forward, but I am having a hard time replicating it using PHP functions. I will try to break it down to it's simplest form: I have a field that has several lines of text. …

Web Development audio php
Member Avatar for diafol
0
222
Member Avatar for richardmorris

I want to be able to open a window with a variable. For example, I will use domain.com?reference=1234- This link will open a pop up window as follows: [CODE]<a href="javascript:popUp('http://www.domain.co.uk/staff/tpr/update_action_log.php?action_reference=<?php echo $row2['action_reference']; ?>')" title="Click Here edit this entry"><?php echo $row2['action_reference']; ?></a>[/CODE] When I open this window, it is always showing …

Web Development javascript php
Member Avatar for Airshow
0
206
Member Avatar for AboJaD

Hello, I am trying to get the element of an option, but seems my code is not working: <script type="text/javascript"> /*<![CDATA[*/ function reportsendipp() { if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { ; } } xmlhttp.open("GET","report_member.php?report=" + document.getElementById("ipps").value + "&&member=" …

Web Development javascript xml
Member Avatar for Airshow
0
375
Member Avatar for subhankar02dey

I have a multiple selectable listbox in which I can select maximum 5 data I have 5 textboxes Now I want to get the selected items texts from the listbox and populate those into the 5 textboxes when the user finishes selectiong from the listbox How can it be possible …

Web Development javascript
Member Avatar for Protuberance
0
3K
Member Avatar for nikita.chandra

hi ! I am working on a project Online Bus Ticket Booking System. I want to add online payment module. Have no Experience . Anyone can tell me the basic steps .... thanks in advance!

Web Development java-jsp
Member Avatar for CBski
0
220
Member Avatar for vinc_1418

Hi, am having problem for comma delimited files, i wanna read data from different lines and also reading a specific line to display it in a text box or a label!!! anyone can help plz

Web Development asp.net
Member Avatar for MichaelWClark
0
81
Member Avatar for AngelicOne

I have a gridview that is being generated at runtime. When there is no records return, the gridview becomes hidden and it shows empty page which is quite confusing for the user to distinguish whether it's hidden or the page doesn't load successfully. What I need to do is to …

Web Development asp.net image
Member Avatar for guru_sarkar
0
92
Member Avatar for chintan@dani

Hello Experts, I am developing application in which i use ajax.but i need to pass more than one variable to url for further processing. I can't use [CODE] var url="availabilitycheck.php?t="+value //it works var url="availabilitycheck.php?t="+value+"&hid="+hd1+"&chkin="+chkin; //not valid[/CODE] How can i send other variables.?? I tried using session that works but it …

Web Development javascript session
Member Avatar for Taywin
0
215
Member Avatar for dandixon

I am getting this error and i cant seem to figure out why [CODE] Warning: file_get_contents(C:/xampp/htdocs) [function.file-get-contents]: failed to open stream: Permission denied in C:\xampp\htdocs\ucuk\news.php on line 157 [/CODE] heres my code [CODE]<?php // Build SQL Query $query = ("SELECT * FROM heading LEFT JOIN sub_heading ON heading.heading_id = sub_heading.month"); …

Web Development file-stream php
Member Avatar for nonshatter
0
154
Member Avatar for hotice47

hi to all i am making a chat app using php/mysql i am faceing a problem here ..i want that user click on button and it give him a random online user from database...but dont know how to do it ..i am trying.. [CODE]{ $i=0; while ($i < $num) { …

Web Development javascript mysql php
Member Avatar for Taywin
0
244

The End.