39,320 Topics
| |
I want to working with login system jQuery ajax and json. I'm facing no problem with success function. I dn't know how to through custom errors like "incorrect login". Here is my code, Please help me. <script> $(document).ready(function(){ $("#login").click(function(){ if($("#defaultEmail").val() == ""){ $("#defaultEmail").addClass("field-err"); $("#defaultEmail").focus(); }else if($("#defaultPassword").val() == ""){ $("#defaultEmail").removeClass("field-err"); $("#defaultPassword").addClass("field-err"); … | |
hi all, i am actually working on a project. But the mysql_real_escape_string() is not working on my php5 codes. Can anyone suggest me an alternative to avoid sql injection, plz! Thank you! | |
Where can I find tutorials about creating a social website using PHP & MySQL ? I do not need a ready script, I just want to learn how to do it.. | |
I have just started using php includes on my website to help me propagate changes across an entire site. So far I have set up include for 3 parts of my site. The header, footer and the navigation, as these are quite likely to change on a regular basis. I … | |
hi i want to upload and post my pdf material in my site and its my personal institute material so i dnt want to give the download option for that file so how it is can anybody help me ??? | |
hey..can someone help me?? i have a html/php file with a command button and when i clicked it, it will run the exe file of a vb6 application. how can i do this?can i have sample code?? thanks in advance. | |
How can I avoid negative numbers from being inserted in my database table? i have a code that works but will not prompt until the value itself in the table is below 0. $nega = mysql_query ("SELECT * from `bgl` where product_code = '$product_code' and stock > 0"); $row = … | |
Hi guys, Im just confuse...heres the situation Im having photo uploads in php.., before uploading temporary file will be created my question is where can you find the temporary file, @the web server(where your php app is runnin) or @the client PC(where the uploading session is done) thanks in advance..... | |
Hi, I need help with this... can anyone help me?? Plssssss Im getting Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in line 10 What's wrong with it... can't seemed to find the error. Im trying to make my blog display the video. <?php $file = $_GET['file']; $image = $_GET['image']; … | |
Is it possible to embed variable in longtext data field? **For instance:** the field name is "description" and it contains... The date is $date_var. **In PHP/MySQL Query:** $date_var = date('m/d/Y'); echo $row['description']; **The output should be:** The date is 10/14/2012. please advise. | |
Hi can someone help me out, please. I have been using the same file upload script on three websites that I manage, with great success. But recently I have encountered some errors when accessing the file upload form on my locahost server on my own computer server. This has never … | |
i have create a html page with log in,log out,register ect... i wont to create a admin page for this,for example if i wont to change images colors border color add image or something else can somebody suggest me what i have to do,give me some ideas. | |
Hello experts, I'm new to PHP/Javascript. I am working on an Online examination system for prospective candidates. This is so as to learn object-oriented programming for my improvement. Story So far: I have the mechanism in PHP/Javascript/Mysql to create an online test. This lets the user select the kind of … | |
Hi guys. It's been a third day now, I am having problems with header. I have many included files which output echo before the header, so since I can't output them after the header, I used ob_start(); and ob_flush(); but still I am getting header problems. If you wanted to … | |
Hi Every Body I am facing problem in retreving the data from my mysql table I want to use prepared statement with mysqli for security reason. Here is my code Please give a guidance - <?php $host="localhost"; // Host name $username="**********"; // Mysql username $password="**********"; // Mysql password $db_name="**********"; // … | |
Dear community, May I ask you for your help please. I have two pages: item page, where customer selects required size and basket page, where this size is displayed alongside other information. All the data is passed OK, but 'size' data is not. Here are the pieces of code that … | |
I am currently in the process of creating a open source dating script. I am nearly there. Just one thing that I can see that is an error now. When a user completes there profile, other users can see the answers, but the person who the profile belongs to can't. … | |
I have 12 field form One field is file (How to validate for **.doc**, **.docx**, **.pdf**) How to send all information and file as email? I found complicated codes. Can anybody help with simple one? | |
Hi. This code should be functional but I can't seem to figure out why this won't work. Thank you in advance. <?php function e($f){ echo ($f); printf("\r"); } e("setup"); $user->setup(); /* globale variablen setzen */ global $phpbb_root_path; global $phpEx; global $db; global $config; global $user; global $auth; global $cache; global … | |
Hi, I'm rather new to php so...I use simplepie to parse rss feed but i want to filter them by keywords i made this code : $feed = new SimplePie(); $feed->set_feed_url(http://website.name/rss); $feed->init(); $feed->set_cache_duration (3600); $feed->set_timeout(30); $feed->handle_content_type(); $countItem = 0; foreach ($feed->get_items() as $item){ $checktitle = $item->get_permalink(); //Regex keyword filter $pattern … | |
Hi need some assistance here im having an error connecting my database to the server online,the thing is it is working fine in localhost but when i uploaded it just wont work.. i already change the necessary string to match the server configuration online from config.php this is in the … | |
Hey all. All I need is to collect every `id` from `servers` where `active ='1'` and then cycle the results in a loop right until the end for each individual id. (I've written this on daniweb, might be typo's or errors. I'm not interested in code errors it's the process … | |
Hi!! Please guide me. How can I send variables from a PHP script to another URL using POST without using forms and hidden variables? Thanks Laxy | |
<?php include 'simple_html_dom.php'; function get_url_contents($url){ $crl = curl_init(); $timeout = 5; curl_setopt ($crl, CURLOPT_URL,$url); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $ret = curl_exec($crl); curl_close($crl); return $ret; } $url = 'http://rural.nic.in'; $outhtml = get_url_contents($url); $html= str_get_html($outhtml); foreach($html->find('li')as $item) { echo $item."<br>"; } //print_r($outhtml); ?> I wish to print only … | |
i have a problem with editing and updating my data on my database. i cant pass or echo the data from the database into text boxes. heres the php script. // this script is for displaying the information oof the logged in member. and contains the link to edit the … | |
How would I be able to do this? When I click on a button, it would send some text, say, "Check this out!!" to my [B]Facebook[/B] and [B]Twitter[/B] account. I checked everywhere on the web and and this forum but can't find anything on it. Can someone give me some … | |
<?php include once('config.php'); $link=mysql_connect(DB_HOST,DB_USERNAME,DB_PASSWORD); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db(DB_DATABASE); $query = "INSERT INTO".data_feedback."(First Name,Last Name,Email,Telephone,Comments) VALUES ('". $_POST['firstname']."','". $_POST['lastname']."','". $_POST['email']."',". $_POST['telephone']."','". $_POST['comments']."')" $data = mysql_query($query); if($data) { echo"Feedback is recieved"; } else{ echo"There is an error"; } mysql_close($link); ?> Ive got a syntax error … | |
can anyone please tell how to write a simple php code that will convert dollar, euro and yen to pounds. im using a form that will prompt customers to enter a amount they want to convert. thanks in advance | |
Is it possible to create web-based instant messenger written in PHP? I heard python would be appropriate for it. | |
can any body explain how to manage sessions in the pages that without login no user must access any page and if tries to access using browser address bar then redirect it's location to login page.....pls do reply what to check to manage this by using session...... |
The End.