39,323 Topics

Member Avatar for
Member Avatar for scilec

Hi, I've been teaching myself php out of necessity for a web project at work and I've run into a situation in which I currently have three different php pages that are used to display three different data grids. However, most of the code is the same, aside from the …

Member Avatar for scilec
0
163
Member Avatar for saravanan@daniw

Passing value HI I have multiple row with hyperlink which is loop , when i click first row link ,a first row data has to retrive in the next page text box. Any idea from anyone. The example Page: Here when i click apply it has [url]http://recruitment.focusdev.co.uk/en/vacancies[/url]

Member Avatar for karthik_ppts
0
72
Member Avatar for unversity top

can anyone help me with php code for my form ? <table border="0" align="left" cellpadding="2" cellspacing="0" bgcolor="transparent" style="text-align:left;"> <tr> <td style="" colspan="2"> <span style="text-align: left"><font face="Verdana" size="2" color="#000000"><b style="font-size:20px;">Contact Form</b></font><font face="Verdana" size="2" color="#000000"></font><font face="Verdana" size="2" color="#000000"></font></span><span style="text-align: left"><font face="Verdana" size="2" color="#000000"></font></span><font face="Verdana" size="2" color="#000000"><br /> <br /></font> </td> </tr> <tr …

Member Avatar for karthik_ppts
0
174
Member Avatar for psyb0rg

