38,019 Topics
|
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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. |
|
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. |
|
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 … |
|
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; … |
|
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. … |
|
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. |
|
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 |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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? … |
|
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] |
|
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. |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 |
|
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 … |
|
Does anybody have any ideas on how to make your own email program? Could you use the mail function and restrict access? |
|
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 … |
|
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 |
|
is there a php function that I can verify if the string contains all digital number, not alphabetic charactor? thanks. |
The End.