-
Content Count
1,210 -
Joined
-
Last visited
Everything posted by pyost
-
Getting Certain Parts Of A Record The character data
pyost replied to FirefoxRocks's topic in Programming
Thanks Quatrux, I've corrected the two pieces of code Though to me it still seems logical for the delimiter to come after the string -
Getting Certain Parts Of A Record The character data
pyost replied to FirefoxRocks's topic in Programming
You don't really have to understand arrays, as the following code would give you pure $year, $month and $day string $date = '2007-08-27';$parts = explode('-', $date);$year = $parts[0];$month = $parts[1];$day = $parts[2]; Furthermore, if you wanted integers instead of strings, you could convert them easily: $yearNum = intval($year);$monthNum = intval($month);$dayNum = intval($day); -
Done I voted for Maxotek, since I see it as the best combination of information and design (or better to say the way you present that information). I also quite like Arbitrary's site, from the design side.
-
When you use SELECT in MySQL, you are given a results table if there are multiple rows. mysql_fetch_array returns only one row, so you would have to use a loop in order to display all the announcements.. $result = mysql_query("SELECT `name`, `message`, `poster`, FROM `flexbb_threads` WHERE `forumid` = 1");while ( $data = mysql_fetch_array($result) ) { echo $data['message'] . '<br />';}
-
Getting Certain Parts Of A Record The character data
pyost replied to FirefoxRocks's topic in Programming
You could also use the PHP explode function - it creates an array of elements taken from a string a separated with a delimiter. Or in this case: $date = '2007-08-27';$parts = explode('-', $date);echo $parts[0]; // 2007echo $parts[1]; // 08echo $parts[2]; // 27 Of course, as vujsa said, UNIT timestamps are the best way to store date and time -
For that, you will need to learn MySQL. As I don't know the structure of flexbb_thread, nor exactly what you want to do, I can't help you.
-
You can't make 3D games just like that, especially if they are MMORPGs. It requires lots of programming/modeling knowledge, as well as much experience. Not to mention that you would need a team of people in order to work quickly and accomplish everything. After all, it's rather impossible for one person to know everything necessary for a 3D MMORPG game.Oh, and by the way - Google is your friend You are not the only one that would like to make games, so look for similar discussions on other web sites.
-
First of all, do not use caps lock as it is considered shouting. It will also reduce your chances of getting hosting at Xisto.Next, in orded to get hosting, you must post and gain credits, which you will use to require and maintain (if you are approved) your hosting account.Finally, you can use both subdomain (yourweb.astahost.com) and domain (yourweb.com), though the latter is not provided by Xisto (you need to own one).
-
$result = mysql_query("SELECT `name`, `message`, `poster`, FROM `flexbb_threads` WHERE `id` = 1");$data = mysql_fetch_array($result);$data['message'] = parse_bbcode($data['message']);echo $data['name'] . '<br />';echo $data['message']; First, you retrieve the message from the database and insert one message data into an array (you would call mysql_fetch_array() again for the next row in the result set). After that, you call the function that will replace the BBCode with HTML code; of course, you need to write this yourself (or download appropriate PHP code from a scripting web site), as it is not a part of PHP (I recommend doing so with regular expressions). Finally, you are ready to output data.
-
If $date and $time are properly formed, there should be no problems.
-
Which Email Address Do You Like The Best?
pyost replied to A W K1405241550's topic in Computer Networks
Since I use MSN Messenger all the time, I started of with a Hotmail address, but soon started to hate it. First of all, the inbox would always open in Internet Explorer when opened through MSN Messenger - and I find that really annoying. Furthermore, the old inbox version was slow and messy, and the new one isn't better at all. And finally, the spam filters. If I don't get more than 5 spam mails in my inbox, I'm happy.I think all those reasons are enough for me to try GMail - and then stick with it. During the two (more, actually) years I've been using it, there were no complains. Such a simple and fast system, but has everything a average user needs. One thing that improves its score is the fact that by logging into your GMail account, you are also logged into all the web sites that use Google Accounts (and vice versa). Why would I login separately fo GMail, Google Adsense, iGoogle? And oh, Google as a search engine beats MSN and Yahoo. Together. -
I haven't played Portal yet, though I plan to, but I have seen the gameplay trailer - and I was pleasantly shocked! As far as I know, this is the first game which offers this kind of puzzles. Definitely something worth trying, as it is not a typical run-and-shoot game, which I am sure we've all became sick of. A brave move, since puzzles aren't that popular, and less people will buy it. But I surely will On a somewhat unrelated note, you can buy all the Half-Life games including popular mods (Counter Strike, Team Fortress), as well as Portal, through Steam, and it is only $100, which is a bargain if you ask me
-
JavaScript: A Welcome To Visitors Script give your visitor a warm welcome
pyost replied to cherri's topic in Programming
Seconded.I definitely do not consider a JavaScript popup a warm welcome. Perhaps if it were embeded in the page as a separate window, without a pop-up... -
Yay, you are not the only one who's going to be celebrating that
-
Both hosting plans (10/30 credits) have the same configuration - only the space and bandwidth differ. That includes, but is not limited to: cPanel, PHP, MySQL, phpMyAdmin, statistics, webmail, backup utility, file manager, addon/parked domain names, subdomains etc.We hope you enjoy your "stay" at Xisto
-
Something Wrong With This Script? Unexpected T_SRING
pyost replied to FirefoxRocks's topic in Programming
As I am not sure what will happen if you try to cast a non-numeric string into an integer (i.e. whether it will produce an error or return zero), I would advise you to use intval instead. It will always return an integer - number zero if the input is invalid -
Piracy, as well as posting links to such web sites is forbidden at Xisto!Link removed, topic closed.
-
Forward To Another Url In Php How to forward to another URL
pyost replied to Nuwan's topic in Programming
Because it would have to be located between the HEAD tags As I already said, it's JavaScript you have to use if the redirect is to occur after displaying some text on the page. If you didn't start the BODY tag yet (and therefore can use the META redirect), you can probably rewrite your code to use header() instead. -
Forward To Another Url In Php How to forward to another URL
pyost replied to Nuwan's topic in Programming
It is only a matter of time until you receive an error message saying "Headers already sent" - this will, of course, disallow you to redirect the user to another page. This is because you have already outputted some data to the page. If you ever encounter this problem, and you can't avoid it, you will have to use JavaScript. <script type="text/javascript">window.location = "Redirection URL";</script> As this can be used anywhere in the page, it is more convenient, but header() is always a better option -
JPG is good for photographies because of its quality of compression. However, if you are dealing with smaller/simpler images, such as vector art, logos etc, you are better of with GIF. Also, try to avoid PNG, as it is not properly rendered in IE6 and older.
-
It is definitely legit I've been using Xisto for the past two years without any problems, and I have switched to Xisto - Web Hosting just a few days ago. That's just goes to say how much confidence I have in Xisto and all their services
-
Of course, we all know (or so I hope) that this joke is from the famous book by Douglas Adams, "A Hitchhiker's Guide To The Galaxy" It is great to see Google incorporating these things from the ordinary life into a serious search engine, thus making its use a pleasure.
-
This site you are talking about, is it about the game, or is it the game (e.g. browser based MMORPG)?
-
The new IP.Board version brings a better (or at least more professional) design, but it is hard to upgrade, since the credits script, as well as many other modifications need to be changed in order to work with the new version.
-
I Need A More Advanced Screenshot Piece Of Software
pyost replied to dserban's topic in Graphics, Design & Animation
I believe you will find what you need on the following page: http://mashable.com/2007/08/24/web-screenshots/