Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K
~12.8K People Reached
Favorite Tags

23 Posted Topics

Member Avatar for Wraithmanilian

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.

Member Avatar for Web Dev Rob
0
376
Member Avatar for Blacklister

[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 …

Member Avatar for ketan_156
0
604
Member Avatar for MehdiAnis

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 …

Member Avatar for MehdiAnis
0
610
Member Avatar for andydeans

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.

Member Avatar for diafol
1
286
Member Avatar for nathan2oo3

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 …

Member Avatar for nathan2oo3
0
99
Member Avatar for alla87

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.

Member Avatar for cwarn23
0
3K
Member Avatar for ElegantElephant

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].

Member Avatar for Jerail
0
119
Member Avatar for motters

[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 …

Member Avatar for motters
0
941
Member Avatar for Aamit

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]

Member Avatar for Jerail
0
133
Member Avatar for 4789787

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?

Member Avatar for Jerail
0
594
Member Avatar for zodiacfive
Member Avatar for zodiacfive
0
103
Member Avatar for xuexue
Member Avatar for xuexue
0
281
Member Avatar for drewpark88

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. …

Member Avatar for drewpark88
0
156
Member Avatar for prithvi.web

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 …

Member Avatar for Jerail
0
2K
Member Avatar for Mouse1989

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 …

Member Avatar for Jerail
0
108
Member Avatar for ursrathika
Member Avatar for Jerail
0
112
Member Avatar for Campbel

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.

Member Avatar for phpbeginners
0
318
Member Avatar for divyakprabh
Re: php

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 …

Member Avatar for diafol
0
93
Member Avatar for tryphy

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 …

Member Avatar for Jerail
0
2K
Member Avatar for umandajayo

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]

Member Avatar for Jerail
-2
151
Member Avatar for peck3277

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 …

Member Avatar for Jerail
0
77
Member Avatar for vanessia_1999

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]

Member Avatar for vanessia_1999
0
164
Member Avatar for Jerail

... 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 …

Member Avatar for Jerail
0
424

The End.