39,393 Topics

Member Avatar for
Member Avatar for slyme

I don't want slashes in my $_POST values. I want to deal with that kind if thing myself. I am having problems getting rid of said slashes. You can see the results of the following code here: [URL="http://www.slyme.co.uk/sanitise.php"]http://www.slyme.co.uk/sanitise.php[/URL] View the source - htmlentities seems to work, stripslashes doesn't unless I …

Member Avatar for slyme
0
170
Member Avatar for solarb

hi! I have a form to add content in database(addcontent.php) and one file which shows the content(content.php).Database has id,title,content columns. IS it possible to make the content.php to "$_GET" the id's from the database and show them on the page as : content.php?id=1 And other thing. i have buttons in …

Member Avatar for solarb
0
109
Member Avatar for lisles

i want to display a confirmation message when a user clicks delete.can any1 tell me how i could do it with javascript and php here's my code [code=php] $id=$r["sr_no"]; if($r['district']==1 || $r['district']=='North') { $r['district']=North; echo "<tr><td >{$r['sr_no']}</td><td >{$r['name']}</td><td >{$r['designation']}</td><td >{$r['dte']}</td><td >{$r['ph_o']}</td><td >{$r['ph_m']}</td><td >{$r['ph_r']}</td><td >{$r['district']}</td><td >{$r['taluka']}</td><td >{$r['pan_name']}</td><td><a href='edit.php?cmd=edit&id=$id'>Edit</a></td><td><a href='edit.php?cmd=delete&id=$id' >Delete</a></td></tr>"; echo …

Member Avatar for muralibobby2015
0
6K
Member Avatar for killgja

I have a working form passing the information to me via email but need to add one more item to the form which I'm not sure how to do or that it is possible with PHP. I have an image which needs to have sections change color on mouseover, mouse …

Member Avatar for maba001
0
99
Member Avatar for xuexue

[code=php] <?php mysql_connect("10.237.200.202", "root", "r00tb33r") or die(mysql_error()); mysql_select_db("spc_grinding_c1_dbo") or die(mysql_error()); $qt=mysql_query("SELECT DataReading FROM SPC_DataReading WHERE StationNumber = 'STATION2' && MachineName = 'GN-07' && ParameterName = 'outside diameter (2.4912)' && Date_Captured = '02-25-2010' && ReadingType = 'AVERAGE'") or die(mysql_error()); header ("Content-type: image/jpg"); $x_gap=40; // The gap between each point in y …

Member Avatar for maba001
0
129
Member Avatar for prem2

Hi, I need to insert a new value in middle of array. For ex, $arrayvariable=arrray("a","b","d"); I need to insert C in between b and d. Thank you in advance.

Member Avatar for prem2
1
176
Member Avatar for srya

hi friends, i have a simple login form .. but i dont know how to create the code for secure login form (i.e) if logged users only can access the specified functions like bid a project or post some ads like that Thanks, srya.

Member Avatar for Banderson
0
74
Member Avatar for ChadMcc

I am pretty new to PHP and altho I am ratehr good with linux and shell I was wondering if there is an easier different and maybe more efficient way of doing what I would like to do with a PHP script ? I know how to cat and sort …

Member Avatar for as.bhanuprakash
0
110
Member Avatar for corewizard
Member Avatar for chumsie
0
130
Member Avatar for lisles

hey can any 1 tell me how i can validate a name field to allow only alphabets and spaces.i tried this [code=php] else if(ereg('[ ^ A-Za-z ]', $name)) {echo "<h5>YOU CAN ENTER ONLY ALPHABETS</h5>"; $errCnt++; } [/code] but this allows only alphabets.i cannot enter a space

Member Avatar for muralibobby2015
0
89
Member Avatar for ramarose

can any one please help me,by telling how to create a check box. [CODE] <form name="frm" action="action.php"> <tr><td><input type="check box" name="box[]" value="--" </td></tr> </form> [/CODE] can any one tell me what should be passed as the value and what should the action .php contain... please help ..

Member Avatar for muralibobby2015
0
72
Member Avatar for Jabga

Hi there, I am creating an ecommerce web site and I am using magento. Payments will be inside in our country and local banks will give me payment forms and I will have to integrate it with my web, but I need some help, how can I integrate their form …

Member Avatar for Banderson
0
107
Member Avatar for dks1383

I have a website and everyday I put about 100 new links on it, my site shows links in some pages. The most recent links always are put in page no 1 and older links are put in page no 2, 3… So the content of page no 1 with …

Member Avatar for J_Search
0
93
Member Avatar for innovative1
Member Avatar for EvolutionFallen
0
70
Member Avatar for CFROG

I've noticed a lot of posts lately with "how do I do this?" and "how do I do that?" You've somehow managed to end up with an entire db full of data and not the slightest clue what to do with it or how to use it. Rome wasn't built …

