zq29
-
Posts
2,752 -
Joined
-
Last visited
-
Days Won
1
Posts posted by zq29
-
-
We'll have to assume a number of things here, as you have not posted enough of your code to be sure about anything. Assuming your get_results() function returns false if it doesn't have anything to display, you could do this:
$r = get_results($page); if($r) { //Loop and display } else { echo "No results"; }
As for your pagination, without seeing what get_results() and multipage() do, it's kinda hard to say...
EDIT: OP posted the rest of the code while I was writing this.
-
-
You have saved this as a php file, and are serving it through a webserver via PHP, right? The errors you have posted indicate that your script is not being interpreted by the PHP engine.
The script you have posted works fine for me...
-
I haven't tested this, but it might do the trick...
header('Content-Disposition: inline; filename="'.$filename.'"');
-
Are the scripts fully executing within the maximum execution time?
-
-
How would comments and questions posted in an internet forum fall under copyright law? Copying facts is legal. So lets say I scraped the PHP help forum here - someone asked a question and then 3 people answered. That couldn't be protected under copyright law...right?
As far as I'm aware, any and all content can, and is by default, copy-written by it's author. In our case, by joining and contributing to our forums, you have agreed to transfer ownership to us.
-
...and our survey says?
Locked. No forum games, now, get off my yard!
-
Not exactly the same, but similar... How about Trac?
-
Inbound links most likely.
-
Does anyone know of, or have any experience with online payment processors / gateways that support payments that can be split and distributed between multiple recipients? For example, the customer pays £100 and it is split between merchants A, B, C and D.
-
Saw this one and thought Daniel0 would definitely pull off something like this:
http://failblog.files.wordpress.com/2009/01/fail-owned-verizon-fail.jpg (What a creative way to write a check! I love the 'WHAT NOW, BITCHES?' at the bottom lol).
Heh, that's from the guy that runs xkcd.
-
Heh, I didn't even know that quick edit button existed. I'll be using that from now on! (Both work fine for me though)
-
My initial test in this thread was done within Safari on the Mac, testing now in FireFox 3 under Ubuntu, though this sounds more like a server-side issue.
<?php echo "<div id=\"foo\">bar</div>"; ?>
echo "<div id=\"foo\">bar</div>";
EDIT: Still works OK for me.
-
echo "<div id=\"foo\">bar</div>";
EDIT
echo "<div id=\"foo\">bar</div>";
EDIT AGAIN
Works for me...
-
Have you looked into Asterisk?
Oh, and please don't bump your threads that more than once a day, people will help you if and when they can.
-
She's the lead actress in a movie called "Bring it On" - a retarded cheerleading competition movie that virtually every teenage girl on the planet obsessed over at the time.
Ahhhh, I was a bit slow on that one. "Bring It On" is awesome.
-
Might pick it up and check it out at the weekend...
-
Take 3 shots and wank it to Kirsten Dunst if a "Bing it on!" article is posted.
What's the reasoning behind Kirsten Dunst?
-
How are you retrieving the emails? If you're using the IMAP functions, you could extract the attachment from the body using something like imap_fetchbody or imap_savebody.
-
You could use the GD Library functions or install and use ImageMagick.
-
I've heard of it, I know of the light cycle, I can pick up on references to it and have seen clips from the original movie. But I have never watched the whole thing, or know what the hell it's about.
-
I think the Bing engine is pretty good, but the thing I don't like about it is that all of it's other services are "out-sourced" and not integrated. For example, the maps and the shopping. Two things I use Google for along with their search, it's just nice having it all integrated and feeling the same.
This partnership should be interesting though.
-
Hmm. I know very little about Tron, but that trailer in HD looked pretty cool but not something I'd go see. Though Olivia Wilde is in it, and she's pretty hot, so... Looks like you can't cross the streams in Tron-land either.
Next Step after creating a table??
in PHP Coding Help
Posted
He hasn't mentioned which version of MySQL or PHP he is using, so I chose the more compatible functions. Realist, if you're using MySQL 4.1.3+ and PHP 5.0.0+ it is recommended (though not required) to use mysqli_* over mysql_*.