I'm trying to upload a file to a remote server using curl. The server requires that the file contents should be in the post body and the file name should be in the header. This is the code I', using : [CODE] $fp = fopen($fileLocation, "r"); $ch = curl_init(); curl_setopt($ch, …

Member Avatar for gieseni
0
1K
Member Avatar for iau

I am quite new in php and I wonder is it possible to create a textbox inside a button? I wish the button consist of a textbox inside its value. Anyone can help me??

Member Avatar for jonadams51
0
98
Member Avatar for abhi10kumar

I want use checkbox's value, but I have a problem. I am not submitting the form, using AJAX records are changing. When I click checkbox, courses checkbox value changes, and if I uncheck checkbox the courses combobox will be same as before. My page have pagination, now I have problem, …

Member Avatar for twiss
0
1K
Member Avatar for peter_carlos

I am using : appache 2.2.11 php :5.3.0 MySql 5.1.36 The problem is that I am there are some script not working nether on IE8 nor on firefox 4 in offline But these scripts are working fine on IE 8 using online !! And these scripts work offline on other …

Member Avatar for peter_carlos
0
432
Member Avatar for masterjiraya

I have two files here.... index.html and postback.php index.html [CODE=HTML] <html> <head> <script type="text/javascript"> function showUser(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && …

Member Avatar for masterjiraya
0
183
Member Avatar for Kawaljeet Kaur

hello to all,its kawaljeet here.. can anybody help me to solve that how can a session be expired in php,i.e.wat is the syntax used to expire a session in php file... pls help me...thanks

Member Avatar for EmilyJohnson
0
246
Member Avatar for mangel.murti

hi all i have a login form after validation it redirect to other domain what i want if that user is valid then on other domain (website) it should be auto login? can i fire submit button click from my domain to other domain tnx

Member Avatar for urtrivedi
0
116
Member Avatar for stockstalker

If you are one of the odd balls out there who puts all of your PHP code into the index.php file (I hate having to navigation thru dozens of separate files), will you run into performance problems if your file has over 10,000 lines of code? (The web server's cache …

Member Avatar for diafol
0
55
Member Avatar for NuGG

I have the following code witch is used to display HTML from an XML file. The XML file itself comes from a form POST where a "\" is added in after various HTML tags. Is there anyway I can modify the script below to hide/remove the "\" when the XML …

Member Avatar for ko ko
0
1K
Member Avatar for Doctor Inferno

I currently have a caching problem on my flash site. I have set the htaccess file to: [CODE]Header set Cache-Control "no-cache"[/CODE] But when I refresh the page, the images on the flash site still shows the old one from the cache. I also tried setting max age to 1, and …

Member Avatar for twiss
0
90
Member Avatar for kiran33

for ($rows = 0; $rows < $totrow; $rows++) { echo "<tr>"; { echo "<td width=7% align=center bgcolor=#D4BFFF >" .$sr; echo "</td>"; ?> <td width=40%> <select name="book<?php echo $sr;?>" style="width:80%"> <option value="-1">-----Select Book-----</option> <?php $qr_title=mysql_query("select * from book where Dels='N' order by Bk_nm asc"); while($row_title=mysql_fetch_array($qr_title)) { ?><option value="<?php echo $row_title['Bk_id'];?>"<?php if($row_title['Bk_id']==$ad) …

Member Avatar for twiss
0
97
Member Avatar for rpv_sen

Hi Friends I am trying to get the value of select dropdown item in a text box, but i am unable to get it. I am using ajax for dropdowm method. please any one can help one.php [CODE]<?php session_start(); include("config.php"); // Check, if username session is NOT set then this …

Member Avatar for twiss
0
1K
Member Avatar for sajidk25

hi every one, I m tring to make on webapplication with PHP and MSSQL2005.This simple website has some report and chart those r dynamically update from my MSSQL db.I m using fusion chart free for charting. I have used this codes for report.[CODE]<?php include('DBConn.php'); include("FusionCharts_Gen.php"); $link = connectToDB(); $stmt=mssql_init("AreaWiseMonthlyRpt", $link); …

Member Avatar for urtrivedi
0
242
Member Avatar for satsum

[CODE]//===============Castle Siege Time==================== $castlesiege="16 AM"; //=============END Castle Siege Time=================== //=============SERVER EVENTS AND TIPS============ //Events $event1='Drop Event Today'; $event2='Find GM in Lorenica'; $event3='Race with unila in Lorencia'; //Tips $tips1='Server experience changed'; $tips2='New spots have been add'; $tips3='New items at lorencia bar'; //===========END SERVER EVENTS AND TIPS========== //=======POLL PASSWORD==== //Require when you …

Member Avatar for urtrivedi
0
562
Member Avatar for bob on whidbey

The OwnerName field in the Catalog table exactly matches the Name field in the Owner table, which is that table's primary key. My select statement select Catalog.*,Owner.* from Catalog, Owner where Authors like "%jam%" and Catalog.OwnerName=Owner.Name order by Title limit 0,100 I use {$num_rows = mysqli_num_rows($result); to get my results. …

Member Avatar for diafol
0
92
Member Avatar for prem2

Dear team, How to get the process id for the particular file in php? for example ============ To get the process id in linux we use ps -ef | grep "message.php" Thank you, With Regards, Prem

Member Avatar for prem2
0
108
Member Avatar for Yemen Coder

hi guys i have a small question about < form action='' > what is difference between [CODE]<form action='$SERVER['PHP_SELF'] >[/CODE] and [CODE]<form action='<? echo htmlspecialchars($_SERVER['PHP_SELF'); ?> ' >[/CODE] if this way [CODE]action='<? echo htmlspecialchars($_SERVER['PHP_SELF'); ?> ' [/CODE] have benefit in security ! i wait any idea Thanks a lot

Member Avatar for Yemen Coder
0
146
Member Avatar for vanpersie

Hi I have a code that should:- if the number entered more than 60 the following should be printed "Congrats!!!<p>" "Grade1" if the number entered between 60 and 40 the following should be printed "Grade2" else the script should print "fail" but the code print fail all times can someone …

Member Avatar for ko ko
0
370
Member Avatar for klemme

Hi, Can someone lead me in the right direction on how to write a preg_match. I have username and password in the DB. And the username should be case sensitive, accordingly to whatever is in the db. And it should only be able to contain numbers and letters. I have …

Member Avatar for blocblue
0
155
Member Avatar for nats01282

Hello im creating a small social network from scratch and struggling with the newsfeed i have the newsfeed loaded through ajax then page loaded remotly i have a timeago jquery script and the timeago script is not working, but when i get rid of the ajax auto refresh and use …

Member Avatar for ko ko
0
189
Member Avatar for mr3k

Hello! I've been stuck with this for a while now. First I want to say that this is a school project and not something illegal bet site. The first MySQL table have results from games and the other table contains users bets on different games.. My problem is that I …

Member Avatar for diafol
0
110
Member Avatar for avocado_juice

Hello, I want to ask.. I have a website which is fine to be opened using any other browsers except IE7. In IE7, some of the functions do not work well. I tried using IE8 and it worked fine. Anybody knows the solution? Thank you

Member Avatar for almostbob
0
245
Member Avatar for 54uydf

ok here's the thing, I have a table in my DB (courses), and I want to fill it with data about all the courses that my school has. there's another site which has a form that let's people enter the code of the course and when they click "search" it …

Member Avatar for tiggsy
0
123
Member Avatar for mapee

Hello i have a problem with protect from sql injection : the problem is: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in My Old Code (working): [CODE] <?php $currentid= $_GET['id']; $q="select * from tbl_car where id=$currentid"; $result= mysql_query($q); while ($row = mysql_fetch_assoc($result)) {} ?> [/CODE] my …

Member Avatar for diafol
0
934
Member Avatar for Thyvo

Hello, First of all, don't kill if I posted this in the wrong section. I'm trying to find a decent tutorial for the HTML 5 drag and drop upload. I have allready searched hours before but could'nt find a decent tutorial. Basicly what I want is a drag and drop …

Member Avatar for Thyvo
0
140
Member Avatar for l0wr1d3r

Hi everyone. I'm planning on making a video chat page in which people would have to buy something like credits or pay per chat/call and it would be great if you could tell me more about PHP based video chat scripts or other kind of solutions (no need for group …

Member Avatar for chrishea
0
201
Member Avatar for Number1awa

Hey, I am having trouble sending a javascript variable to php at the moment. I have div's which have id's on them then when I click on them I have it as onclick="getId(id)" Then this is the code which is not working of course in sending the id to the …

Member Avatar for diafol
0
115

The End.