- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
29 Posted Topics
Hello all, I am looking for a bit of code to make an input field into a calculator. The main difference from most scripts is I want it with no buttons. I am hoping to use the number pad on the keyboard. So, for example, I would like an input … | |
Hi all, I want to sort some sql results by a certain list. I don't want it sorted alphabetically or anything. I want to specify a certain list. eg "order by `office` = 'president', 'vise President', secretery'" ect. Is there anyway to do this? I didn't type this example exactly … | |
Hey All, I am trying to write a php script and would like to have an autosuggest text box with data from a mysql database. This would be for designating a town in a form. The sql query I would use would be. $sql = "SELECT DISTINCT `Town` FROM '".$Table_Name."' … | |
Hi All, I am trying to program a web based cash register/POS application. I would like to use a function to format the number in the "Amount Received" text box. The idea I have in mind is to always keep two decimal places at all times. For Example: if someone … | |
Hi There, I have a page containing the following code [code=html] <frameset rows="75,*"> <frame src="menu.php" scrolling="no" marginwidth="0" marginheight="0" /> <frame src="home.php" id="main" /> <noframes><body>Your browser does not support frames. You can view the <a href="/home.php">Home Page</a>.</body> </noframes> </frameset> [/code] NOTE: there is nothing else on the page except for <head> … | |
Hi There folks. I was thinking of trying to make a php function in my sites configuration file so that I could keep all mysql database info in one central file. I should mention that this is the first time I have tried to make my own function. I have … | |
Re: in your example, You have already converted your date to a timestamp and have the event length in seconds, so just add the seconds to the timestamp. Here, Try This... [code=PHP] $timestamp = strtotime("$time"); $etime = $timestamp+$event_length; $next_time = date('Y:m:d H:i:s', $etime); //here date get's today's date [/code] Hope It … | |
hey folks, I have a question. I have several mysql tables and I'd like to fetch data from a few of them to create a <select> <option> list. How could this be done. I can get the info from one table, but don't know how to get the data from … | |
Re: Maybe try this... Its What I've used. [icode]$num = mysql_num_rows($result);[/icode] it might help. | |
Hi all. I am having a little trouble trying to get a small script to work. What I am trying to do is create a page to use with DADA mail mailing list software. I would like this page to search through the DADA mail text file of email address … | |
Re: [QUOTE] [icode]$qProfile = "SELECT * FROM signers WHERE recordNum='$id' "; [/icode] [/QUOTE] I think it would work to use something like this... [icode]$qProfile = "SELECT * FROM signers WHERE recordNum='".$id."' "; [/icode] Hope This Helps. | |
Re: Hello There, I had found this script of the web, though I don't remember where now, anyway here's what I use. [code] <? define('SERVER', 'localhost'); //Your server host define('USRNAME', 'root'); //Your DB user name define('PASS', 'Your Pass'); //Your db Password define('DBNAME', 'db_name'); //You db name $ccyymmdd = date("Ymd"); $file = … | |
Re: What type of reflink are you meaning? I guess I don't quite understand what you mean. Do you wan't a link like this: [url]http://YourDomain.com/?ref=yourusername[/url] if so you could simply add the following to you code above [code]<tr><td colspan="2"><a href=\"<? echo SITE_URL."index.php?ref=".$row["username"]; ?>\"><img src="http://i35.tinypic.com/349ciza.jpg" border="0" alt="" /></a></td></tr>[/code] I don't know if … | |
Re: There is a tutorial that I would recommend. It can be found at [URL="http://www.jdtmmsm.com/tutorials/basicAuthentication.php"]http://www.jdtmmsm.com/tutorials/basicAuthentication.php[/URL] Hoe This Helps | |
Re: [QUOTE=mr-cracker;741432]Hi there, ok writing on database is very easy, but i don't know the following:-- 1- When storing the links in the database, i want to get new link like this, domain.com/?link=89 where 89 represent row number where the link is stored?? 2- when surfing the link, how can i … | |
Re: There are a lot of ways that you could do this. One way would be to use sessions to store some info. You can use a form like this one... [code]<form id="theme" action="" method="post"> <p> <select name="Color"> <option>please select a Color ...</option> <option value="green">Green</option> <option value="blue">Blue</option> <option value="orange">Orange</option> <option value="purple">Purple</option> … | |
Re: [QUOTE=paddy_c;743778]ok heres the code.. [code=php]if ($info!="rwxrwxrwx") return false; else return true; }//verify_folder_permissions function clean_folder($folder,$total){[/code][/QUOTE] I Think this code is missing some brackets {}. Try This [code=php]if ($info!="rwxrwxrwx"){ return false; }else{ return true; }//verify_folder_permissions function clean_folder($folder,$total){[/code] | |
Re: A script that I found to get me started with my sites can be found at [URL="http://www.jdtmmsm.com/tutorials/basicAuthentication.php"]http://www.jdtmmsm.com/tutorials/basicAuthentication.php[/URL] I did do several changes to my sites to make them a little more secure than this script offers, but it was a great start. | |
Re: If I may offer a suggestion. I use a email script on my site that I would highly recommend. It is capable of a wide range of functions. You can find it at [URL="http://jamesshuggins.com/h/hefs/huggins-email-form-script.htm"]http://jamesshuggins.com/h/hefs/huggins-email-form-script.htm[/URL] Again, This is my suggestion, there is others out there. | |
Hi Folks I am trying to make a php form processing script. The form would have a large text area in it where the visitors could type a few paragraphs of text. I want this script to break the text from the form after 75 characters or if that is … | |
Hi, I was wondering, if it is possoble (or how to) include a php file with a get form value passed. For Example: states.php?state=NY. This file would be incuded into another php file so that it would display only the items that would be in NY state. Anyone know how … | |
HI All, I've been trying to make a membership management type script. This script would have a database with the members contact info and which office they hold, if any. The problem I am having is I would like the script to show the president's and vice president's Contact info … ![]() | |
Re: I don't know if this will help, but I noticed that your include may not be correct. Try this <?php include("./renders/gallery.php"); ?> or <?php include("gallery.php"); ?> I think you include would be trying to include (if your file is at [url]www.yoursite.com/renders/index.php[/url]) [url]www.yoursite.com/renders/renders/gallery.php[/url]. I could be wrong but that is what … | |
Hey All, I am trying to write a php script and would like to have an autosuggest text box with data from a mysql database. This would be for designating a town in a form. The sql query I would use would be. [CODE]<?php $connection = @mysql_connect($server,$dbusername,$dbpassword) or die(mysql_error()); $db … | |
Hi All, I have been trying to create a php page that will upload a image, create a thumbnai and process a sql query, all automatically. I have attached the two files. The form page (show-addrecord2.php) and the processing page (do_addrecord2.php). The sql statement works fine. I am just having … | |
Re: HI, I don't know if this will help but I have a simlar php page in my project and I get a defaul image with the if statement like this: [code]if(!empty($pict_url))[/code] Try changing you if statement from [code]if ($pict_url != "")[/code] to the above if statement. It it doesn't wor4k … | |
Re: I don't know if you are still looking but there is a good recipe script [URL="http://www.jdtmmsm.com/projects/project/ezrecipezee/"]HERE[/URL] | |
Re: HI. I don't know if this will help you but here is how I have inserted similar info to a database: [CODE]mysql_query("INSERT INTO 'forum'.'reg_info' (Username, Password, Comfirm_pass, Name, Comment) VALUES ('$_POST[Username]', '$_POST[Password]', '$_POST[Confirm_pass]', '$_POST[Name]', '$_POST[Comment]')")[/CODE] Otherwise I think you would have to specify what the definitions are. EG. [CODE]$Username = … | |
Hi, I have been trying to create a searchable database and have the following code for my form and the action code. When the form is changed/submitted ll I get is an error "Query was empty" Can anyone offer any help?? [code]SEARCH By Last Name (Letter)<form NAME="navsel" action="sel_byLetter.php" method="get"> <select … |
The End.