Member Avatar for vsmash
0
104
Member Avatar for dan4domination

Hello, The first part of the script works regarding updating however for some reason and I cant figure out why its not inserting into my bookings table. Any ideas? [code] <?php session_start(); // is the one accessing this page logged in or not? if (!isset($_SESSION['logged']) || $_SESSION['logged'] !== 1) { …

Member Avatar for dan4domination
0
115
Member Avatar for pedroteixeira07

Hi Everyone, I'm having some issues in the construction of an algorithm for a project. This is just a fraction of the algorithm and my problem is this: I'm trying to build a PHP function that gets the values of the first and second rows of a table and subtract …

Member Avatar for diafol
0
136
Member Avatar for YingKang

I am writing a PHP program with sticky form. I want to use Text area for the "comments" part, but I couldn't make it work. Can anyone help? thanks. [code] <html> <head> <title>guestbook</title> <style type="text/css"> .error {color: #FF0000;} </style> </head> <body> <?php extract($_REQUEST); $errors = array(); if(isset($_REQUEST['submit'])) { validate_input(); if(count($errors) …

Member Avatar for YingKang
0
490
Member Avatar for sDJh

Hello folks, I just updated my homeserver to PHP 5.3.1 and I get now the following error when executing my scripts: [CODE]Cannot use string offset as an array[/CODE] The variable looks like: $bes[$a[3]][$a[4]][$a[6]], where $bes is a three-dimensional array that holds all information I need during runtime. The $a's can …

Member Avatar for ShawnCplus
0
174
Member Avatar for jocorok

I'm working on an app that logs on to another page, enters some data and posts form, then I display that data on my page. The basics of Curl are working great However, there are many steps that are still missing to complete the app. Is there some kind of …

Member Avatar for pritaeas
0
86
Member Avatar for farsen

Hi. Im new to PHP/SQL, and have this little tricky problem i cant find a solution for: [CODE]$result = mysql_query("SELECT * FROM Activities ORDER BY weekday"); while($row = mysql_fetch_array($result)) { echo $row['weekday']; }[/CODE] Now this will output Monday Sunday Thursday Tuesday etc. - in alpabetic order. Instead, i want it …

Member Avatar for pritaeas
0
81
Member Avatar for tryphy

I have some doubts in form submission. The function that i need is adding a prompt dialog box to confirm befor the user submits the form. Eg: The user is entering some data in the form and he clicks submit..a dialog box appears and says " Are you sure you …

Member Avatar for tryphy
0
1K
Member Avatar for tryphy

Hi people, My issue is more of a MySQL issue than php. I am trying to store a 3digit integer value with a leading Zeros in front such as 001 i have a company table , which auto increments the id as 001, 002, 003...and so on... In the company …

Member Avatar for maks91
0
142
Member Avatar for forzadraco

i have a problem: i want redirect everything page in url: ex: [url]http://dracotech.biz[/url] to [url]http://www.dracotech.biz[/url] . want to add www. in everything request from user.. maybe with mode rewrite in apache but i didn't find way how to do it..

Member Avatar for rsleventhal
0
173
Member Avatar for cane23

i have a multiple select drop down menu where i select some courses however my problem is that i was to store the selected courses in an array for further use. i have tried creating an array but is is coming up empty. Can someone help me out here here …

Member Avatar for rajabhaskar525
0
85
Member Avatar for moobaa

Hi all.... Ok, so I've got 3 components, all working independently: 1) Simple HTML page 2) PHP Script (which produces 3 arrays) 3) Javascript (which processes 3 arrays) Now, I need to hook them all together through the HTML. The PHP should be called on the loading of the page, …

Member Avatar for NettSite
0
550
Member Avatar for ajithperuva

How can i rewrite [url]http://localhost/shopboxcms/?productid=62953[/url] to [url]http://localhost/shopboxcms/product/62953[/url] in wordpress using .hraccess file Please help me

Member Avatar for rajabhaskar525
0
93
Member Avatar for prem2

Hi, I am new to php.I want to read a word by word from a file.When I use fgets it read line by line.When i use fread then it read full contents from a file.File_get_contents read a full contents from a file. I need to read a each single word …

Member Avatar for prem2
0
2K
Member Avatar for muralibobby2015

hai... i want to dispaly table like this. actually i am fetching data from database. i am displaying data in tables. but i want to display like column wise after row wise. [CODE] A F K B G L C H M D I N E J [/CODE] like this. …

Member Avatar for urtrivedi
0
112
Member Avatar for footsouljaN

I need guidance on how to show live feeds on my website from a software...All ideas and solutions are highly welcomed....

Member Avatar for footsouljaN
0
68

The End.