It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming PHP and MySQL Forum

Newbies

Moderator: Malcolm

Newbies

Postby nighthawk on Tue Jun 27, 2006 10:20 pm

I started with PHP but how can I practice it on my PC. Do I need some kind of server emulator? What is EQEmu?
User avatar
nighthawk
250+ Club
 
Posts: 420
Joined: Sun Jun 11, 2006 1:53 pm
Location: SFRJ

Postby lalalogic on Tue Jun 27, 2006 11:37 pm

I'm a newbie too and I started with XAMPP. It's easy to install and it contains everything you need to get started :) http://www.apachefriends.org/en/xampp.html
bahbye devppl :]
lalalogic
100+ Club
 
Posts: 200
Joined: Tue Aug 16, 2005 4:02 am

Postby nighthawk on Mon Jul 03, 2006 9:14 pm

Xampp is very good.

I downloaded phpbb, and i wanted to install it to xampp but I need to make database first.
What is the easiest way to make SQL database? Is it something simple or I have to learn a lot of things?
User avatar
nighthawk
250+ Club
 
Posts: 420
Joined: Sun Jun 11, 2006 1:53 pm
Location: SFRJ

Postby webmaster on Mon Jul 03, 2006 11:56 pm

go to localhost/phpmyadmin and make a new database there, it's very simple (if you ahve xampp installed)
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby nighthawk on Thu Jul 06, 2006 9:04 pm

already done, thanks

maybe soon I will have my own forum. It is really nice to be forum administrator. You can control everything
User avatar
nighthawk
250+ Club
 
Posts: 420
Joined: Sun Jun 11, 2006 1:53 pm
Location: SFRJ

Postby nighthawk on Mon Jul 10, 2006 10:47 pm

I use while loop to generate string of numbers, but i don't know how to make it echoes numbers like this:

001
002
003
004...
015...
999.
User avatar
nighthawk
250+ Club
 
Posts: 420
Joined: Sun Jun 11, 2006 1:53 pm
Location: SFRJ

Postby webmaster on Tue Jul 11, 2006 7:58 am

Without the leading zeros:

[php]<?php
for($i = 1; $i<1000; $i++) {
echo $i;
}
?>[/php]
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby grommit on Tue Jul 11, 2006 8:53 am

with this code you even get the leading zero's

[php]
<?php
for ( $i = 1; $i<1000; $i++){
echo sprintf("%03d",$i);
}
?>[/php]
grommit
 
Posts: 28
Joined: Thu Jun 29, 2006 11:29 am
Location: Netherlands

Postby nighthawk on Tue Jul 25, 2006 9:20 pm

What is the purpose of .sql files? Are they suppose to create mysql database on remote server?
User avatar
nighthawk
250+ Club
 
Posts: 420
Joined: Sun Jun 11, 2006 1:53 pm
Location: SFRJ


Who is online

Users browsing this forum: No registered users and 1 guest