39,393 Topics

Member Avatar for
Member Avatar for CutRobot

Hopefully someone can help me out with a bit of a quandry. I am writing up PHP for a registration system which will be reused on an annual basis. I want to take the entries in a number of tables and archive them before clearing the tables to be used …

Member Avatar for sudeepjd
0
76
Member Avatar for facarroll

I know how to do basic forms. What I want to do is to pass a set value as a hidden field to accompany an input text value, and have both values entered in the database record. You can see in the code below that the form asks for names …

Member Avatar for facarroll
0
102
Member Avatar for sundeep_g

Helo guys....I am very happy to intract with you all. can any one suggest me how to upload a image...i trie so many web site..here is my code.. uploadimage.php <?php define ("MAX_SIZE","10000"); define ("WIDTH","150"); define ("HEIGHT","100"); function make_thumb($img_name,$filename,$new_w,$new_h) { $ext=getExtension($img_name); if(!strcmp("jpg",$ext) || !strcmp("jpeg",$ext)) $src_img=imagecreatefromjpeg($img_name); if(!strcmp("png",$ext)) $src_img=imagecreatefrompng($img_name); $old_x=imageSX($src_img); $old_y=imageSY($src_img); $ratio1=$old_x/$new_w; $ratio2=$old_y/$new_h; …

Member Avatar for sudeepjd
0
220
Member Avatar for pabzzmike

Hello, I need to rotate images in a website based on the time of day. Please help out with this code. regards, michael

Member Avatar for liamfriel
0
119
Member Avatar for yuryla

HERE IS MY CODE. I NEED TO OPEN EACH DIRECTORY AND MAKE THE LINKS FOR EACH SUBDIRECTORY. THE PROBLEM IN THIS CODE IS: EACH DIRECTORY HAS THE SAME FILE AS IN THE PREVIOUS ONE.. LIKE FOR EXAMPLE, WEBSITE OUTPUTS: DIRECTORY1 FILE1 ---- DIRECTORY2 FILE1 FILE2 ---- DIRECTORY3 FILE1 FILE2 FILE3 …

Member Avatar for theausum
0
76
Member Avatar for star_lavender

Hi. I want to create a search form using the drop down list and checkbox. First, the users have to select from drop down list whether they want to search by date or id. After that, for example, a new pair of drop down list will display for the users …

Member Avatar for theausum
0
188
Member Avatar for floatingDivs

Hi Daniweb, I have a question for you guys. I've been reading up on PHP security and want to get it down pat before embarking on some projects I wish to do. The question right now is about how to create a table with PHP that will enable SHA1 hashing …

Member Avatar for theausum
0
102
Member Avatar for xabi

I'm receiving the error [code=php]Unknown column 'members.committee' in 'on clause'[/code] from the following code. [code=php]"SELECT members.firstname, members.surname, members.photo, YEAR(members.datejoined) AS yearjoined, members.profile, members.committee, category.cat_type, committee.`position`, articles.art_ID, articles.title FROM members, category LEFT JOIN committee ON members.committee = committee.ctte_ID LEFT JOIN articles ON members.mem_ID = articles.author WHERE %s = mem_ID AND members.category …

Member Avatar for theausum
0
110
Member Avatar for ahmedeqbal

Friends, I’ve list of categories with url look like this ‘index.php?cat_id=1,2,3’ I want to rewrite my url as ‘demo-page.html’ However I want to be use here my page title in url page. How its possible? Waiting for reply...

Member Avatar for theausum
0
129
Member Avatar for mithesh

Hi can anybody help me wth whats the diff b/w php and a cake PHP ? Plsssssssssssss

Member Avatar for theausum
0
94
Member Avatar for nsam

Hi all, Can somebody help me out in this as this is very urgent for me.. I want to append 2 $_get variables in a single update query so that i can assign some items to the latest inserted item Following is the code I am using.. $insert = "INSERT …

Member Avatar for theausum
0
101
Member Avatar for muneer_alam

Hi,, My problem is that i have two table city and location.In city table i have 3 field city_id(Primary key),city_name,city_status where city_status is true or false.In location table i have 3 field also loc_id(Primary key),city_id,loc_city.i done a code in which city_name comes into drop down list from city table.my problem …

Member Avatar for xerilagang
0
3K
Member Avatar for RykeTech

Hey everyone, been a while since I have been here but I need some advice in a bad way. Being new to PHP I am at wit's end with this one. I created a main website that displays images and info about the images. All of the images and info …

Member Avatar for RykeTech
0
158
Member Avatar for nukabolhi

I tried lot of way to pass the checkbox values from page 1 to page 2. But I only get successes on fruit id, how can pass the fruit charges. [CODE] // how can I pass room charges"$result[room_charges]" to page 2 // page 1 $sql=mysql_query("select * from fruit"); while ($result …

Member Avatar for nukabolhi
0
143
Member Avatar for eswar.aspire

hello, I am new to php and apache..any help is appreciated. I am designing a music website..I am designed the music player with flash.I have xml file like this where my flash player play the songs from the url..I have a folder named songs. <song> <track>Princess Song</track> <artist>Artist Two</artist> <url>songs/princess.mp3</url> …

Member Avatar for eswar.aspire
0
1K
Member Avatar for dalip_007

Hi Experts I was wondering if anybody could tell me how can i get computer name of any visitor of my site. Getting ip address is simple but this ip address remains changing in case of dynamic ip, so i need to know the computer name of visitor. Many Thanks …

Member Avatar for chrishea
0
69
Member Avatar for assgar

Hello I am experiencing some issues with a function and I cannot identify the problem. The function is not receiving any parameter. The URL values are passed correctly. I used echo to display the parameters outside the function and that worked. I also used echo to display the parameters inside …

Member Avatar for diafol
0
58
Member Avatar for purnima13

//how can i use a0,a1,a2 in a loop in php code. //this is my program please help //also onclick event is not working to call aphp function <input type="radio" name="a<?php echo $i;?>" value="average" onclick="if(this.checked) { this.form.a.style.visibility='hidden'; } else { this.form.a.style.visibility='visible';}">average <input type="radio" name="a<?php echo $i;?>" value="excellent">excellent<br> <input type="radio" name="a<?php echo …

Member Avatar for diafol
0
73
Member Avatar for mattyd

Hello. I need some direction for the following problem (I am not sure where to begin my research): I essentially, using PHP and MySQL, allow a user to enter character data into a form, submit the form, and next have this data saved to the database, then a formatted version …

Member Avatar for mattyd
0
777
Member Avatar for GreaseJunkie

Hi, I could use some help with my code. I am validating a form before processing the PHP to SQL and would like it to let the user know if they have done something wrong before the form can process. This code below changes the bad fields to yellow (BRIEFLY), …

Member Avatar for GreaseJunkie
0
186
Member Avatar for coderbest

text basic mafia game 100% working with all kind of casinos work and all things work many codes added (: its for sell i can edit it like u want ,,, i am coder if u dont want to buy i can code u game :) for more info [email]blazardfreez@hotmail.com[/email] …

0
46
Member Avatar for Noorul Ariff

Hi friends... My friend s doing an online project... He wants to know how many users(REGISTERED) are LOGGED-IN CURRENTLY in his site... i.e if i'm ADMINISTRATOR of this DANIWEB, i want to know the USERS CURRENTLY LOGGED-IN... I need the logic for this... Help me... Thanks in advance...

Member Avatar for diafol
0
121
Member Avatar for Puster

Hello, Yester day i made a script to edit profile and upload avatar, when i am gong to get the data and img out from the database, everything is a big mess! The img is on the wrong place. [url]http://bildr.no/view/740585[/url] (how i want it) [url]http://pastebin.no/z3256[/url] (code) I hope someone understand …

0
29
Member Avatar for Viruthagiri

Hello Friends, I have a site called [URL="http://minitaskr.com"]minitaskr.com[/URL] I'm getting some unknown symbol as a error in my pages. I believe the error is in the styling of the page. This is the error symbol. [QUOTE].�[/QUOTE] You can check this error in this page. [URL="http://www.minitaskr.com/faq"]http://www.minitaskr.com/faq[/URL] Can anyone solve this?. I'm …

Member Avatar for Viruthagiri
0
89
Member Avatar for kesh1000

hi all. im looking for a tutorial or a guide to code php script for login access for mutiple use types for eg. guest member staff admin do any any of you have any tutorial or guide me through it. i know basic login creation and mysql data handling. another …

Member Avatar for Graphix
0
110
Member Avatar for keyroche

Basically, I have a class that is used to add a note to the database and it links the note to a particular business. The for loop goes through all the notes (since you can have multiple for one business) and adds them to an array that is then returned. …

Member Avatar for keyroche
0
110
Member Avatar for vaibhav1983

Hi All, I am trying to implement a directory like url rewriting in php. My URL goes like this [url]www.xyz.com/Parameter1/Parameter2/1[/url] This request is forwarded to a php script, getParams.php Parameter1 and Parameter2 in the URL are GET parameters. "1" in the url indicates the page number. The URL rule that …

0
54
Member Avatar for JayGeePee

I was wondering how to display php on a html page? My site has a php backend doing all the work, html to make it look good. I'm trying to display a chat box which is coded in php on my html header page.

Member Avatar for kylegetson
0
201
Member Avatar for sakush100

$oldm='5'; I want $oldm to convert to a new variable $newm, so that $newm contains "may". I mean i want to convert $oldm to text month. How to do it ?

Member Avatar for kylegetson
0
107
Member Avatar for keyroche

Hello, I have a bit of explaining to do so please bare with me. I am developing the backend of a site and it has a log in feature. I have separated all of the functions of the whole back end into classes: clients, users, ads, database, and security. I …

Member Avatar for keyroche
0
148

The End.