342 Posted Topics
![]() | Re: You shouldn't be using GET for that stuff anyway. All of it appears in the URL ! Use POST. ![]() |
Re: I stop the null dates by trapping them before they get put into the function. I bypass it and set the displayed variable to "". You can set a default NULL in Mysql or just trap for "" and the null datetime format. mKe sure you trap waht goes into … | |
Re: I guess they ( and I) would like you to mark tour multiple threads a "solved" if you learned from them! That gives credit to those who have helped you . I find myself wondering if you ever got any of your projects working, as you jump from one thread … | |
Re: You have not passed any value in here <textarea name="info" id="info" cols="20" rows="5" readonly></textarea> something like this (example only not cut n paste) <textarea name="info" id="info" cols="20" rows="5" value ="<?PHP echo $myVar;?>"></textarea> | |
Re: [QUOTE=xuexue;1130940]yeah, i already got how to make the button do the work, however, we all know that, buttons work independently, button A is clicked, it will perform its function button B is clicked, again it will do its function too. the problem is that, how can i make once button … | |
Re: too many double quotes [CODE] row['tbl_category.category_id'] . "\"/>" . [/CODE] | |
Re: that's a server function called cname. Most hosts support cnames. Ask them how to set it up on yours or check their FAQ. | |
Re: not really a fix but, how about swapping the order of the tables in the query? When you have conflicts like that, all kinds of confusion can happen. change the conflicting name if possible, otherwise do two queries in tandem. | |
Re: An option value can be passed like this: [CODE] <option value = 1>Initial Brief</option> [/CODE] | |
Re: take the tick marks off of the variable names. they are being parsed as literal strings. | |
Re: How can you have a different count of records in each column of a given table? records are in row counts. A given table has X amount of records in it. Try writing your question again, so that we may understand it. | |
Re: [QUOTE=xuexue;1125120]hi! i just want to know, is it possible to pass the value of a variable coming from javascript to php?? knowing that the variable is inside a function?? [code=javascript] function (id,ind) { var clicked_row = id; } [/code] i want to pass the value of clicked_row to php.. thanks … | |
Re: Are you still at this? I gave you the PHP manual page for the mail function last time. I don't even seeit anywhere in your code. How do expect it to send mail without it? | |
Re: You missed a double quote. see below. One of the the things you need is a code highlighter. It showed up like a sore thumb on the forum! [CODE] message .= "<td><?php echo $_GET["GiftDesc2"]; ?></td>" $message .= "</tr> $message .= "<tr>" $message .= "<th>Address:</th>" [/CODE] | |
Re: That's exactly what Jerail gave you! Why don't you experiment with this stuff before posting? Also there are special tags used for header titles in html. [CODE] <table border="1"> <thead> <tr> <th>user1</th> <th>user2</th> <th>user3</th> <th>user4</th> </tr> </thead> <tr> <td>a</td> <td>b</td> <td>y</td> <td>z</td> </tr> </table> [/CODE] The thead defines a table … | |
Re: It looks like you have all of the essentials, except one thing...no FormArray definition in the code above. Nothing in -> nothing out. Put some names and types in there and it should work. | |
Re: are you using complete path names? are the file and/or directory permissions correct? Are the PHP files in or below doc root? I don't know what htaccess has to do with it. | |
![]() | Re: [CODE] function insertdate(d) { window.close(); window.opener.document.getElementById('date').value = d; [/CODE] You are right about this being the issue. This code is only going to fill the value of a single date element. If you have two date elements, then it has to be an array. ![]() |
Re: [QUOTE=Campbel;1121515]So I have a bit of a problem... A la I am posting on this forum. If you will bare with me for a short narrative I can explain the situation. Currently a department in my school is involved in a Weather data collection project which they have asked me … | |
Re: There's this thing called google. We all assumed that you knew how to use it. [url]http://us3.php.net/manual/en/function.mail.php[/url] Nothing complex about it. | |
I have this contact form that emails inquiries from a web site. From time to time a email like this comes through. [QUOTE] From: gbvxits Email: [email][email protected][/email] Inquiry: 9a8Lje gojaxfuklmfu, [url=http://cpjnzhrwlhwq.com/]cpjnzhrwlhwq[/url], [link=http://vshgvcdvxjea.com/]vshgvcdvxjea[/link], [url]http://sfiipmxeqijr.com/[/url][/QUOTE] What is the point of this? Why would they put the gibberish and URL stuff in there? ![]() | |
Re: nothing happens with PHP until you do a submit. JS is what you want for "real time" effects. Once the page is rendered, PHP has already done what it is going to do. Perhaps you want to echo the results back after submit? I'm not clear as to what you … | |
Re: [QUOTE] Ive tried connecting then running a query, display the results, free results then close, but it only works once, all others give an error [/QUOTE] If you close the connection, nothing else will work.. Use something like require_once() to insure only one instance. | |
Re: I learned to use that style when dealing with Joomla. Very helpful for keeping things organized, once you get the hang of what goes where and why... There are people who don't use this format properly, so be careful if you look at examples in tutorials. Try to get a … | |
Re: The 'or die " exits from the code when the condition is met. I don't see an If statement there at all. | |
Re: try this; [CODE] WHERE studentid=('. $studidnum.' AND subjectcode='.addslashes($courseids[$i])')'; [/CODE] | |
Re: [QUOTE=virspy;1119436]Good Morning Hello Friends, Is there any admin side opensource code r editors by which we can create Admin in PHP. means just including and modifying the fields Thank You in advance Viru[/QUOTE] you might want to take a look at Joomla. All of the basics are there. This open … | |
Re: apparently the way the code is sequenced, the variable did not get defined before it was used. Check thru your code where $bar is is defined and consider how that happened. | |
Re: [QUOTE] when ran, the following is given, but im baffled :-/ (the id 20 does exist in the table [/QUOTE] [CODE] WHERE ID = $prop_id"; [/CODE] no "ticks" around the variable. | |
Re: [QUOTE]I need an option of adding multiple rows by the click of a button and the generated form fields need to have dynamic name. On submitting the form, the same must be saved in the database.[/QUOTE] For the "instant" addition of a row, you need Javascript. see W3 for some … | |
Re: Do you just want a blurb accross the screen or do you want to look good in an html format? For html use a table , then populate the cells with the loop with embedded php. | |
Re: [CODE] if ($_SESSION["cust_type"] = "gold")[/CODE] You are using a boolean on a string. try just one = | |
Re: [QUOTE=Midnite002;1109503]TY amd_k8 OK I can work out that part now my only question is this ... If I have say 24 files in a folder .... ex 12am,1am,2am,3am ETC ETC 11am, 12pm,1pm,2pm etc etc till 11pm how would I make an array that would loop and give me each seperate … | |
Re: well, you start with writing the form with the two select elements. Once the form is submitted, take the selections and put them into their respective table queries. However, write the code and post it if you have any further problems. | |
Re: I haven't used that function myself, but I can tell you that you haven't provided workable arguments here. [CODE] function checkdnsrr($localhost, $recType = '') [/CODE] First of all, the function description can be found here: [url]http://us3.php.net/manual/en/function.checkdnsrr.php[/url] It checks DNS records. If you are using a localhost, there is no DNS … | |
Re: you have a problem with the catenation of the string variables into the text. I'll show you a first line example, U fix the rest of it! [CODE] //the plain text is in quotes with the cat operator on either side of the var. $body = "A coach". $coach." submitted … | |
I am going start a project that will create a pop-up window with a list of part numbers, prices , etc form another site. The listings will be selectable and then stored in our site database. I have never done anything like this before, so I would like to know … | |
| |
Re: your browser isn't supporting the cyrillic charactors. There's probably a plugin that you need. | |
Re: Somehow, there must be an open quote from an echo statement just before all of that or just a typo before that 0 which appears to be part of an if statement.. | |
Re: Maybe the miss-spelled table name is tripping you up? also the full dtail for the syntax is here: [url]http://dev.mysql.com/doc/refman/5.0/en/lock-tables.html[/url] There are other pitfalls you need to be aware of, like using an alias in queries etc.. | |
Re: Ok, you've made a db connection. Why not write the rest of it? The only thing I can add is to use POST instead of GET which , surprisingly, I see many people doing here. Encrypt the passwords. Now the ball is in your court! | |
Re: I don't know how it deletes anything as it is. The query should fail. The value for the checkbox is given as the last name here: [CODE] <td><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $row['LastName']; ?>"></td> [/CODE] But... the query is using the last name to match a first name here. … | |
Re: You are not getting the info beacuse you never sent it. The $description variable should carry all of the text that you want to read. [code] <?php $to = "[email protected]"; $subject = "Contact Us"; $name = $_REQUEST['name'] ; $email = $_REQUEST['email'] ; $cname = $_REQUEST['cname'] ; // none of these … | |
Re: Your query keeps morphing so it's difficult for someone to keeps up. For test purposes, why not stick with a single query and get THAT working. move on to the next issue? Put the auto -increment ID back and: [CODE] INSERT INTO tbl_sellers (sellerFirstName, sellerLastName, email, Address1, Address2, sellerTownCity, sellerStateProvince, … | |
Re: try it this way: [CODE] $Monday = 12-30-2009; $result = mysql_query("SELECT COUNT(*) FROM agents WHERE (sponsor = '$parent') and (lft between $leftlft AND $leftrgt) and (enrollment_date >= ".$monday); [/CODE] Well, I just fixed the $monday part. I just noticedthat you have a bunch of vars in there. You have to … | |
Re: [CODE] /* Requested Username error checking */ $req_user = trim($_GET['user']); if(!$req_user || strlen($req_user) == 0 || !eregi("^([0-9a-z])+$", $req_user) || !$database->usernameTaken($req_user)){ header( 'Location: http://www.site.com/fancy_page.html' ) ; exit; } [/CODE] | |
Re: POST returns the name variable,as a name=> value pair, not the id. The syntax might be something like: [CODE] cho ' <td id="row_'.$row['id'].'" style="display: none;"> <input type="text" name="addEdit[$id]" id="addEdit_row value="" size="4"/></td> [/CODE] This may not be compatable with what you are doing, but you get the idea... $_post will return … | |
Re: Depending on the application, you might not what to save some long winded description, The MySql varchar allows for a column of up to 255 bytes. That should be more than enough for most form situations. ![]() | |
Re: You are correct about Javascript being the way to go. PHP does everything BEFORE the page loads and after a submit. If you want pop up windows to display that info or maybe even a 'preview' of the file, that would best be put up with JS. |
The End.