39,402 Topics
![]() | |
How should I call jquery from my php page? This is my php page: [CODE] <form action="#" method="post"> <input type="file" name="fileInput" id="fileInput" /> <input type="submit" value="submit" disabled /> </form> <div id="result"></div> [/CODE] And this is the js file: [CODE] $(document).ready( function(){ $('input:file').change( function(){ if ($(this).val()) { $('input:submit').attr('disabled',false); } } ); … | |
Hi all I have a website that has a contact form in the footer of every page. When someone sumbits their details I do a check to see if the fields are filled in correctly. If the fields aren't filled in correctly I display an error just above the form. … | |
I have a Textarea, and I want to store value in a variable. The condition is that the value will be fetch from JS that is [B]Document.FormName.Combox1.Value[/B] in the [B]same page[/B]. I know $_POST['Combox1'] method.. | |
Please can someone help me out with this error? Parse error: syntax error, unexpected ';' in /home/npr/public_html/getfile.php on line 12 if i take off the line 12 the page works but i need to include the line 12.HELP! [CODE]<?php include('recruit.php'); $id = $_GET['id']; mysql_select_db($database_, $recruit); $query_users = "SELECT * FROM … | |
i have de following code [CODE] <?php require_once('Connections/conn.php'); ?> <?php $oras = $_POST['oras']; $zona = $_POST['zona']; $camere = $_POST['camere']; $tip_apartament = $_POST['tip_apartament']; $chirie = $_POST['chirie']; $tableName="anunturi"; $targetpage = "afiseaza.php"; $limit = 2; $query = "SELECT COUNT(*) as num FROM $tableName WHERE oras='$oras'"; $total_pages = mysql_fetch_array(mysql_query($query)); $total_pages = $total_pages[num]; $stages = … | |
I'm running Ubuntu and have just installed PHP5, Apache2, and MySQL. I created a PHP Project in Netbeans and trying to echo "Hello World." When I run it, I just get a 404 Not Found error with this "The requested URL /PhpProject1/index.php was not found on this server." Any ideas … | |
SO am am soon going to build a blog. what I would like to know is how to do the prvious posts button at the bottom of the page with like the 1|2|3...Next|Last that type I was just wondering how it is done I know to fill the Homepage your … | |
Hi friends, I m making a php user registration program and in some other sites I found some hidden field as follows [ICODE]<input name="authenticity_token" value="a58b64b916157840987d0655fe8ce14fecc030fd" type="hidden">[/ICODE] I m wonder what its really means ? Is it a dynamic value in which's value stored in SESSION and later it check with … | |
hi all hope every body is fine i want ask you about how can we send the form data entries includnding attached file to an email without saving the file to the server as i want to know if this procces legal to take the uploaded file and send it … | |
Hi all.. basically i want an ajax code that retrieve the data from the unique div(with php).. what i mean by unique here is that my div got the id with the name+(the php code to make it unique). okay i dont really know how to explain but here is … | |
Hi all - Was wondering if anyone has come across a script that verifies if an email address exists or not? Beyond verifying that the data entered has an @ symbol, I'd like to make sure that I'm not getting bogus email addresses. Would be any way to do this … | |
I know a lot of people have their own comforts and styles when it comes to scripting and coding, but... Some language documentations specifically state a naming convention that is considered best practice for their language, like Java specifying camelCase. However, PHP's online documentation doesn't specify a naming convention (from … | |
hi, i face this problem from last three days, i want to disappear the alert box of javascript on time base, for example when page is load and the alert box is appear,i want to remove it after 10seconds if the user not press the ok button, thanks in advance | |
Hello, I am having trouble with my phpBB forum. Editing the theme widths, images etc. I am hoping someone from DaniWeb can actually help me out. My MSN - [email snipped] [Note]: I am sorry for posting in the wrong section, Just cannot find the correct place. Thank you!. | |
I have this website and I got the script(Pdf search engine) which is licensed to all domains ,i installed on [URL snipped] and it is working fine ,but when I installed it on my other domain ,[URL snipped] and i did search ,it is saying that this script is locked … | |
Is there a more efficient way of doing this? I am simply catching and assigning vars to a lot of $POST vars. this seem monotonous to me..lol any advise is greatly appreciated. thanks :) sorry aboout the title..wasn't sure how to title this one. lol [CODE]if(isset($_POST["submit"]) ){ if(isset($_POST["est_num"]) ){$est_num= $_POST["est_num"];} … | |
please can somebody help me add an account to webnight commander here is the script where i add the account but i dont knwo what to do with it [CODE]/* USER ACCOUNTS. Uncomment # comments only */ $users = array(); //************* SAMPLE USER ACCOUNT - BEGIN $users[] = array( // … | |
Hi, a few time ago I posted a thread about a page in ajax/js/html that didn't work correctly. At first, I thought it was solved, but now I see it is not. I am trying to make a gallery using jCarousel, and it used to be very buggy until it … | |
Hi, I have a PHP script that uploads files. So far it works good with normal http connection, but when it comes to SSL ans https, the move_upload_file() function just fails and does not move the file anywhere. Any solutions? Thanks | |
Hello: I want to create a count down to a date with the following variables 1. number of days (90) 2. current date now using a specific past date stored in db, I want to create a countdown that basically tells me how many days until the 90 days are … | |
I have a problem with using globals within class scope. For example: [ICODE] $GLOBALS['test'] = "How are you?"; class great { [INDENT]function grace() { [INDENT] echo $test; echo $GLOBALS['test']; [/INDENT]} [/INDENT]} [/ICODE] Problem is, that neither of the echos produce any output. Is there a problem with accessing superglobals from … | |
I cannot delete the records after pressing the delete button. What is the fatal error? Thanks! admin.php [CODE] <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test_mysql"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot … | |
Guys, I need a code to ask database if the data is MALE or FEMALE than display a picture.. I know little about PHP !! The database has USERINFO table than a row with MALE or FEMALE written. Please help.. | |
Hello, I was hoping for some help in the right direction. I am creating a PHP/MySQL script and I was wondering what is the best way of being able to use it as a standalone application on a local computer. It's a little complicated, but let's say it's an online … | |
I have a script that calls up a picture stored in a database. I then have a script that displays said picture on another page. If there is no picture in the database I would like for their to be a no picture icon displayed. New to php but I … | |
Hello friends, I am new in php.I need your help in sending sms through HTTP. Could you suggest me what to do? | |
i retrieved data from mysql table into html page i.e [code]$query="select * from student"; $result=mysql_query($query)or die(mysql_error()); while($rs=mysql_fetch_array($result)) { ?> <tr> <td align="center"><?php echo $rs['st_id']; ?></td> <td align="center"><?php echo $rs['name']"; ?></td> <td align="center"><input type="checkbox" name="check" <?php if($rs['checked']==1){echo "checked"; } ?> /></td> <td align="center"><a href="delete_student.php?id=<?php echo $rs['st_id'];?>"><img src="images/delete_icon.png" alt="Delete" /></a></td> <td align="center"><a … ![]() | |
Hi there :) I am doing a login log script and at first I didn't record the timestamp unlike all my newer logs, I was wondering is there a way to turn the date d/m/Y (15/02/2011) turned into a timestamp? I would appreciate any help given Thank you in advance! ![]() | |
Hi, Today I was reviewing traffic for one of my websites, I found out that someone linked a jpg image into a forum, and now its getting huge bandwith I mean a lost of hits even when the image was deleted, hits I could use, is there a way for … | |
Hi I am preapring a website form where the resume needed to be uploaded and it should send an email to me along with upload as attachment. Please let me know the error in this below forms: == HTML Form: [CODE]<form method="post" name="mailform" action="emailnew.php"> <table width="200" border="0" cellspacing="0"> <tr> <td … ![]() | |
i want to use if within while loop plz check it out and point out the mistake [CODE]$n=2; $e=8; $n=$e; while ($n<=$e) { if ($n%2=0) { echo"result is " .$n $n=$n+1; } else { echo "invalid"; } }[/CODE] ![]() | |
Hello all, I have a script that displays the graphs of the rain gauges that the user selects on my site. They check all the gauges they want to see, and then when they click submit, my script then searches another site for the graph for each gauge using that … | |
hey all, The server where I host my website went into unscheduled maintenance, a few minutes later I noticed that the IP of the server changed (they probably moved my website to another server since it's paid hosting although shared). So, my website was back online but some things weren't … | |
Hi, i don't know if i'm in the right category in posting this thread. I'm only newbie in creating webpages. I created just a simple web page made from wamp server(php & mysql), now I just want to try how to deploy it, like posting it in a free web … | |
I have text area and combobox, Selected value of combobox is to inserted at the current cursos location in the text area. How it can be possible ?? | |
bellow is my entire file, the problem is when i insert multiple links, it only fatch 1 link from the textarea and then giving me the following error on the rest, FYI there is no problem with the reading part in the text area i can read line by line … | |
Hello: I have a mysql table which has following rows: id (unique and auto increment) platenumber customerid servicearea date I want to create a sql statement which essentially performs the following task: Pull from table_name the last inserted row where the customerid='mb6537'. There could be more than one row containing … | |
Hi friends... My system is MS WINDOWS XP, Professional Version 2002 Service pack 2... I Want to Connect PHP with oracle... I searched in GOOGLE... Source: [url]http://me2learn.wordpress.com/2008/10/18…[/url] I Followed the steps given by them... but still i'm not able to connect... I installed PHP and APACHE... PHP version: php-5.3.4-nts-Win32-VC9-x86 Apache … | |
Hello. I'm working with a webpage where its going to a Google Store Locator. [URL="http://code.google.com/intl/no-NO/apis/maps/articles/phpsqlsearch.html"]Goolge Store Locator guide[/URL] I did follow. I got it working for a while, but here in Norway we have some characters, ÆØÅ that we use. This is the problem. When I search for a place, … | |
Good Day, I am looking for threads here in daniweb which will contain my question but the return is not similar to my problem.. Please help me.. i don't know what to do with this. I just want to store date field in mysql database but i can't here is … | |
Hi i wanted to loop the options list of the select tag inside that echo statement from my database. This file out puts the content to a javascript code. and this output is also javascript. any one help me how can i loop that options in select tag from the … | |
Hello, I have used Joomla, Wordpress and other CMS tools. All this tools are plugin and theme based. The basic concept for plugins are to extend functionality and if I update the core system than it will not break the plugin's functionality. I like this same feature in a forum … | |
I need to take data in from a form, using a javascript call. From there I need to send the data to a php script that puts it in a database. I have an AJAX call that does this...but I know that the AJAX call also waits for a response … | |
hey guys, I am facing problem to get weather information from client ip address. i know how to get client ip address but i don't know how to get weather information. please somebody help me for this problem. Thanks | |
Hello everyone, I would really appreciate if anyone could please help me out here. I am trying to read the user's input in one page and then trying to display it in another page (want to let my users upload a file from their machine and save them in my … | |
Hello. I have gone through various checks, and I can't seem to figure this one out... [CODE]while($row_sizes = mysql_fetch_array($sql_sizes)); { $sizes = $row_sizes['size']; $product_list .= count($sizes); $product_list .= "<li>".$sizes."</li>"; }[/CODE] Its not outputting any sizes. However, my count($sizes) outputs 0. And that shouldn't because I have [CODE] $sql_colors = mysql_query("SELECT … | |
Good Morning! I guess I will start with a little background and then elaborate on the problem. I run a website for a car dealership with many different locations. The site runs relatively well and all information is stored in a MySQL database except for the image information. Due to … | |
this is a php code when i check this code on "online php checker" it gives an error "Parse error: syntax error, unexpected T_STRING" on line 1708 how to solve this please give some advice [CODE]<?php class PopUp_Domination { var $base_name = ''; var $theme_path = ''; var $theme_url = … | |
Hello: I have a select box which offers the user the option of selecting multiple selections. I'm a bit lost as to how --if multiple selections are made, to save these selections into mysql. here is the code of my select box: [code] <form name="theForm"> <select size=11 name=servicearea id=select multiple … | |
Hi, I was wondering if someone could help me out? I am trying to display the 5 latest rows in my database. Whenever I add a new entry it will replace one the divs. The issue is I want slider$v variable to count down from 1-5 because it would be … |
The End.