-
Posts
3,372 -
Joined
-
Last visited
-
Days Won
18
Everything posted by Muddy_Funster
-
<?php if (function_exists('simple_feed_list')) : ?> <?php $title = get_the_title(); $url = "http://www.amazon.com/rss/tag/$title/new/ref=tag_tdp_rss_new_man?tag=search-20"; $url = urlencode($url); simple_feed_list($url,'limit=5&desc=yes&nofollow=yes&more=no'); ?> <?php endif; ?> url's dont have spaces in them
-
if this is your problem, and how youre looking to fix it - your in the wrong profession.
-
PHP Update MYQSL Database...should be simple
Muddy_Funster replied to vjmehra's topic in PHP Coding Help
As you are so comfortable with SQL, you know how important it is to quote your strings... -
@ ecabrera - Your design process is completly back to front! Even in the worlds worst RAD implementation, you always establish the backend data first, then worry about the front end design.
-
which minus the isset part (which is a check you didn't mention anything about in the OP) is so very close to the code provided by spfoonnewb...
-
ok, so what condition are you using to atempt to define the condition of which year will be "sticky" then?
-
Contact Form Final result - Arrrggghhhh
Muddy_Funster replied to jokerfool's topic in PHP Coding Help
in the header. all the veiws = 1 reply: is because there are already so many replies and solutions to mail questions on this forum that most people can't be arsed repeating themselves for the 50th time any more than you can be arsed searching for existing threads on your problem. -
So, your not actualy coding your own php, and by that note - why not ask adobe to fix it for you? This is a dreamweaver problem for you, not a php one.
-
erm.... is your question?
-
so this isn't an option then?
-
sql string returns database empty when using WHERE
Muddy_Funster replied to MSUK1's topic in PHP Coding Help
Then we really need to work on how functions operate. Functions should only interact with the code that calls them, and the code they in turn call from within them selves. they should not, for instance, interface with screen output directly. To get information into a function you push it there at the time you call the function. to get information out of a function you assign a variable to the function call it's self and then feed that variable the information you want to function to give by using the return keyword within the function. On average I would say that at least 80% of the information within a function is self contained. This is a good part of what makes functions so very usefull - you can use logical variable names and declerations without concerning yourself if they already exist somewhere else in the code. This isn't just usefull for your own code, but when applications get large, and you are programming as part of a team, you can each write your own functions without having to worry "Do you think Dave would use that variable name in his function?" Functions are the old men of programing, they have been about since procedural programing was new and trendy, and the word "modular" bore the promise of better days to come. Objects have now taken that title, but just like everything else in life as things move on, the realy potent advances are kept with the new versions and integrated to work. The point behind my seeming digression on this matter is that, because functions aren't born of OOP, they can easily haze things up if your not paying absolout attention when you start to use them. Your function is trying to do more than a function does. Unfortunetly, wihtout seeing and going through all your code and how everything is refferenced within it, I can't think of a way to make it work properly. -
SQL select SUM & For and while loop in a table
Muddy_Funster replied to MrCostari's topic in PHP Coding Help
OK, break down your tables and info accurately and fully for me so we're both working off the same page. Also, an exact and verbose description of what you are looking for as an end result with as much detail as you can manage will help a lot. Once I have a better idea of your starting info and your desired output we can better work together in getting this resolved. -
$sql = mysql_query("SELECT * FROM `appz` WHERE `cid` IN ('1', '2', '3', '4', '5') ORDER BY `id` DESC");
-
add a reset button to your form? http://www.tizag.com/htmlT/htmlreset.php
-
SQL select SUM & For and while loop in a table
Muddy_Funster replied to MrCostari's topic in PHP Coding Help
What fields are you trying to sum? from your OP it looks as though all you want is SELECT (amount*productPrice) as totalPrice, (amount*(productPrice+price))as totalPricePlusMaintainance FROM products INNER JOIN productrule ON (products.productid = productrule.productid) INNER JOIN maintainance ON (productrule.maintainanceid = maintainance.maintainanceid) -
Correct, for once. Well that makes sense - you are. Others and myself atempted the discussion rout at the start of the thred, it became aparent very quickly it was pointless with you. I don't care if no one listens when I make suggestions, it's not my script they are writing. I do however get frustrated by stupid little girls making lame excuses just because they do it too. Just like the twice now I have asked you to back up your side of the argument? Where's the code or article that justifies passing password information in any form to and from a database, at every login atempt, when it is expressly unnescasery, as a good coding practice? I'd LOVE to read that. Like I already did? Seems as though if anyone learns something, it's never going to be you. Nope, that was all you're shouting down from your high horse that did that one.
-
Need help in condition that if data save header location
Muddy_Funster replied to newphpcoder's topic in PHP Coding Help
use if(mysql_affected_rows($ras_receiving)){ header('location: http://your.url'); } -
you would either need remote access to the db server on site b from site a or a cURL script to pass info to a script on site b from site a
-
I understand that there is no need to, but you guys are now insisting that by doing so, you are compromising security, and have yet to explain how. Simply saying SQL injection isn't an explanation. You have YET to explain HOW by the php script selecting the hashed password, ANYONE could then get it and look it up in a rainbow table, or do anything else with it. That's my question. You are opening up the option. It's pointless to constantly go on about this, you're clearly either incapable of getting past the concept of "hashing brings kittens back to life", or that you were wrong, and I honestly don't care which. I said there is no reason to ever do it, now your picking on security problems, so here - packet capture between web server and database server. Just because no one has an agenda to blow up a country is no excuse to be careless with how you transport your plutonium. It should never be about finding reasons to not pass security information needlesly about the place. Youre perspective is all wrong and I'm done trying to get that through to you.
-
sql string returns database empty when using WHERE
Muddy_Funster replied to MSUK1's topic in PHP Coding Help
you know, looking at your code, your best solution would be to just delete the funcion deffenition line and it's closing curly brace at the end. None of the content is properly designed to be contained in a function. When making custom functions you really need to trat them as indipendant entities, no interaction with anything that you don't specificaly pass in - so no direct communication with the display. -
if it does the job PS - I see your now using port 25......
-
You look like you are already putting the image into the $_SESSION variable $_SESSION['uploaded_file'] = $_FILES['uploaded_file']; $_SESSION['imageFile'] = $_FILES['uploaded_file']['name']; $_SESSION['imageMime'] = $_FILES['uploaded_file']['type']; $_SESSION['imgData'] = $_FILES['uploaded_file']['tmp_name']; $_SESSION['imgSize'] = $_FILES['uploaded_file']['size']; The trick is getting your head around the fact that to a computer an image is just a bigger word. It can store the binary data that makes up an image just as easily as it can the binary data that makes up your text (it just needs a bit more memory to do it).
-
then it's time to read here - more info on what you need than I could ever be motivated to write in a forum post: http://dev.mysql.com/doc/refman/5.0/en/fulltext-natural-language.html
-
Enabling PHP short_open_tag
Muddy_Funster replied to kennethk's topic in PHP Installation and Configuration
Option 1 was me being fecicious, sorry about that. No, there isn't an easy option. The thing is, these things progress they way they do for a reason, usualy a very good one, and going back from these changes just causes mkore problems than it servers, especialy in the long term. Check the site for the people who made the script you want to run for an updated varsion, also, google for FREE PHP 5 SEO SCRIPT and see what you get.