« first day (454 days earlier)      last day (4501 days later) » 

11:05 PM
Basically I can't free the result from a stored procedure.
 
I am unable to work it out. I am sorry :(
I just can't get it
In every site, there is no height for each of the sidebars
but I don't have it either
 
@JayKonieczny Can you show all of the relevant code leading up to the error? Reduced test cases are awesome.
 
still mine only goes does down as much as the text takes it down
 
Sure Charles
 
Smells like a classic case of buffered/unbuffered queries and/or prepared statement result set shenanigans.
And I love/hate those.
 
11:09 PM
If it helps, the first query is executing fine. It's only when I call the second do I get an error.
 
You'll want to edit that code into your question as well.
Sometimes, stored procedures can return two result sets.
You're only fetching one.
 
@user1079641 Your problem is that you don't understand the box model and positioning types.
 
maybe i don't but I can read that later
 
right now, I really don't have time to understand this
 
11:12 PM
@user1079641 you should really make time understanding the stuff you want to use
 
Yeah, I read about that as well. I looping through the whole thing but to no avail. Any example loops? I used a while($stmt->fetch)
 
@user1079641 If you aren't willing to learn, I'm not willing to teach. I've GIVEN you the actual code to do things, but because you will not take the time to learn, you cannot use what I've given. It's all in your court, it really is.
 
exactly
I am willing to learn
 
@user1079641 programming (even if it is CSS 'programming') should NEVER be about things happening magically (unless we are talking about magic setters / getters)
:)
 
But you aren't willing to read. I am telling you where to go learn.
 
11:13 PM
but at this minute right now, I need to put this code into the website so it can work right now
In fact, I bookmarked your link alreadyu
already*
 
@user1079641 Can I get your WHOLE HTML page and your WHOLE CSS file?
And I need ALL of it.
Only part will not do.
 
@JayKonieczny Urk, I used to know this. One moment...
 
CSS is designed to be cascading, it is pretty hard to truly isolate things.
 
@Charles any help you could provide would be awesome. I've been on this for 3 hours.
 
@JayKonieczny After freeing the result, before closing the statement, try while($stmt->store_result()) $stmt->free_result();
This will continue to fetch result sets until there aren't any (in which case store_result will return false)
And after there are no more result sets waiting, you should be able to prepare your next statement.
Keep in mind that this is cargo-cult programming I'm handing down to you. I've had to do this in the past, but I'm not sure if it's the most correct solution.
Let me know if it works. If so, I'll post an answer.
 
11:18 PM
It's not outputting anything now.
 
:P
Cargo cult programming is a style of computer programming that is characterized by the ritual inclusion of code or program structures that serve no real purpose. Cargo cult programming is typically symptomatic of a programmer not understanding either a bug he or she was attempting to solve or the apparent solution (compare shotgun debugging, voodoo programming). The term cargo cult programmer may also apply when an unskilled or novice computer programmer (or one not experienced with the problem at hand) copies some program code from one place and pastes it into another place, with little o...
 
Including my following code, so it means the statement is failing.
Just no mySQL error.
 
@JayKonieczny D'oh.
 
never heard of that term
 
ok, that was my only shot. It's worth noting that it's funny things like this that made me give up on mysqli and live in the other hell of PDO instead.
 
11:19 PM
@LeviMorrison, here is HTML: http://pastebin.com/42kK58NG
here is CSS: http://pastebin.com/V2DVwGLX
 
Charles I tried PDO but that was even worse.
 
@JayKonieczny Yeah, it can be.
 
There's no numrows or equivalent function.
And for some reason even when I do SELECT FOUND_ROWS() or COUNT(*) it doesn't return a value.
 
Oh, there is, but it's up to the driver to implement it correctly. *facepalm*
 
yeah rowCount() :(
 
11:21 PM
@user1079641 So, Profile, gffff and yutguy should all be the same height, and it should stretch down to the footer area?
 
Oh well, thanks for your attempt @Cha
damn
@Charles
 
Yeah, they should just make enter do the autocomplete. It's a PITA, especially when @CharlesSprayberry is here ;)
 
> Objective C is only popular because iOS requires it. It's like reporting that orange jumpsuits are the hot fashion trend in prison.
15
 
haha
 
@Charles Tab does autocomplete . . .
 
11:25 PM
So do I have any other options in terms of doing another type of query or something?
hmm
 
@LeviMorrison Indeed, but enter does not, thus the confusion.
 
@Charles Because enter is send. . .
 
@JayKonieczny In our own codebase, we ended up switching the two or three pages that needed to do prepared statements from mysqli to mysql, just to avoid a pretty much identical problem.
(Yay for our database adapter that can do that. Oh my gods, our database adapter can do that. KILL ME.)
 
@LeviMorrison yes, they should go all the way down to the "footer" div
so say if the center div's height increases which forces the footer to go down
everyone's height should increase
all the way down to the footer div
@LeviMorrison, you there?
 
@user1079641 Yep. I'm reading 3 column articles to figure out what yours isn't doing.
 
11:34 PM
@Charles I just settled for a couple seperate queries rather than a Stored Procedure.
Performance be damned.
3
 
Well, it's a solution.
 
@LeviMorrison any luck?
 
@user1079641 I have the three columns working, but it's messing up your layout in other places.
Resolving the issues.
 
You have some major issues going on.
No 'block' level elements can be found inside 'inline' level elements.
So no divs can be inside spans.
 
11:48 PM
oh
so what is the best way to fix it without messing up the design?
 
Swap out any spans that contain divs for divs, and fix any issues that causes.
 
ok
have you finished with the code that I assume you were fixing
 
ok but you are working on the code right? I am assuming you are, that is why I am waiting
 
@user1079641 Okay, I have cleaned it up quite a bit, but here you go:
The article I used to get it working: matthewjamestaylor.com/blog/…
Cheers.
But, it broke a few other things. You should be able to fix them, though.
 

« first day (454 days earlier)      last day (4501 days later) »