Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
Which makes perfect sense - as long as he's really not expecting any other value other than 3. In which case why wasn't the original code if($page==3) instead of that weird greater than/less than combo?
-
What exactly is so funny?
-
I didn't see that he was using the array there. (That's why you need to explain what's actually wrong, so we don't go chasing wild geese)
-
Between lines 13-14 you need to call bindValue to replace your placeholder with a value. In the future when you ask for help, you need to explain more than just the fact that something somewhere is wrong.
-
Are you just trying to say 3, or is there a possibility that $page could be 3.5 or something?
-
If you don't know the basics of doing a loop in PHP, then yes you are a newbie. It's kind of one of the most basic things you can learn.
-
Did you stop the process through Xamp? When you shut down your computer it should stop.
-
Well that is a different question isn't it?
-
You're calling the fetch function twice. The first time you never do anything with the result.
-
You added an empty div? Yes, that's bad coding.
-
Your string ends with " AND ". Not "AND".
-
Edit: didn't realize there was a page 2, ignore me.
-
Behat/Mink - echo a message to console within a step
Jessica replied to Jessica's topic in Miscellaneous
For a few reasons - one is that one of our steps involves checking an email account to see if the email was recieved. The step automatically waits 30 seconds. However it doesn't output to the screen that it's checking email until after it's passed or failed, so when we are manually running the tests and watching, it sits for 30 seconds with no output. We wanted to add a simple message that says "Waiting for 30 seconds before Checking Email". -
Did it work? (You should pick aliases that mean something. Probably also add in an ORDER BY dailyMasterLogs id, so you can output them easily. For more on that see my tutorial here: http://thewebmason.com/tutorial-parent-child-lists/)
-
DO WHAT? Is your question as simple as how do I select my data from my database and output it in HTML? Is it more complex? WHAT are you trying to do with CODE?
-
No! Bad! Use a join.
-
With code. We don't write code for you here. You have to make an attempt. Your question is equivalent to asking someone "how do I use my computer?" There's a million questions following that. What kind of computer? Use it to do what? Etc etc
-
I also don't think someone with 250+ posts here can call themselves a newbie.
-
This is basic stuff, but..(multidimensional array count)
Jessica replied to Big_Pat's topic in PHP Coding Help
With what? You've posted no code, no description of what you've tried... -
Really? $max = 4; echo '<select>'; for($i=1; $i<=$max; $i++){ echo '<option value="'.$i.'">'.$i.'</option>'; } echo '</select>';
-
A way to do what? What exactly are you trying to do, with what code, and what is not working? We don't need to see all of your HTML.
-
Using behat to run some tests - if I add an echo within a step, or echo in my afterStep() function, I don't get the message until all the steps are done running (so if afterStep() has echo 'test'; at the end I get testtesttestest etc.) I can't find anything on google about this, I see examples where people are doing an echo within their steps, but I can't get it to work. Any ideas?
-
PHP REST API: How to Send a File as a Response.
Jessica replied to cpordoegr's topic in PHP Coding Help
Did you include all of those headers? Both of those things are covered- 5 replies
-
- post request
- rest
-
(and 1 more)
Tagged with: