- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
23 Posted Topics
Re: This could be useful. Thanks for sharing. My only concern would be with the stress put on the server...I wonder if there'd be a way to cache the thumbnails so they wouldn't have to be re-converted every single time the page is loaded. | |
Re: [quote=Blacklister]also can i do this without using AJAX , by using simple php[/quote] No, you can't. PHP is server-side only. It generates a web page, and gives it to the browser. Once that's happened, PHP has no more control over the functioning of the page. There is no way for … | |
Re: Well, ASP.NET is more complex when uploading to a server, because it works in unison with a compiled language like VB or C#. It's generally important to upload everything as a project, and not as individual files. PHP, on the other hand, is purely a scripting language and doesn't require … | |
Re: There's probably more than one way of going about this, but what I would do is just take the current time, add (1 week, 1 month, 3 months) to it, and search the database, with the calculated date as one of the conditions. ![]() | |
Re: Ok, well no problem with the variable. You have double-quotes around the string which is fine. The problem is that it can't find the "username" field in your database table. Either you're loading the wrong table, or the field name is incorrect. Just double-check the spelling of the field in … | |
Re: I don't quite understand your while loop. Each time you loop, aren't you just replacing all the variables? As far as I can tell, the only variables that you have after the loop is finished is the result of the final loop. | |
Re: die() is a fairly simplistic command. It puts a halt to script execution and echos the string in the argument. I would recommend that you look into creating some custom error handlers at [url]http://w3schools.com/php/php_error.asp[/url]. | |
Re: [QUOTE=motters;1136828]thanks but i can't get this to work what am i doing wrong here [CODE] <?php if(isset($_SESSION['MM_Username'])){ switch($_SESSION['MM_UserGroup']){ case 1: echo '<div id="CollapsiblePanel2" class="CollapsiblePanel"> <div class="CollapsiblePanelTab" tabindex="0"> <h1>Members pages</h1> </div> <div class="CollapsiblePanelContent"> </a><a href="/mywigan/user/index.php">Memebers area</a> <br /> </a><a href="/mywigan/user/private_messages/inbox.php">Private messages</a> <br /> </a><a href="/mywigan/user/profile.php">Profile</a> <br /> </a><a href="/mywigan/user/Competitions.php">Competitions</a> </a></pre> <br … | |
Re: Here's a class that allows you to manipulate word docs, but only if you have MS Word installed on the server: [url]http://www.phpclasses.org/browse/package/3553.html[/url] | |
Re: That's a lot of code to try and sort through. Can you highlight the lines where you retrieve the information about the last topic viewed, and show us an example of the output? | |
Re: Or even a <meta http-equiv="refresh"> should do the trick. | |
Re: You could also use AJAX to pass it to a PHP file via $_GET | |
Re: Ok, you have several lines like this: [code]$message .= "<td><?php echo $_GET["shipping_address"]; ?></td>"[/code]. That's completely invalid. You need to do this: [code]$message .= "<td>{$_GET['shipping_address']}</td>";[/code] I have no idea what you think you're doing, but if you put "<?php echo" within a string, that's exactly what will go in the string. … | |
Re: Maybe something like this: [code] <?php $table = "<table>"; foreach($array as $value) { foreach($value as $initials) { $table .= "<tr>"; foreach($intials as $info) { $table .= "<td>$info</td>"; } $table .= "</tr>"; } } $table .= "</table>"; ?> [/code] Not sure exactly how you want the layout to look, but that's … | |
Re: Try changing [icode]if($name || $email || $message) == ""[/icode] to [icode]if(empty($name)||empty($mail)||empty($message)) { }[/icode] The preferred method of checking whether or not a variable is empty is with the empty() function ([icode][i]bool[/i] [b]empty[/b] ( [i]mixed[/i] $var )[/icode]). The OR operator (||) doesn't work quite the way you used it above. You … | |
Re: saiprem says true. I don't see a textbox anywhere in your HTML... | |
Re: Well, if you're using a Windows-based server, then Microsoft offers a free version of SQL server called SQL Server Express, available from their website. You could also look into converting the file to a MySQL-compatible one. A quick google search revealed [url=http://mssql-mysql-converter.softguru.qarchive.org/]this[/url], but it has some negative reviews. | |
Re: So if I understand correctly, you want to grab the contents of a web page, and display it in your browser? The basic method of doing that is like this: [code] <?php print(file_get_contents("http://example.com/")); ?> [/code] The only problem with this is that it grabs the HTML exactly as it appears … ![]() | |
Re: Well, what you're looking at here requires more than just PHP. You can make a script that sends the reminders (without knowing your app/database, we'd have no way of showing you how to do this), but you'll also need to set the system to automatically run your script. If you … | |
Re: Maybe something like this? But it still requires a submit... [code] <?php if(isset($_POST['submit'])) { $valueB = ' value="' . $_POST['valueA'] . '"'; } ?> <html> <body> <input type="text" name="inputA" /> <input type="submit" name="submit" value="GO" /> <br /><br /> <input type="text" name="inputB"<?php echo $valueB; ?>> </body> </html> [/code] | |
Re: My initial reaction when reading your post was that you should use JavaScript! Then I saw that you were ruling out this option. I think the ideal thing for you to do would be to set up a system that uses XMLHttpRequest (JavaScript/AJAX) which would allow you to dynamically populate … | |
Re: Perhaps something like this: [code] if(isset($picture) && !empty($picture)) echo "<img src=\"showimage.php?id=$recipeid\" border=\"0\"></a>\n"; else { /* code for replacement of image */ } [/code] | |
... and I don't know why. I'm just getting back into C++ programming after years of not using it at all. I tried to make a simple program that - Creates 10 random numbers between 0-99 and prints them - Categorizes each number by range - prints the sum of … |
The End.