52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for trilithon

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
Member Avatar for shubhamjain1
0
88
Member Avatar for Xufyan

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
Member Avatar for vaultdweller123
0
81
Member Avatar for Viced

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
Member Avatar for Viced
0
80
Member Avatar for gaz-boy

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
Member Avatar for vaultdweller123
0
3K
Member Avatar for MarkBloomfield

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
Member Avatar for vaultdweller123
0
141
Member Avatar for rahul8590

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 …

Web Development php seo
Member Avatar for diafol
0
330
Member Avatar for beanryu

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
Member Avatar for Ezzaral
0
5K
Member Avatar for sastudent

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 …

Web Development php session sql
Member Avatar for sastudent
0
127
Member Avatar for kaash1

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 …

Web Development mysql php
Member Avatar for Manuz
0
108
Member Avatar for MichaelWClark

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 …

Web Development asp.net html-css session
Member Avatar for MichaelWClark
0
104
Member Avatar for theheretic1984

[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
Member Avatar for theheretic1984
0
319
Member Avatar for red_ruewei

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 …

Web Development cms php session
Member Avatar for Manuz
0
131
Member Avatar for aladar04

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
Member Avatar for aladar04
0
83
Member Avatar for eartherian

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
0
113
Member Avatar for samsons17

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
Member Avatar for samsons17
0
104
Member Avatar for renoua

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
Member Avatar for renoua
0
249
Member Avatar for sara khan

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 …

Web Development java-jsp session
Member Avatar for sara khan
0
230
Member Avatar for bynor

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
Member Avatar for shubhamjain1
0
110
Member Avatar for colon3l

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 …

Member Avatar for colon3l
0
434
Member Avatar for canterorist

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!

Web Development cms php wordpress
Member Avatar for nazar22
0
121
Member Avatar for keval_hack

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
Member Avatar for nazar22
0
461
Member Avatar for 68thorby68

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
Member Avatar for ppetree
0
126
Member Avatar for AbhikGhosh

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
Member Avatar for Thirusha
0
732
Member Avatar for tarek71

Is there a way to attach multiple files to email using php?

Web Development email php
Member Avatar for rajarajan2017
0
246
Member Avatar for aMOEBa

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 …

Web Development mysql php sql
Member Avatar for aMOEBa
0
4K
Member Avatar for motionxcity77

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
Member Avatar for fxm
0
122
Member Avatar for mindbend

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
Member Avatar for mindbend
0
94
Member Avatar for make11

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 …

Web Development mysql php
Member Avatar for make11
0
164
Member Avatar for maunica

[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
Member Avatar for vaultdweller123
0
55
Member Avatar for jbancrof

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.. ?

Web Development flash php
Member Avatar for almostbob
0
67
Member Avatar for lbrown1179

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 …

Web Development html-css php wordpress
Member Avatar for lbrown1179
0
96
Member Avatar for hinsel

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
Member Avatar for arrgh
0
149
Member Avatar for SerjSagan

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&amp;diff=335&amp;oldid=prev">How to fix erection problems after prostate surgery</a></li> <li><a href="http://www.url.com/wiki/Wikipenis:Community_Portal&amp;diff=334&amp;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 …

Web Development php regex
Member Avatar for SerjSagan
0
163
Member Avatar for iqra123

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
Member Avatar for iqra123
0
80
Member Avatar for alazanski

Which is the best, cheapest reseller web hosting provider on the web?

Web Development web-server xml
Member Avatar for kilastrosare
0
385
Member Avatar for naju

how do i get the thumbnail of a video form a video server like YouTube.com

Web Development php video
Member Avatar for yasir.se
0
98
Member Avatar for fankoff

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
Member Avatar for fankoff
0
126
Member Avatar for MDanz

it should display in the textarea "car1>>car2" instead it displays "car1&gt;&gt;car2" try this code... it doesn't work. put your mouseover "test". [code]<?php $sumz= "car1>>car2"; $textsearch = array('&amp;lt;','&amp;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; …

Web Development html-css php
Member Avatar for MDanz
0
115
Member Avatar for devraj.sanjhi

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????

Web Development asp asp.net c#
Member Avatar for dnanetwork
0
158
Member Avatar for cdgregory

Hi, I would like some advice on how to create a class to represent a one to many relationship in C#. i.e. I have a Customer and an Address table in my database. I also have a Customer class in my C# solution but how do I introduce the multiple …

Web Development asp.net oop
Member Avatar for cdgregory
0
70
Member Avatar for shubhamjain1

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
Member Avatar for Graphix
0
77
Member Avatar for fosteros

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
Member Avatar for chandru7
0
273
Member Avatar for lm111

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
Member Avatar for lm111
0
124
Member Avatar for tulipputih

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] …

Web Development display mysql php session storage
Member Avatar for tulipputih
0
126
Member Avatar for shubhamjain1
Member Avatar for nileshgr
0
100
Member Avatar for gskoli

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
Member Avatar for gskoli
0
150
Member Avatar for wish02

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
Member Avatar for wish02
0
61
Member Avatar for vibhaJ

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 …

Web Development apache php
Member Avatar for pritaeas
0
206
Member Avatar for aMOEBa

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
Member Avatar for rajarajan2017
0
162
Member Avatar for jayreis

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 …

Web Development mysql php
Member Avatar for rajarajan2017
0
162

The End.