
richiec
Members-
Posts
126 -
Joined
-
Last visited
Never
Everything posted by richiec
-
Ive tried it with both full links and the short one didnt do anything that was one of the first things i tested but still no change. Thanks alot for the help though mikesta707 <3 its like 5am here now though so im going to head to bed and check back tomorrow and see if anyones come up with anything
-
No change, however i did notice something... the url is not changing it doesnt add the &confirm=yes into the url oO edit: i just changed it to load this website after clicking ok and all it did was load the auctions page again..
-
This is the java"script" hehe <SCRIPT language="JavaScript"> <!-- function go_there() { var where_to= confirm("Do you really want to bid?"); if (where_to== true) { window.location="?auction=view&confirm=yes"; } else { window.location="?auctions=view"; } } //--> </SCRIPT> get part if ($_REQUEST["auctionbid"] != NULL){ //// $confirmbid = $_GET['confirm']; if ($confirmbid == ""){ echo ""; } else { blah blah }
-
What i am doing is making a kind of auction website for a game i play my guild members earn points for doing different things and then every week they bid against eachother with the points they have earned on the items we have won.. The auction works fine its just some noobs kept messing up there bids so i just wanted to add a conformation box to try and cut down on the amount of people who mess up and bid on the wrong thing.. So unfortunetly what you posted isnt what im looking for, unless i misunderstood what you were saying to do..
-
Or not ^^ lol it loses the variables it gets when clicking bid when java changes the page i hate javascript ha Isnt there any way to do a confirmation box in just php oO no you're right. do this with javascript: window.location = 'http://www.yoursite.com/index.php?confirmed=yes' and on the index.php get the confirmed from this: $_GET['confirmed'] Yeah thats how i just had it set up after reading his reply but it lost the php post variables for clicking the button before java reloads the page and didnt go through
-
Or not ^^ lol it loses the variables it gets when clicking bid when java changes the page i hate javascript ha Isnt there any way to do a confirmation box in just php oO
-
ok so pressing "yes" could just reload to a ?confirm=yes and pressing "no" would just reload back to normal page and then it would be able to get it from there i guess
-
Im trying to get a conformation pop up in php when someone presses a button but this is the first time ive ever tried to add something like this with mixing javascript and php together.. Right now it echos "You canceled your bid." for both yes and no so any ideas of how to fix this would be appreciated! The code is below.. <SCRIPT language="JavaScript"> <!-- function go_there() { var where_to= confirm("Do you really want to?"); if (where_to== true) { <?php $confirmbid = "yes"; ?> } else { <?php $confirmbid = "no"; ?> } } //--> </SCRIPT> and then the form part echo "<input type=\"submit\" name=\"auctionbid\" value=\"BID\" onClick=\"go_there()\">"; and then the follow through after its pressed.. if ($confirmbid == "no"){ echo "You canceled your bid."; } else { ///do query } Thanks ~Rich
-
[SOLVED] not sure what to put as title but 11 comes after 1 :-?
richiec replied to richiec's topic in PHP Coding Help
lol that worked, duh me such a simple fix hah Thanks mate -
Ok heres the issue, i have a field with a number in it, Now numbers go... 1 2 3 4 5 6 7 8 9 10 11 12..... however for some reason it when i use ordder by (number) desc for example.. it will come out as.. 9 8 7 6 5 4 3 2 1 10 11 12 ect should be 12 11 10 9 8 7 6 5 4 3 2 1 The reason for this i know is the first number because its "1" but is there anyway to make them order is exact number order... Thanks
-
i hadnt coppied it, it was my mistake ive figured it out now.. there was actually nothing wrong with what i thought it was lol it was just a simple hidden text field i had put in the wrong place and was in the wrong <form> so when it was actually getting to those variables it was missing something. Thanks for the help anyways ~Rich
-
Just tried that and it does the same thing any other ideas?
-
Does anyone know why this isnt working? <?php function sameamount($currentbid,$bidnumber){ if ($currentbid == $bidnumber){ echo (" <script language='JavaScript'>\n alert('You cant bid the same amount of points');\n location.href='auctions.php?auction=view';\n </script>"); return false; } else { return true; } } if(!sameamount($currentbid,$bidnumber)) die(); ?> it just refreshes the page doesnt give the error and messes up the other functions of < and >
-
Well i have tried posting this issue on actual photoshop forums however they are so damn inactive and/or get spammed so much full of random things in wrong sections of there forums your post gets knocked off before anyone can see it. I have been helped in this forum in the past with PHP issues so i figured id give it a shot here. So here it is, ive just recently installed photoshop CS4 and i have been having abit of an issue when it comes to importing video frames to layers.. It goes through the whole process of getting the layers ect however with one small problem when it has finished all layers are just white.. Any idea what could be causing this or a way to fix it? Thanks ~Sparda
-
needs to be in xml though otherwise i would do that
-
but hes using like so the before and after of $search wouldnt matter would it? it would still find the ones which match it best either way wouldnt it? not sure though..
-
$search= $_REQUEST["search"]; SELECT * FROM tablename WHERE moviefield LIKE '$search'; you mean something like that?
-
Hey all im new with xml and i have got a little bit lost.. However what i want to do is make what i believe should be a simple page which shows a simple document tree... header being something like <version="43534545"> then under that it would display the tree style of whats inside it.. like such: <version="43534545"> \/\/\/\/\/\/\/\/\/\/\/would pull the ="" from db <this="1"/> <andthis="2"/> /\/\/\/\/\/\/\/\/\/\/\ </version> any ideas how i would do this?
-
lol i did actually notice that and corrected it Thanks again bud.
-
Awesome, that works perfect now thank you very much. I have never used explode before either and i used that after changing it to / at first i went back to using - and the explode code you gave and it works great.. Thank you again! Rich
-
Using your idea and the date and time i used in my original post (date 08-22-08 and the time 12:34pm) the output i got was: will happen again on: 10-09-09 6:34 am So the time was right with adding 18 hours however the date was way off, any ideas?
-
Hey guys im having a bit of an issue.. Ill try to explain it best way i can with what it is i am trying to do.. Ok first of all in html i have a select option with a drop down menu with a bunch of names.. Under that i have 2 text boxes for date and time (the user imputs the date and time something happend) Now depending on the drop down select name clicking submit will add a set number of hours to the date and time the user submited. Lets say the user imputs todays date 08-22-08 and the time 12:34pm and lets say they select a name which adds 18 hours onto that time.. if ($_REQUEST["Submit"] != NULL){ $name = $_REQUEST["name"]; $date = $_REQUEST["date"]; $time = $_REQUEST["time"]; if ($name == "some name"){ $add = "18"; // hours to add to the date and time $name = "some name"; } Now the output i would want, would be something like.. "$name will happen again on 08-23-08 at 6:34am" (adding 18 hours to the time and date they imputed) any idea how i would do that could i get an example? Thanks alot, Rich
-
That worked, thank you very much
-
All i am trying to do right now is add a members online list at the bottom of the page.. I have that all working however if someone views the page and is not loged in it will still put them into the db.. heres the code.. $activeuser = $_SESSION["myusername"]; if ($activeuser = true) { $lastactive = time(); $activeuser = $_SESSION["myusername"]; $query = "SELECT onlineid FROM online WHERE username = '$activeuser'"; $result=mysql_query($query) or die(mysql_error()); $num = mysql_num_rows($result); if ($num == 0) { // Insert new visitor $query = "INSERT INTO online (username, lastactive) VALUES ('$activeuser', $lastactive)"; $result=mysql_query($query) or die(mysql_error()); } else { // Update exisiting visitor $query = "UPDATE online SET lastactive = $lastactive WHERE username = '$activeuser'"; $result=mysql_query($query) or die(mysql_error()); } } else { echo ""; } the if ($activeuser = true) part was just something i tried but still didnt work.. is there anyway to do it so that you have to be loged in for it to work and not put a blank username into the db?
-
I solved it, thanks for your help, ended up using a mix of my original code and yours and yes the missing { } on the last else was the problem... Thanks again Rich