-
Posts
2,965 -
Joined
-
Last visited
Everything posted by mikesta707
-
Not with PHP, you can use Javascript to submit the form automatically, or you can just submit the variable to the processing page itself
-
Fatal error: Call to undefined method ADORecordSet_mysql::fectrow()
mikesta707 replied to seany123's topic in PHP Coding Help
$e_gang = $e_gquery->fectrow(); do you mean fetchrow? $e_gang = $e_gquery->fetchrow(); if you actually read the error messages it will probably help identify the error -
Very true, and I should have expanded on my answer. I suggest fixing it now so you don't have to worry about it later, unless you plan on getting out of the web design any time soon
-
Yeah i played until wotlk too. It just feels like a Job, and not a game. Especially if you are doing high end content. you need to be at certain places at certain times, and grinding was boring as hell.
-
go into your PHP.ini and set register_globals to on
-
Do you have session_start() at the beginning of the page?
-
http://www.destructoid.com/man-beats-world-of-warcraft-156593.phtml Apparently someone has beaten World of Warcraft. Anyone here play? I loled heartily when I read this, at least he has some sort of accomplishment for the complete lack of hygiene/women/etc. that he had to deal with. I'm sure he had fun though
-
You probably had register globals set to ON in your php.ini, and with some update to your server it was set off, slyte's suggestion should probably work
-
MySQL remove all spaces - urgent (last thing I need)
mikesta707 replied to Vivid Lust's topic in MySQL Help
what do you mean in mysql? do you mean in a mysql query? surely str_replace() will suit your needs there. Can you explain your question a little more -
I hope this is all one big joke, and that we aren't seriously discussing the 911 "conspiracy"
-
Easier and more organized way than if/else if?
mikesta707 replied to slyte33's topic in PHP Coding Help
switch($example){ case 1: //stuff break; case 2: //stuff break; } Its called a switch/case statement -
I believe so, yes
-
you answered your own question UPDATE database SET fullName = name + surname that should do it.
-
There is a chmod command in php you can use
-
Seems good to me. What you need to remember is that "best practice" doesn't always work for everyone. If the system you have currently works best for you, and makes editing your site/adding new things easier, than all the power to you. That's not to say that certain practices aren't terrible, but as long as you stray away from bad practice, then what you are doing is most likely fine.
-
not having inheritance and using OOP are not mutually exclusive. Hell not having classes and using OOP are not mutually exclusive either. Look at Javascript, its OOP system is prototypal (is that a word) rather than classical. Oh, and why should you use OOP? because it rocks. But in all seriousness, its not about one being better than the other. Its about what tool is best for the job. The whole hammer vs. screwdriver vs. wrench debate.
-
I had written a huge reply, and I accidently closed the damn page... well long story short, web design is kind of a job (as i do some freelance work when I can) but its mostly a hobby, as I'm getting more into desktop application programming
-
Select all entries from database that include a phrase
mikesta707 replied to csteff24's topic in PHP Coding Help
what code do you have that tries to display all the days? surely you can use a loop to do this -
post the exact error you get
-
in addition to include() and its derivatives, you cold use get_file_contents() and use eval, but its basically the same thing
-
the code you posted only says : jpg not image/jpg
-
syntax error... ARGH I WILL SHOOT THIS THING!!!!
mikesta707 replied to netman182's topic in PHP Coding Help
first thing here '',$_POST[firstname]' you have an unmatched single quote '','$_POST[firstname]' also you need to surround your array variables with curly brackets, IE '','{$_POST[firstname]}' -
New to mysqli library - Multiple query problem
mikesta707 replied to johnnc's topic in PHP Coding Help
your query is probably failing. For debugging purposes, add or die(mysqli_error($connect)); and see what the error says -
Content-type has to be a valid mime-type. http://www.w3schools.com/media/media_mimeref.asp that has a list of mime types for the different file types
-
Im not sure of your question. Are you asking how to prompt the user to download the file on a link click (IE a forced download?)