52,566 Archived Topics
Remove Filter ![]() | |
Can anybody help me with setting up a cron job to run a PHP file. Here is the code that I inserted in the PHP file: [CODE]#!/usr/local/bin/php <?php include_once "connect_to_mysql.php";[/CODE] Here is the code that I used in the command line in the control panel: [CODE]*/5 * * * * … Web Development php | |
Hello, I'm learning PHP from w3schools.com but they didn't explain everything clearly, see that page, [TEX]http://www.w3schools.com/php/php_file_upload.asp[/TEX] I want to know the meaning of this line , how it is checking the error in uploading ? [CODE]if ($_FILES["file"]["error"] > 0)[/CODE] Web Development file-system php | |
Hey guys! I also have a question about how to autogenerate these types of links. (Pardon my tacky english) What i am looking for is a way to autogenerate a "personal" och "unique" link for every user. These unique links are suppose to point to "registration.php". The idea is that … Web Development php | |
Hello I am very new to daniweb but have been using it for many years to help me learn web development. I am struggling with some code that I hope you guys might be able to help me with. I want to send checkbox data from a form my email … Web Development daniweb-feedback php | |
I am using the php mail code to send emails from a website very successfully. However when the email address to send to is in the format [email]xxx.yyy@zzz.com[/email] it won't send. Any ideas? I am able later to post any code samples needed if necessary but all seems to be … Web Development php | |
For example , As i registered in daniweb.com , a mail was sent to my email id and after clicking on that link , i could complete my registration . i want to develop a similar module in php , where the users after signing in , i sent this … ![]() | |
I know, this is really a noob question and I don't really know what went wrong. The code is very simple. I have a web page that contains the following: [CODE] <div id="mydiv"> <p>first</p> </div> [/CODE] The <p> tags are created by the following js code: [CODE] paragraph = document.createElement("p"); … Web Development javascript | |
The code below is my insert statement to get values into my database. However, I now have an update page where users can update their information. I thus have a form in which their initial info is inserted and now they can change it and submit again thereby updating the … | |
I need help with the following query, i will be so thankful if anyone can help me please. I have two tables in database: Table1: [CODE] Column1 Column2 Status smith john 1 jack smith 0 julia rob 1[/CODE] Table 2: [CODE] Column1 Column2 thomas lewis scott smith john evans lopez … | |
I am converting a xls to web form. THere are 4 fields and XX # of lines per form entry. Since the number of lines are variable I want to have an "+Add Line" Button to add a line of txt boxes to the form. I have gotten it to … | |
[CODE]var myarray=new Array(4) for (i=3; i <7; i++) myarray[i]=new Array(8); for (i=3;i<7;i++) { for (j=1;j<9;j++) { if (document.getElementById('mytable').rows[i].cells[j]!=null) { myarray[i][j]=document.getElementsById('mytable').rows[i].cells[j].innerHTML;} else myarray[i][j]=0; } }[/CODE] Here is my code and i want to check if the cell exist and if it is true to take the content of the cell. But … Web Development javascript | |
Hi, I having problem to fix this problem. Already search for related thread, but cannot find a solution. The case is like this. I have 2 system that intergrate each other. Let assume as system A and B. User need to login from system A and can use system B … | |
Does anyone know how to use a prompt on java applet? I was to create a very simple calculator. Two prompts will appear asking for inputs. Then the sum, product, difference, and quotient will appear on java applet. Web Development javascript | |
Hello Friends, I am learning to code in ASP.Net (so forgive silly errors!)... Presetnly trying to perform the functions of edit and delete using Repeater. The Code is: Libraries that I am using [CODE] using System; using System.Collections; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; using System.Web.Security; … Web Development asp.net open-source web-server xml | |
hi all.. I just want to ask,is it correct,in a class that we have built,PHP will first execute the constructor function before the others?? to make it clear is this is example : [CODE] <?php class database { public function __construct() { $this->open_connection(); } public $connection; public function open_connection() { … Web Development php | |
Hello, I have this part of php code... [CODE] <?php $dom = new DomDocument(); $dom->load("anna.xml"); $xp = new domxpath($dom); $unitid = $xp->query("/ead/archdesc/dsc/c01/did/unitid"); foreach ($unitid as $check) { print '<a href="#" onClick="displayResult2(' . $check->textContent . ')">' . $check->textContent . ' </a>'; // I presented the unitid's of a xml file and … Web Development javascript php xml | |
I m making a website in which I hav an admin and members .. I want to define rights of users who can access a certain page.. For this purpose I m using an array of String along with a Session object. I m storing URLs of pages which a … | |
Hello there, i got a problem uploading Mp3 files, i use this Form: [code=html]<form enctype="multipart/form-data" method="post" name="carica" action="car1.php"><tr> <td><font color="#990000">Nome Canzone: </td><td><input type="text" name="use"></td></tr> <tr><td><font color="#990000">Nome Artista: </td><td><input type="text" name="art"></td> <tr> <td> <input name="uploaded" type="file" /></td><td><input type="submit" value="Caricare canzone" name="car"></td></tr> </form> [/code] and this Php : [code=php]$target = ""; $target … Web Development php | |
Hi there ! I'm building my first GC extension, and I am having a problem using this function. I would like to get the url of the current tab, and to do so (after some google research, of course), I use the [I]chrome.tabs.getSelected()[/I] function. Here it is in my code … Web Development api google-api javascript json web-browser websocket | |
Hi! i know you already experience to use this two cms software. I only want to know which of this two is the best. I have planned to create a site and then i am hesitate. I want your opinion or suggestions. please help me! | |
hi, I am php programmer and i want to develop website in Gujrati (Indian Language). Can any one Help me how i can do this. thanks... Web Development php | |
To all experts, I am trying create a page that allows users to view and reuse images returned from mysql. In the mysql database I have two columns "image_path" (which stores the path and name of an image stored in the file system) and "image_name" (a text name that the … Web Development php | |
Hi I am not been able to receive URL parameters passed from my ajax code in my jsp. Here is the code [CODE] function showDetails() { document.detailsForm.sltdUser.value = selectedUserID; alert('selectedUserID' + selectedUserID); var httpRequest; var url = 'showDetails.jsp?sltdUser = ' + selectedUserID; if (window.XMLHttpRequest) { // Mozilla, Safari, ... httpRequest … Web Development java-jsp | |
Is there a way to attach multiple files to email using php? ![]() | |
Really I am a PHP beginner, I am working on this code and I need help, kinda stuck. I have a database with 3 fields(id, date and venue). This is simply what I want to do; I want my script to go into the database fetch the date and compare … | |
Hello, I'm a relatively novice at JavaScript and I'm afraid I've ran into a bit of trouble. I need to create a series of dependent dropdown menus that will redirect to a new page based on the selections in the dropdown box. I've found some examples of different dependent dropdown … Web Development javascript | |
Need to make a website for a school project. Decided to make a website like photobucket. I got every page read, but the only thing missing is the uploading part. Does anyone know where I can find some examples of uploading blobs? Or mayb someone can share one. The thing … Web Development file-system java-jsp | |
Hi all, I'm sorry my bad english. If don't understanding something, please ask. I have a problem with my calendar. Can somebody tell me why I can't mark day cell in my calendar. Do I miss something what I can't see or is my code failed? My calendar is full … | |
[CODE] <?php include('connect.php'); $type=$_POST['type']; $seat=$_POST['seat']; $no = $_POST[chkno];//number of checkbox checked $i=0; while($i<=$no) { $sql2="insert into bookinglist (type,seat) values('$type[i]','$seat[i]')"; $i++; } if (!mysql_query($sql2,$con)) { die('Error: ' . mysql_error()); } echo "1 record added"; mysql_close($con); ?> [/CODE] Web Development php | |
What I mean by this is when a person move over the main menu item that the menu shows the menu items with out clicking.. I guess like flash would.. Like the menu items above on this page.. ? | |
Hello, I'm the volunteer webmaster for my church and tried to integrate a WordPress blog into my CSS-HTML site. It was going well following the tutorial at [url]http://www.burnseo.com/blog/2009/10/integrate-wordpress-into-existing-website-tutorial/[/url] until I edited the index.php file with the tutorial's code shown below. Then I got syntax errors in the browser, starting with … | |
Hello, I am trying to populate a pdf (application, complete with form fields, altho not all are named uniquely) from a form. I am having trouble populating certain fields which are undefined/unnamed in the original pdf, or which seem to have child arrays I can't get to...I know this has … Web Development coldfusion pdf | |
I am planning to use preg_replace to remove some unwanted stuff from dynamic string $mystring: <ul><li><a href="http://www.url.com/wiki/How_to_fix_erection_problems_after_prostate_surgery&diff=335&oldid=prev">How to fix erection problems after prostate surgery</a></li> <li><a href="http://www.url.com/wiki/Wikipenis:Community_Portal&diff=334&oldid=prev">Wikipenis:Community Portal</a></li> </ul> This string is generated from an RSS reader. (The url has obviously been replaced to make sure no one thinks this is … | |
hii i am trying to write code for Login but its not working.. i have used this code for my another loginpage there its working dont knw y its not on working on my new page. when ever i click on Login button it goes in else statement that open … Web Development php | |
Which is the best, cheapest reseller web hosting provider on the web? Web Development web-server xml | |
how do i get the thumbnail of a video form a video server like YouTube.com | |
Hi guys, I have a quick and interesting question there for you: I have my DB and a execute a query to read some data from the DB and return it to the HTML. The data that is returned depends on the search fields the user had filled in. So … Web Development data-structure html-css java-jsp | |
it should display in the textarea "car1>>car2" instead it displays "car1>>car2" try this code... it doesn't work. put your mouseover "test". [code]<?php $sumz= "car1>>car2"; $textsearch = array('&lt;','&gt;'); $textreplace = array ('<','>'); $textareatext = "$sumz"; echo "<div style='display:none;' id='1'>".str_replace($textsearch,$textreplace,htmlentities($textareatext))."</div>"; echo "<table><tr><td onmouseover='Test(1);'>test </td></tr></table>"; echo "<br /><br /><textarea name='reply' id='reply' style='color: #000000; … | |
tell me how to make a stylish login page like yahoo messenger i want to make an stylish log-in like yahoo messenger but how???? | |
I have a WebPage that needs to pass information to a PHP page. Now the task is easy but the problem is that anyone can see the source and edit the information to be passed but I want only my page to pass the information. How can i achieve this? Web Development javascript | |
I want to open a particular URL and download a file say ABCD.log every half an hour. (the same file) Is there any way i can automate this process using java script or any other method? Thanks in advance Web Development javascript | |
Hi, I have a small application that reads an access database. I'm able to load the data, but it's in ascii. I created a function that does the conversion but for some reason I can't figure out how to implement it correctly. Where do I call the AsciiToString() function? Here … Web Development asp.net web-server | |
Hello everyone, I used session and the id of the selected checkbox are passed to another page currently. now I do another query based on the ID of the selected checkbox. I want to display the fields from the selected result in columns like this [url]http://www.bluenile.co.uk/diamond_co...OMPARISON_STEP[/url] I did this [CODE] … | |
Dear all , Please help me out, i am using scriptaculous in my script. But it is giving error to me that Effect is not defined . [CODE] <head> <script type="text/javascript" src="/js/prototype.js"></script> <script type="text/javascript" src="/js/scriptaculous.js?load=effects"></script> <script type="text/javascript" src="/js/effects.js"></script> function only_refresh(){ // Some code . var fade_in = setInterval("fade_in()",5000); } function … Web Development javascript | |
I have a drop down menu and i'm also using an iframe. how do i get the value of the drop down selected value if the url doesn't change at all? it is always the main page's url that is shown. HELP!:) thanks! Web Development php | |
I have uploaded all my files on the Apache/2.2.3 (Red Hat) live server. There is htaccess file on the root of website for converting php to html. But it is not working and getting "Internal Server Error". If i blank that htaccess code then it works. I don't know what … | |
Hi geeks, I am working on a query string but I am kinda stuck with the code, I guess this is so cos am a PHP beginner. I want my script to display members list from a table in my db and attach a hyperlink to it so that when … Web Development php ![]() | |
Hello, have a page where I am going to be doing multiple queries on different databases. However I thought my below code would work but it does not seem to resurn any error message nore any result set. Here is my common database connection file <?php //database username and pass … ![]() |
The End.