39,323 Topics
| |
I was asked to help a friend to rewrite urls for a site he has a client. The link structure looks like this: <a href="http://sitename.dk/index.php?page=wisetrap">WiseTrap</a> // URL: sitename.dk/index.php?page=wisetrap Is it possible to keep the link structure like that, but after the link is clicked make it appear in the url … | |
help, i would like to put a conditional statement if the quantity that customer will buy exceeds the remaining quantity in the inventory,and it will prompt a message that the transaction is invalid, heres my code.in buying portal.advance thanks for the help :) <?php require_once('auth.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD … | |
I got a great response from this site. now my final thing is show gif loading image while getting data in Ajax.. my code is : function vote(id) { var result = new Array(); document.getElementById('sub-cat').innerHTML = ajax_image; result = $.ajax({ type: "POST", url: "ajax.php", data: "id="+id, async: false }).responseText.split("^"); document.getElementById('sub-cat').innerHTML … | |
Hello, I have done some filtering in an array using unset. The problem is that if I do a var_dump on the array after the filtering, then some of the keys are missing. Eg, key 2 isn't showing. So what I would like to do is to remap the keys … | |
Hi Team, This is Kishore, I have good experiance in Core PHP with Mysql. I am looking for learn new tools like frame work or CMS. I have 3.9 years exp in PHP Environment. Now I am looking for job change, So i want to improve my skills. Please suggest … | |
<div id="rightContent"> <div id="contentBox" class="right"> <div id="contentPadding" style="padding: 10px 10px 5px 10px;"> <div id="slickTitle" class="hotelStat"> <?php $userReg = mysql_num_rows(mysql_query("SELECT * FROM users")); ?> <?php echo $userReg; ?> Registered Users </div> <div id="slickTitle" class="hotelStat"> <?php $totalFurni = mysql_num_rows(mysql_query("SELECT * FROM furniture")); ?> <?php echo $totalFurni; ?> Total Furniture </div> <div id="slickTitle" … | |
today 1st time i'm trying ot learn recursion funtion thru online tutorails but stuck at begining stage. i found below code but anything i give value its provide me output: 1 so, i need better explanation of that: function factorial($n){ if($n==0){ return 1; } return fact($n, 1); } function fact($i, … | |
Hello, I'm trying to send a new user info (username & password) to a php file (register_check_0.php) using ajax with jquery so i can check if user already exists. I use the post request below: $.post("register_check_0.php", { username: $("#username").val(), password: $("#password").val() }, function(data,status){ var result=data; if(result=="success"){ counter+=1; $("#registration").load("register_1.php"); } } … | |
I have a textbox which pulls the maximum value from DB. But it gives wrong value. Can you help figure out what went wrong here? **basicfunction:** private function basicInformation() { // initialize variables $host = "localhost"; $db_name = "test"; $tbl_name = "ballpark_details"; $username = "root"; $password = ""; // connect … | |
i going to do college website which is best Zend or Cakephp framework to do it if there is another framework best tell me | |
I'm on the school server. So before I start I need to say I don't have a choice. I'm tired of reading post with nothing more than "Tell your administator to upgrade". I know. Stop. If I see it its getting flagged as spam. I don't really understand what about … | |
Hi everybody, i want know how make admin panel and to it news system via [b]PHP[/b] and [b]Mysql[/b]! Is here anybody who knows how make it, and if here is somebody who knows, then can you help me? I'll try make a website where is news about sport things what … | |
hi all... pls help me... i have a problem with editing the record... my adding and editing page are same.... adding works properly but while editing a record for ex : if i change the emailid of a record and if the newly given emailid is already exists in the … | |
my cookies not seem to be working. the seesion works fine tho. am i missing some thing? o and i doesnt print echo"on"; if($remember_p == "on") { //remember username for 42 hrs setcookie("id", $id, time()+20); setcookie("username", $username_p, time()+20); //seconds //header("location: index.php"); if(isset($_COOKIE['username'])) { echo"on"; } } else if($remember_p == "") … | |
Notice: Undefined index: remember in C:\xampp\htdocs\E_COMMERCE\login.php on line 15 line15: $remember_p = $_POST['remember']; it looks right to me. any ideas? <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { $username_p = $_POST['username']; $password_p = $_POST['password']; $remember_p = $_POST['remember']; ..... } ?> <div id = "right_login"> <form id='login' action='login.php' method='POST'> <h1>Log in to your account!</h1> … | |
> hey guys, how to make bold values array building key array below to data1 and data2? if each index [0] => Array ( [0] => 0 [1] => 2 ) bold array data1 if each index [1] => Array ( [0] => 1 [1] => 4 ) bold array … | |
alot of people told me iam using this the old way and i dont understant the newer way. can some one help me out.. iam trying to build form that will run same file. so i have only one file called login.php my form should run php script inside itself, … | |
i have a form with a text box and a drop-down list. the form submits to itself. when the user submits the form for processing the form must be able to retain the selected value from the drop list if there is an error. here is the code for the … | |
stdClass Object ( [0] => Array ( [0] => stdClass Object ( [id] => 123445566 [name] => Sharer Name [offset] => 0 [length] => 14 [type] => user ) ) [23] => Array ( [0] => stdClass Object ( [id] => 123456778_page_id_i_want [name] => Page Name [offset] => 23 [length] … | |
Hi all , I have a wevservice link say http://abc.com/wscom/MKWebService.rem from where I am trying to return value giving some parameters . The method and parameters are given below. method : GetInfo Parameters: string LicenseID string password Return Value: struct AnswerInt Now I have two xml files request.xml and response.xml … | |
Hi, I've just switched web hosts, and I have this script that ultimately connects to a database and displays it on a webpage. It used to work fine, however now I can get it to display the database info in the webpage, however I can't update the fields. I can … | |
Hi. I need a way of deleting images from a gallery. The images are in 2 folders: thumbs and full size. The pathnames are in 2 tables: image_thumbs and images. The gallery displays clickable thumbs. Should I delete the images from both folders and the entries from both table or … | |
Hey guys I have a page where a user can drag and drop ellements into divs 's and everything works great, but I need the div to only accept 1 element. Check it out [Click Here](http://www.cintascsr.com/test_site/report/) Right now you can drag both pdf docs into one "send to print" div. … | |
please help me to know the details about the json | |
hi i m very new to ajax and i want to have incomplete results like in the following image of google: ![upload1](/attachments/large/3/upload1.png "upload1") please help me for this purpose and for more experties in ajax | |
I have a website where I would like to have my users use their facebook login and password and then they sign in and able to post comments. I have seen this a lot at lot of other sites. for eg [url]www.cricinfo.com[/url] I am interested to know how this works. … | |
I'm working to revive an old CMS and the current way of deleting posts in a forum thread is to select them via checkbox and then click delete. I'd like to avoid the numerous amounts of click and just have the user click "delete" on a single post and have … | |
Hi There Guys, I've found a lot on this subject, but the sheer amount of scripts and suggestions is overwhelming and researching this has confused me more than anything. I have a fully working contact form, but at the moment it simply checks the users input on submition of the … | |
hi all, pls help me... i want to play multiple videos in videogallery... but when i give click on anyvideo its not playing.... here is my code.... tnx in advnc.... <?php $sql="Select * from video_gallery where prod_name LIKE '%$prod_name'"; $obj->query($sql); $nume=$obj->num_rows(); while($row=$obj->query_fetch()) { $code=$row["video_code"]; $cd=explode("/",$code); ?> <div class="video"><iframe width="304" height="192" … | |
i have a login form. if there is a error. let say user doesnt fill input fields. than it will print error. but i want to keep the values safe. that way user dont have to keep fill in data again and again. here i have a form. iam print … |
The End.