-
Posts
2,965 -
Joined
-
Last visited
Everything posted by mikesta707
-
Define "truely" random. Computers in general are incapable of "true" randomness
-
Haha, yeah that must be it
-
You know, I thought it said somewhere that he was Russian, but upon reading it again, it seems I was mistaken. Maybe I just assume all physicists are Russian for some reason... hmmm and Yeah string theory IS interesting, and all that Jazz, but its fun to make fun of
-
oh your trying to alter its CSS? try the class attribute rather than the id attribute.
-
well, you didn't sanitize your variables at all, so your vulnerable to sql injection there. Just use mysql_real_escape_strings() on any post or get variables and you should be ok
-
ahh man, now it can't be a 1 line function function sign() { $string = ""; foreach(func_get_args() as $args){ $string .= (str_len($args) > 0) ? "<span>".$args."</span>" : ""; } return $string; } dam badbad, always beating me. Oh well, our solutions are exactly the same, but mines a little short
-
Meh, if I wanted to learn about crazy theories I'll just research string theory
-
function sign() { return "<span>".implode('</span><span>', func_get_args())."</span>"; } should work. untested though
-
That is very vulnerable to a whole slew of security risks, but I'm glad it works. However, you could just do answer = confirm(message); if (answer){ window.location.href = "tshowconfirm.php?which=" + answer + "&picked=" + Param + "&id1=" + id1 + "&id2=" + id2 + "&id3=" + id3; } instead so that the user can stay on the page if he chooses to abort, instead of being taken to that page.
-
$content .= '<a id="link" href="buying.php?pg=' . $i . '">' . $i . '</a>' . " "; ?
-
Yo dawg, I heard you like yo yo's so I put a yo yo in your yo yo so you can yo yo while you yo yo yo yo
-
How to display mysql results last to first?
mikesta707 replied to Tonic-_-'s topic in PHP Coding Help
Yes, the solved mod hasn't been reinstalled yet as of the new upgrade I believe. timestamps are never bad to have though, so you might just want to add it to your table anyways -
Apparently apparently not if no errors were triggers. If no errors were triggered, than the query is valid. Try tweaking your logic. Also, if you have PHPmyadmin, try entering the query directly into that and see if it returns anything
-
How to display mysql results last to first?
mikesta707 replied to Tonic-_-'s topic in PHP Coding Help
well theoretically, if you were using an auto increment id, than ordering by that id should work also. -
I know how to make a pagination script yes. I could theoretically adapt it to your current script, but you aren't asking for someone else to do it for you, you were asking for help. I figured a tutorial on pagination would help you, since that what you wanted. if you are saying you don't understand the tutorial, and refuse to try to understand it, than what incentive is there for me to just do it for you. Maybe you should explain what exactly you don't understand about the pagination tutorial? then maybe I, or someone else can try to explain to you what you don't understand. When you show an incentive to learn, people show an incentive to teach, but just demanding answers and refusing to read something and learn on your own is a sure fire way to get no answers. It's not that i'm reluctant to help, its that I am reluctant to make your script for you.
-
why don't you just use implode? echo implode(" ", array("hello", "how", "are", "you"));
-
Empty session file but debug $_SESSION before looks good
mikesta707 replied to SchlauFuchs's topic in PHP Coding Help
post your code? -
but all I know how to be is a know it all douche! If you don't understand the tutorial, then you should learn more about PHP before you try to do this. It will be a headache trying to just take some code you don't understand and apply it to code that you (seemingly) barely understand. I could write a simple pagination script, but I'm not going to create a whole script and tailor it to your situation. People who post here volunteer their time, and a little respect goes a long way. by the way, i didn't mean to come off like a "know it all douche" as you so eloquently put it, but may i suggest that you not come off as a whiny brat when asking for help on a forum of volunteers
-
that means that you are passing in an array rather than the value at a certain point in the array. it did that for the value of $header? can I see how you define $header in the updated code?
-
try adding or trigger_error(mysql_error()); after each of your queries. but one thing I noticed, in this query $sql5="select pname, comp, place_name FROM pname, comp, comp_result, place WHERE pname.name_id=comp_result.pname_id AND comp.comp_id=comp_result.comp_id AND place.place_id=comp_result.place_id and comp_year='$yearfull' order by place.place_id;"; you seem to be columns that have the same name as tables
-
Anyone interested in Physics? Well a Russian physicist recently created a new theory for gravity. Excerpt from beginning of article: sauce: http://www.scientificamerican.com/article.cfm?id=splitting-time-from-space I read through that and thought it was pretty interesting. Maybe we can finally explain what the hell gravity is for a change. Opinions?
-
i mean using code bb tags, ie [code=php:0] [/code] for PHP or [code] [/code] for general code. I understand it uses basic record sets, but once you get something with basic record sets working, all you would really need to do to adapt it to your current set up is change the limit/entries per page/what your selecting from the table. honestly, your display code won't really change at all
-
What exactly is the problem? error? not displaying any results? A little more explanation would help
-
I would say yes, a Cron job would be the easiest implementation
-
Please wrap your code in code tags. here is a basic pagination tutorial http://www.phpfreaks.com/tutorial/basic-pagination That should help get you started. Once you figure out the steps to use pagination, adapting your current script to that shouldn't be hard