38,019 Topics

Member Avatar for
Member Avatar for patti

Hi. I have spent almost a month learning and coding php forms. The code seems to work fine in testmode, but not in live mode! So I have 3 problems. Problem 1: the user has to submit twice to get the form to post. I view page source and action …

Member Avatar for patti
0
137
Member Avatar for ashneet

I made this function and the problem i have is that the Variavle $Time is not available to the whole program and what i mean by that is the function runs but doesn't set the variable to the whole thing and i have tested the function by doing echos. Is …

Member Avatar for sarahk
0
219
Member Avatar for TonyStarkz

Hey Everyone, I've been working on a PHP craps game, and I'm not sure why my code isn't working. Everything seems logical to me, but I can't get my inner loop to work. [b]The game of craps:[/b] 1) Roll a pair of die and add their some 2)IF on the …

Member Avatar for Lafinboy
0
333
Member Avatar for venetian_jigsaw

I am unable to get my pop-up to resize or hide the toolbar when I select a thumbnail. I entered the width & height in my onclick event, bu that did not seem to work. I am guessing that I probably need to enter the attributes in the function and …

Member Avatar for Lafinboy
0
572
Member Avatar for iketunde
Member Avatar for michael123

In php, is there a function like "wait()", the program executes to certain line and wait a moment(like 1 second) then proceed to next line? thanks.

Member Avatar for srikanth1243
0
76
Member Avatar for leprakhauns

Is there anyway to put PHP commands in a TPL file? When I read the source code for my page it is all put together, but I can't make it run the PHP code in the tpl file.

Member Avatar for PoA
0
94
Member Avatar for Xtothel

hi, i have a file that look something lk this: $name[0] = "blah"; $address[0]="blah"; $country[0] = "blah"; $name[1] = "blah"; $address[1]="blah"; $country[1] = "blah"; $name[2] = "blah"; $address[2]="blah"; $country[2] = "blah"; ....and so on, i want to sort the $name array in alphabetical order...but i don want to mess up …

Member Avatar for pulse
0
147
Member Avatar for ashneet

