342 Posted Topics

Member Avatar for Zagga

You shouldn't be using GET for that stuff anyway. All of it appears in the URL ! Use POST.

Member Avatar for Zagga
1
170
Member Avatar for whitestream6

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 …

Member Avatar for JRM
0
86
Member Avatar for takeshi

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 …

Member Avatar for kireol
0
262
Member Avatar for WickidGRAFX

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>

Member Avatar for WickidGRAFX
0
7K
Member Avatar for xuexue

[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 …

Member Avatar for xuexue
0
105
Member Avatar for whiteyoh

too many double quotes [CODE] row['tbl_category.category_id'] . "\"/>" . [/CODE]

Member Avatar for pritaeas
0
137
Member Avatar for accountholder

that's a server function called cname. Most hosts support cnames. Ask them how to set it up on yours or check their FAQ.

Member Avatar for cwarn23
0
123
Member Avatar for ElegantElephant

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.

Member Avatar for JRM
0
98
Member Avatar for ElegantElephant

An option value can be passed like this: [CODE] <option value = 1>Initial Brief</option> [/CODE]

Member Avatar for ElegantElephant
0
99
Member Avatar for whiteyoh

take the tick marks off of the variable names. they are being parsed as literal strings.

Member Avatar for shashankshah
0
104
Member Avatar for whiteyoh

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.

Member Avatar for JRM
0
63
Member Avatar for xuexue

[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 …

Member Avatar for xuexue
0
281
Member Avatar for drewpark88

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?

Member Avatar for drewpark88
0
162
Member Avatar for drewpark88

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]

Member Avatar for drewpark88
0
157
Member Avatar for prithvi.web

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 …

Member Avatar for Jerail
0
2K
Member Avatar for Stefano Mtangoo

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.

Member Avatar for Stefano Mtangoo
0
116
Member Avatar for UnderPressure

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.

Member Avatar for UnderPressure
0
119
Member Avatar for michelleradu

[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.

Member Avatar for michelleradu
0
372
Member Avatar for Campbel

[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 …

Member Avatar for phpbeginners
0
318
Member Avatar for drewpark88

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.

Member Avatar for Ezzaral
0
89
Member Avatar for JRM

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?

Member Avatar for diafol
0
299
Member Avatar for umandajayo

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 …

Member Avatar for Jerail
-2
151
Member Avatar for whiteyoh

[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.

Member Avatar for adamramadhan
0
481
Member Avatar for jesy83

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 …

Member Avatar for JRM
0
75
Member Avatar for vanessia_1999

The 'or die " exits from the code when the condition is met. I don't see an If statement there at all.

Member Avatar for vanessia_1999
0
164
Member Avatar for PinoyDev

try this; [CODE] WHERE studentid=('. $studidnum.' AND subjectcode='.addslashes($courseids[$i])')'; [/CODE]

Member Avatar for PinoyDev
0
132
Member Avatar for virspy

[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 …

Member Avatar for JRM
0
76
Member Avatar for vanessia_1999

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.

Member Avatar for vanessia_1999
0
141
Member Avatar for whiteyoh

[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.

Member Avatar for JRM
0
151
Member Avatar for chandervijay

[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 …

Member Avatar for JRM
1
709
Member Avatar for prithvi.web

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.

Member Avatar for prithvi.web
0
352
Member Avatar for benk1

[CODE] if ($_SESSION["cust_type"] = "gold")[/CODE] You are using a boolean on a string. try just one =

Member Avatar for benk1
0
113
Member Avatar for Midnite002

[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 …

Member Avatar for Stefano Mtangoo
0
321
Member Avatar for flowers1

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.

Member Avatar for newbie2010
0
269
Member Avatar for phpDave

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 …

Member Avatar for phpDave
0
334
Member Avatar for Tracie-marie

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 …

Member Avatar for compusolver
0
186
Member Avatar for JRM

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 …

Member Avatar for JRM
0
80
Member Avatar for Facte
Member Avatar for Krstevski

your browser isn't supporting the cyrillic charactors. There's probably a plugin that you need.

Member Avatar for JRM
0
108
Member Avatar for phouse512

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..

Member Avatar for phouse512
0
73
Member Avatar for zhinokin

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..

Member Avatar for JRM
0
96
Member Avatar for Stefano Mtangoo

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!

Member Avatar for vjimatjijoro
0
582
Member Avatar for preetg

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. …

Member Avatar for JRM
0
119
Member Avatar for s7randall

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 …

Member Avatar for JRM
0
160
Member Avatar for whiteyoh

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, …

Member Avatar for JRM
0
139
Member Avatar for codewalkz

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 …

Member Avatar for codewalkz
0
127
Member Avatar for vampyrescene

[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]

Member Avatar for JRM
0
92
Member Avatar for claudiu_is

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 …

Member Avatar for JRM
0
146
Member Avatar for NoID

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.

Member Avatar for diafol
0
90
Member Avatar for peko_peko

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.

Member Avatar for peko_peko
0
201

The End.