39,320 Topics
| |
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, … | |
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?? | |
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, … | |
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 … | |
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 && … | |
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 | |
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 | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
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); … | |
[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 … | |
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. … | |
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 | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi, below codes give me underline of every link. How can i remove the underlines? <table align="center" width="27%" border=0 bordercolor="#FF0000" > <tr><td> <A HREF="#TaxFile">NY Multi Service -Taxfile, Accounting, Auditing,..</A></td> </tr> <tr><td> <A HREF="#VA">VA Multi Service -Taxfile, Accounting, Auditing,..</A></td> </tr> <tr><td> <A HREF="#Insurance">Insurance in USA</A></td> </tr> <tr><td> <A HREF="#TaxFile">NY Multi Service … | |
| Hi, I'm having a little problem with a password Reset Script I've made The script sends you a reset hash to your email to confirm that you requested the password reset. This resethash is just a random string with letters and numbers that is 15 chars long Problem is, when … |
Hi! Is there any way to remove a file from a directory when a session ends? (Like when a user closes the webbrowser) |
The End.