Or
echo date("Y", strtotime($row['dateStart']));
Type: Posts; User: fastsol1; Keyword(s):
Or
echo date("Y", strtotime($row['dateStart']));
John you're awesome. Getting rid of the name attribute did the trick and paypal seems to still take the form and process it. So you know, there is a whole other form on the page that has all those...
Not sure what you mean by tortured code, I did mods to the jquery and might not have some brackets positioned 100% right at this moment but the form code is pretty standard. Anyway I have/had tried...
Ok getting closer still. I now have it where it gives me the conditions I want per item and I have verified through an alert() that when all responses are "good" it runs the if() for that but it...
Thanks for the help. I have tried your code and it seems to be getting closer I think. I fairly understand what you are trying to achieve in your code but sadly the result is not quite correct. I...
So I have this jquery code and it works except for one specific part. I am doing a quantity check for a shopping cart system and I need to prevent the default form submission of the submit button and...
Looks like that should work.
Will the grabbed url always be this in the front of the url?- http://www.mytravelsite.com/states/cities/thiscity/
If that is a static part of the url then you could use a str_replace() on that part...
Why not just use mysql_fetch_assoc instead?
$dir = 'directory/you/want';
foreach(scandir($dir) as $file)
{ echo '<a href="'.$dir.'/'.$file.'">'.$file.'</a><br>'; }
If you want to force the file to be downloaded, that's a little more...
This is the method that I use
$column = 3;
$rowend = 1;
echo '<table><tr>';
//Run your loop here
while ($row = mysql_fetch_array($query)) {
echo...
Nevermind, figured it out pretty fast once I thought about it. I also learned of a new SELECT feature to get the total number of rows in the first query without the LIMIT being factored and then you...
So I am just starting to convert my site to PDO but have come to a snag in my knowledge of this. I have this function for a search of products in the db and I don't know how to build this in a way...
Well from my knowledge and workings, you can do a persistent login with cookies but you would need to re-verify the person when they come back to the site to make sure they are who they say they are....
Here is a good post to read also from another forum that I am on. There are a few of the guys on there that are very good at security and the understanding of it....
Ahh I see know, I don't actually need to assign the redesigned array to a new var I can just splice them together and then use the original array from before. Tested it with my full script and it...
I have tried that method too with the same result. And actually the $count with a longer array that I usually have would insert the other array one index in from the last index of the form_fields...
So I have these 2 arrays for example
$form_fields = array(
array("tag" => array("label"),
"text" => "product name",
"name" => "pname",
"class_fields" => TRUE,
"type"...
Use the empty() instead
$username = trim($_REQUEST['usersname']);
if (empty($username))
Seriously, I gave you a link to a great tutorial on this exact thing, they just don't call it a whitelist I don't think.
Based off the rest of your current code, this
$_FILES["file"]["name"]
Should be this
$_FILES['uploaded']['name']
Also I assume there is more to the script than what you are showing, correct? ...
Here is a tutorial on secure file upload - http://www.youtube.com/watch?v=RiuLBrEFhfk&feature=plcp
I don't think it has a select file location feature but that should be super easy to add in to the...
What does this look like if you echo it - $rows["Contract_Start"]
I think you have the right concept. I have done this with the same js code you are using but it's been a while. In your example above you forgot to echo $cStart in the js code, so that may be part...
You need to set the third parameter of the set_cookie() for the time the cookie should exist.