38,023 Topics
| |
| Hi all, I'm having a problem getting a cron job to execute properly. I'm using my hosting control panel to set the task up and execute a script. What I want the script to be able to do is search for jobs that were posted over 7 days ago, loop … |
Hi I am currently working on a web site which I had to modify to add the option of either using pounds or euros forthe pricing. I have two image input types which onclick I want to set the session variable $_SESSION['currency'] to GBP or EURO, and then refresh the … | |
Hi everybody, would you please tell me what's wrong with this code that generates the following error: Warning: fopen(C:\Documents and Settings\Sando\Desktop\boys.gif) [function.fopen]: failed to open stream: No such file or directory in /home/domain/public_html/webs/divisions/chek.php on line 108 [B]data inserted without any picture[/B] although it works fine and great @ localhost MySQL … | |
Need help with my registration code for my site. Read through it if you may and tell me if there are any errors. (And where do I place this in the page?) [CODE]<?php // Connects to your Database mysql_connect("database.accdb", "", "") or die(mysql_error()); mysql_select_db("users") or die(mysql_error()); //This code runs if … | |
ok so just ran into a problem using tinyint instead of int i have hit the 127 max. but i did not realize that on time and now i have about 100 entries that i need to fix with a loop to do an increment of a counter this is … | |
ok so what i want to beable to do is have a coded up website template (with php in it) that is stored in the DB. and i would like to call it in a query. That part works fine but what doesnt work is the php being called from … | |
I have a php script that sends the contents of a form via email. I have some error checking in the script to make sure that the required fields are filled out. Right now, if there's an error, it just displays an error, with what's missing on a simple html … | |
Hello to everyone, I'm new here - Great forum. I would like to update an entire database at once. I use Mysql database and PhP scripts. I explain : I have to update prices in one column of the DB by puting +10% This is what I have but it … | |
Hi, I've seen so many sites that have [url]www.domain.com/downloads?420[/url] or ?222 and so on. I am in the middle of making a upload script but i also want it to add a link to the downloads page to the file. Im not sure how this should be done and i … | |
HI all, I am trying to display user (ad displayname) welcome message on my web site but I am not sure how to achieve it. I found somthing online but that doesn't make any sence to me as I dont have nay value of $user_ID in the below code, [CODE]< … | |
Hi, I created a script which I use to clean my database from missing entries. With it I both check if a file on the server is missing a database entry and if a database entry exist with no corresponding file on the server. The user first submits a form … | |
User fills out a web form containing about a dozen or so combo boxes. As each comboBox has its options filled from values contained in a database, this limits what the user can input. However, as we know this can be bypassed, hence the need for validation even on a … | |
hi frnds, here i m using AJAX code for posting variables..when i submit the form , then the GET variables are taking like this.. [QUOTE]hi%20h%20r%20i[/QUOTE].. how can i solve this problem.. plz go through the code.. [CODE] //javascript code... function get(obj) { var poststr = "name=" +escape(encodeURI( document.getElementById("name").value )) + … | |
Hi everyone, i was wondering if you could help me out, i'm working on a project where the user can login from any part of the site and a function is called when the button is clicked. The problem is if the user for example is on this url [url]http://localhost/profile.php?id=12[/url] … | |
This one is a messaging system! Made it myself, works great! Hopes you like :) | |
I wrote a simple code in java script and it is working fine with IE and not in Firefox but the out put in php array count is correct in IE but not correct in Firefox[code]I wrote a simple code in java script and it is working fine with IE … | |
Im in the middle of making a filesharing site but would like more people to join the team and advertise it! And of course build it :) Who will help? Im on all day and i will be checking for new posts every 5 mins :) | |
[CODE].... <table id="tbl"> <div id="xtra" style="display:none; visibility:hidden"> </div> <div id="dname" style="display:none; visibility:hidden"> <input name="Name[]" type="text" size="35"> </div> </table> .... <input type="button" name="Add" value="More Company" onclick="return AddRow();"> .... //the following javascript function is saved in another .js file which is then called from the main php file when the … | |
Hi. in open source package moodle i came across "global $CFG" line of code in setup.php in config it is used as [CODE] $CFG->dbtype = 'mysql'; $CFG->dbhost = 'localhost'; ............ [/CODE] $CFG is global object but there is no class. it is behaving like an array. how there can be … | |
I'm creating a movie rental site and need to set the availibility of each movie. If its available, the user needs to be able to rent it, if it isnt they need to be told so. In the admin section the availibility of the movie needs to be set. Now … | |
Hi all, Im new to php with mysql, i have connected sucessfuly to my database, But how do i go about creating a register script and login script? I already have 10 page website created by me in html/php But now i want to add a members area i have … | |
Hi Guys I've got a MySQL product database on a website, and I wrote a php script that searches the database and returns the results in an html table with no problems at all. My problem comes when trying to display x results (I've been trying 5) per page. I've … | |
Hi.Im trying to create a program that would simply [B]count of votes[/B] and [B]save in database[/B] after voting of the students,[B]results of all votes[/B], and [B]displaying people that have voted[/B].. here's my html. [CODE]<h2><center>Select Candidates</h2> <p><table cellspacing=5 cellpadding=5> <tr> <th>President:</th> <tr></tr> <td>1.Name presidents <input type="radio" name="pre1"> <th><a href="">View Profile</th></a></td> <tr></tr> <td>2.Name presidents <input … | |
Im trying to create an if statement based on the value in my database. [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>E Movies :: Rent A Movie</title> <link href="styles.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="container"> <div id="header"> </div> <div id="menu"> … | |
I would like to add captcha to my registration system. I searched google and i get some. There are more number of scripts in that which are little bit complex to go on. I simply took my needs from that. Now My registration page is generating captcha, but i dont … | |
Can someone show me how to do the following? I have a variable named $day. If the value of $day is between 1 and 9 and it is represented by a single digit like “1”, I would like to set $day to 01. How would I do this? | |
I created code for my TV guide web site, as mentioned in a previous thread ([url]http://www.daniweb.com/forums/thread247517.html[/url]). I solved the problem, in the code below. This is the new code, which works well: [CODE] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","root","PASSWORD"); //select which … | |
hi ummmm i dont know exactly where to post this but im trying to put a active calender on desktop dont mind if its online or whatever as long as the calender updates daily . . . any help???????:-/ | |
Been trying to work this out for hours I have two tables called 'Genres' and 'Films'. Genres contains two columns 'Genre_id' and 'Genre_Name'. Films contains a load of columns, the most important being 'Title', 'Year', Director', 'Genres'. Now im trying to create a page where the user can edit a … | |
What am I needing to do in order to make this work ? Please advise ? I am getting the $song_title from another part of my PHP I am just setting it as something in this example in order to post what I thought should work ? any help would … |
The End.