I made this code so that it can tell the program to get Morning (AM) or evening (PM) INFO [PHP] function Tms() { $time = time(); $time1 = mktime(12,00,00); if ($time > $time1) { $Time = 'AM'; } else { $Time = 'PM'; } echo $Time; echo "<br>"; echo $time; …

Member Avatar for ashneet
0
187
Member Avatar for opsryushi

Hi Everyone, I'm gonna try to make this as easy as possible to answer, but I've got some questions about this... I want to put a feature on my website where visitors can comment on an article or feature through a form by leaving their Name and then their Comments. …

Member Avatar for opsryushi
0
110
Member Avatar for namit

I am using the mail function in php mail() but its keeps sending all the bounch backs to [email]nobody@purple.webhostingireland.ie[/email] and i want it to be [email]mail@somdomail.ie[/email] Any chance of changing this.

Member Avatar for namit
0
118
Member Avatar for namit

How do i use this str_replace with this [email]bla@bla.com[/email] [email]blac@bla.com[/email] [email]namit@namit.com[/email] and so on so i have setup $email = str_replace(" ", ", ", $mail_list); but it will only talk details if i do this [email]blac@bla.com[/email] [email]bla@bla.com[/email] It does not seam to find and replace return

Member Avatar for zippee
0
212
Member Avatar for heavychevy

Ok so I execute a query and am now holding a complete recordset. ($rs_cust) Now when i check if results are returned and whether I am able to loop through this: i.e. While ($row=odbc_Fetch_array($rs_cust)) {Do something} Now I'd like to have it do something else if there are no results …

Member Avatar for heavychevy
0
125
Member Avatar for hbmarar

hi, I have started programming (learning) to free myself from depencies.I do not know how to do the below. [COLOR=Navy]i made a form that has a input box for emai and two passord inputboxexs.on submit i have to pass the same email inputbox value as the hidden value for username.In …

Member Avatar for digital-ether
0
181
Member Avatar for hbmarar

hi to all, Happy Dipawali wishes. I would like to show a form that asks for only email address and passswrd and on submission it assign to a hidden field for username as the email address submitted. Is this possible? i do not have any clue, hoping that if i …

Member Avatar for leelee
0
101
Member Avatar for textex

Hi all, I just start with my new forum use vbulletin, and I some help for coding / enlightment ... Usually we hide our links/codes/downloads using post counting from members ( ex: you must have 5 posting before can see our code etc). Now we want people to click the …

Member Avatar for Dani
0
216
Member Avatar for Xtothel

hi, i want to give a value to a variable when the surfer clicks on a link, i am not sure how to do that in php, also, i would like to pass on the value of that variable to a different page. can someone help me with the coding? …

Member Avatar for Xtothel
1
145
Member Avatar for tmatheson

Hi does anyone out there know of a good PHP script for doing screen scrapes. Ive heard of people using scripts like that to check a book on amazon with a script and a chron job service. Would appreciate any help or info anyone might have. [URL=http://www.webdesigninwisconsin.com]Chicago Web Design Company[/URL]

Member Avatar for tgreer
0
268
Member Avatar for michael123

I try to resize jpeg from photo size to thumbnails, however the thumbnails quality is bad, it looks fade and blur, I have no idea how to improve the quality of thumbnails. PHP resize function: ----- $first=imagecreatefromjpeg($uploadfile) $second=imagecreate($new_width, $new_height); imagecopyresized($second,$first,0,0,0,0,$new_width,$new_height,$width,$height); imagejpeg($second,$v_thumbnailfile); ----- Thanks for any response.

Member Avatar for RamiroS
0
138
Member Avatar for ashneet

I am using somone's code as example because i dont really understand it. This is a small part of the code which i am using as example. Here is the code: [PHP] class MySQLDB { var $connection; //The MySQL database connection var $num_active_users; //Number of active users viewing site var …

Member Avatar for Daishi
0
132
Member Avatar for ashneet

Hello Can someone explain this code to me as i am a total newb when it come to classes. [PHP] class MySQLDB { var $connection; //The MySQL database connection var $num_active_users; //Number of active users viewing site var $num_active_guests; //Number of active guests viewing site var $num_members; //Number of signed-up …

Member Avatar for ashneet
0
72
Member Avatar for NilovSerge

Help, please. I need edit programmatically(php) HTML-page so that, for example all table's definitions change on my own definitions of tables source: <table ... many props... > ... </table> destination : <table ... my props... > ... </table> And also I nees in result HTML leave some properties of the …

0
84
Member Avatar for Tina66

I just started learning php and would like to know how to create valid words using the letters "q w e r t y u i o p", which is the top row of the keyboard. I believe I need to use preg_match, yet not sure how to. Could some …

Member Avatar for srikanth1243
0
53
Member Avatar for ashneet

First of all i am new to PHP Session. THE PROBLEM: I do session_start(); command at the begening of every page so that php uses session but what i also what it to do is that if that person closes the browser and returns back to same website it should …

Member Avatar for ashneet
0
168
Member Avatar for ashwinperti

Sir I am currently using wamp5_1.4.4 1) Apache 1.3.33 2) MySql 4.1.10a And I want to update with the latest version. I could I made the modifications. PLease do help me. Ashwin Perti

Member Avatar for ashwinperti
0
169
Member Avatar for melvin

This routine works and formats the date exactly how I want it but I dont want current time. Instead I would like to format the time from a mysql database. I have tryed this [php]strtotime($row_Recordset1['when']);[/php] but it dont work. How do i get my database field in the array and …

Member Avatar for sarahk
0
96
Member Avatar for Ghost

Does anybody have any ideas on how to make your own email program? Could you use the mail function and restrict access?

Member Avatar for Ghost
0
74
Member Avatar for JC_McGeekster

Hello, These last few days I was feeling like remodding my PHPBB completely, and when I scanned through the files, I came acrossed the TPL files. I wondered, [i]TPL?[/i] and thus opened one of the files with my editor. I seen the lines coded, "{FORUM_NAME}," or something similar and wandered …

Member Avatar for fsn812
0
143
Member Avatar for extofer

The following HTML does not work on FireFox, only IE. Anyone know why?? <a href="http://www.daniweb.com/"> <img border=0 src=http://www.daniweb.com/certificates/badge45765.jpg alt="extofer has contributed to our community" width="125" height="125"> </a> :o

Member Avatar for zippee
0
183
Member Avatar for michael123

is there a php function that I can verify if the string contains all digital number, not alphabetic charactor? thanks.

Member Avatar for smac
0
259

The End.