39,316 Topics

Member Avatar for
Member Avatar for Szabi Zsoldos

Hey guys, Could you help me understand how to implement [CODE]mysql_real_escape_string[/CODE] to prevent injection in this code ? [CODE] <?php if(loggedin()){ echo "You are already logged in."; } else { if($_POST['submit']){ if($_POST['username'] && $_POST['password']) { $username = $_POST['username']; $password = $_POST['password']; $password = md5($password); $res = mysql_query("SELECT * FROM users …

Member Avatar for Szabi Zsoldos
0
143
Member Avatar for sugikrish

Hi friends, Is this possible. i want to make link in this list. if you know pls say your suggestion. <select> <option>Report</option> <option><a href="program.php">Billing information</a></option> </select>

Member Avatar for sugikrish
0
76
Member Avatar for smoh

Hi all, I'm an aspiring PHP developer doing some side jobs just for fun and I was wondering if someone can help me out with this. I'm working on a project now which stores $_POST information into a separate table called 'stats'. I'm trying to create an 'admin backend' for …

Member Avatar for urtrivedi
0
80
Member Avatar for Reliable

Hello Everyone, I know that you pas variables with the $_GET method, but i am unsure as to how or why. When is this action called for? Thanks for helping me clear up my confusion. David

Member Avatar for rajarajan2017
0
119
Member Avatar for BlueCharge

Hello everyone! Okay so i am quite far into my website and suffering a annoying problem. What i want the code to do is to get all the achievements from the table 'achievementsList' and then match the ones that are in there with the ones that the user has. The …

Member Avatar for BlueCharge
0
88
Member Avatar for Virangya

Hello.. i have this problem.. im doing some kind of late static binding. im really a new to this and don't know how to solve this problem. please help me to solve it... What i want to do is instead of using `static:: $arr[0].",".static:: $arr[1]` i want to iterate though …

Member Avatar for somedude3488
0
133
Member Avatar for nufar

I would like to open the following link in a new window , can you pls. help me - [code=php]<?php $userfile= file_get_contents("out.txt"); $users = explode("\n",$userfile); foreach ($users as $user) { list($name, $cor) = explode(" ", $user); echo "<a href=\"http://db.yeastgenome.org/cgi-bin/locus.pl?locus=".$name."\">$name </a>"."<br/>"; } ?>[/code] thanks in advanced

Member Avatar for anduma
0
275
Member Avatar for janpieterz

Hi guys, I've searched this forum and could not find any solution to it. The problem is this: I'm getting data from an external source every 10 seconds(approximately). I want to execute some script every 10 seconds but there can't be even the smallest delay. So if I would use …

Member Avatar for chrishea
0
141
Member Avatar for Encrypted

Hey everyone, I don't even know where to begin with this. I need to limit folder access to only those members who are allowed to access them. For example, I'm creating a folder /5/ within a folder called /orderreports/ for the order id 5. I need to check which user …

Member Avatar for Usernamex235
0
162
Member Avatar for haribo83

I have a php page that displays records from a sql database. Each record is in a repeat region and has a submit form nect to it. The problem is if I submit one of the forms below the first in the list, the first form is validated and the …

Member Avatar for diafol
0
81
Member Avatar for f.damati

I am developing a web page which retrieve data from a seperate mysql server on the same network musql_connect('192.16.1.2:3306', 'root', '123'); but ana error shows Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '192.16.1.2' (13) in /var/www/html/index.php on line 3 the 2 servers are on 2 different virtual network …

Member Avatar for f.damati
0
156
Member Avatar for RisTar

Simple HTML form is not working properly... attached is a simple HTML form. When i print the super global $_POST[] i don't get any information from the text fields. Im really frustrated... I can't find any problem with the code... HTML [CODE] <form method="POST" action="functions/process_payment.php" > <table id="creditCards"> <tr> <td><input …

Member Avatar for almostbob
0
212
Member Avatar for changeco

I have two php pages - home.php and player.php... home.php has a loop to show all the products EID has associated with it including TOTALPLAYS, PLAYCOUNT, USER, PASS, PRODUCT and PRODUCTPATH... player.php has a small script to find out if PLAYCOUNT > TOTALPLAYS as well as pulling in the PRODUCTPATH …

Member Avatar for changeco
0
124
Member Avatar for ashvyas

i m designing a CRM for real Estate company. dis is d code i hve used to log d details of client :- <?php session_start(); if($_SESSION['Name']=='') { echo "<script>window.location='login.html';</script>"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CALL LOG DETAILS</title> …

Member Avatar for sourcebits
0
326
Member Avatar for Pityu

Hey. I have the next problem: I've created a joomla-like administrator page to a site I just have to make. You can add, edit and delete products and categories. Now, my problem is: No matter which product or category u try to edit (it is listed in a table with …

Member Avatar for sourcebits
0
105
Member Avatar for rukshilag

This is a table customization in a search form. I need the ticked checkbox values to be passed to the pdf.php in order for the table to be customized. but the table is not filled nor is it customised. [CODE]<?php //access incoming name, id or radio button values $cs = …

Member Avatar for Zagga
0
167
Member Avatar for haribo83

Is it possible to show the details of each record from the recordset in a show hide way? Each record would have a title - I need the sliding div to show the relevant info when the title is clicked on. Don't know if i've made this very clear so …

Member Avatar for fxm
0
125
Member Avatar for shekar.bdn

hi, i have one problem ,table values are not displaying.i wana which used in the table.

Member Avatar for qualitybrains
0
73
Member Avatar for sugikrish

Hi friends, How is assigning the value to text box which is selected in the list.and then in .NET or VB have crystal report and grid view for showing report from. like this any other option in php? Only using table wil we show the report?

Member Avatar for rajarajan2017
0
78
Member Avatar for WaleedaaN

hello , i have products i create db id,productname,price ------ 1,cars,2000 2,renttv,20 3,blah,blah... now i want make a checkbox for all this db when you select the check box down give you total price like if you select cars! TOTAL PRICE: $2000 if you select 2 product like cars and …

Member Avatar for urtrivedi
0
95
Member Avatar for sugikrish

hi friends, Assume , I create 4 fields in tables.3rd field contain some null values. How we reporting this . If i use "mysql_fetch_array" means it showing many empty spaces. If you know send that coding.

Member Avatar for rajarajan2017
0
32
Member Avatar for MDanz

how do i do a table pyramid? e.g. 1st column(1 row), 2nd column(2rows), 3rd column(3rows)

Member Avatar for rajarajan2017
0
66
Member Avatar for muralibobby2015

hello.. i have this url.. [CODE]http://localhost/flowerstore/flowerdep.php?cat=ROSE[/CODE] how to rewrite like this. [CODE]http://localhost/flowerstore/ROSE[/CODE] i am trying lot...but no use...any body help

Member Avatar for muralibobby2015
0
71
Member Avatar for Athiththan

Hello all, I am new to the webhosting...and now i am in a position to configure my Server(WAMP) into https...I tried by following a step by step procedure which is published in a web page....I created the Certificate and the Key and if i type "https://localhost", i can go to …

Member Avatar for rajarajan2017
0
112
Member Avatar for sinyi

<td> <select name="sourceitems"> <?php $Qry1->text = "SELECT * FROM sourceitems"; $Qry1->openSQL(); $Qry1->first(); while(!$Qry1->eof){ $SourceID=$Qry1->fieldByName("SourceID"); $ItemName=$Qry1->fieldByName("ItemName"); $selected=""; if ($SourceID == $_POST['SourceID'] ) $selected="selected"; print "<option value=\"$SourceID\" $selected> $ItemName </option>"; $Qry1->next(); } ?> </select> </td> Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in D:\Webroot\TM\editData.php on line 179 …

Member Avatar for rajarajan2017
0
264
Member Avatar for niths

hi all, i am having a page. where we can see list of files in a table and in every row download link is there.we can download that file by clicking on download link, so now i need a delete link also which deletes the selected file by using its …

Member Avatar for etftw
0
183
Member Avatar for jjpennett

No matter what I try, I keep getting Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in ___ I tried array also, but here's the code for the login page. About 23 lines down. Also, I'm new to PHP, as in, today new. [ICODE] /* Start session …

Member Avatar for rajarajan2017
0
89
Member Avatar for sjeggels

Hi there, I am still experiencing problems to populate the dropdown menu in my form (mysettings.php) with the correct contents from the database. Herewith is what I have. <?php /********************** MYSETTINGS.PHP*************** *********** This updates user settings and password **************************** ********************** **********/ include 'dbc.php'; page_protect(); $rs_settings = mysql_query ("select * from …

Member Avatar for rajarajan2017
0
230
Member Avatar for rukshilag

Im trying to customise search fields and then display in a pdf but the code just doesnt work. can someone take a look and see why exactly this is not working? if u see any mistakes? [CODE]<?php //access incoming name, id or radio button values $cs = $_GET['cs']; $name=$_GET['name']; $uni=$_GET['uni']; …

Member Avatar for urtrivedi
0
148
Member Avatar for kristo5747

Greetings! I have an app that my users rely to update customer data in our local database. I want to add a "control" whereby a check for customer number is done to make sure it exists. I started with this simple script [code] <?php //variable declaration $customer_id = '257'; // …

Member Avatar for kristo5747
0
111

The End.