Quadrillio's Posts
Nairaland Forum › Quadrillio's Profile › Quadrillio's Posts
1 2 3 4 5 6 7 8 ... 14 15 16 17 18 19 20 21 22 (of 25 pages)
shet ajax travel b4. |
yawa-ti-de:I get your point, and for this reason I want everyone who is interested in the book to drop there email address and it will be forwarded to there box. @ rapattorny I'll get back to you. |
I NO FIT SHOUT JOOOO ![]() |
Since everyone is thinking the same way, and no one is looking at it from my angle then let forget it. hanen:I have single handedly design and develop over 20 sites, so why will I beg poeple because I want to design this one. and by the way, @hanen my sites have always looks nice. I just thought is will be fun playing around it. since the person said I can take my time. D1KeleVra:nabbed for wat? trying to steal or what (we better be careful how we contibute to post on nairaland) ![]() t-web:at least someone is getting my point. once again we can forget it. maybe I played with what you people will call real BUSINESS I thank everybody for there time and comment. (I know my poeple and my poeple know me) |
Dual Core:That is what I always do and its has been working for me, even when I call a pro I wouldn't allow him to do it, I'll ask him to teach me how to do it. U too joooo |
I dont know how deep you are in PHP, but you need to read-up on session. learn how to check if still in session. and to redirect to the login page if not in session. that is all I can say for now maybe when u give more details I can help. |
you expect me to do all this without reference to books abi MR MUSA THE GURU CAN YOU START YOURS MAYBE YOU NO GO COPY FROM BOOK, by the way, you suppose try solve the exercise, then we can talk. Almighty Guru Musa. or if you have an alternative let all nairalanders hear |
What I meant was that I will design it and everyone should look at it and tell me how to make it better. Plus am getting paid and am not planing to share it cos I have given an advice on website without collecting money, so why will I pay poeple because they are doing the same. |
yawa-ti-de:what I meant is that, as a webmaster you must have pass the stage of ordinary designer, abi you don see a good secondary student who no sabi primary school maths. FOOD FOR THOUGHT[ quote author=MT link=topic=202773.msg3170648#msg3170648 date=1228225869] @quadrillo, I 'm sorry but you didnt answer the questions. Are you implying that a webmaster is not expected to know any of those tools mentioned above??. ps. Let try and forget these "class" stuff and be more pragmatic @nuckecy Your contribution is highly valued! [/quote][quote author=nuckecy link=topic=202773.msg3170637#msg3170637 date=1228225714]@ MTIncase u need to know am a web developer. and where do you belong. OGA GURU |
is a consulting firm website. we will decide what we feel is the best for them. am given a full hand and am planing to use (htm,Xhtml,javascript,php,mysql,Css), no flash |
jus take your time and listen to the lyrics |
Lets do it together I have just be given the contract to REdesign a site, I''ll love it if we on Nairaland Build it together the reasons are: 1, I want everybody to contribute 2, I want everybody to learn from it (pros and amateur) 3, two good and devoted heads is better than one. If I see the inputs and comments I will post the link and we will start, but if there is no good one then I'll back off and do it myself. |
Akon ft Lil wizzy - I'm So Paid |
What do you think about Akon latest Album and which one are you addicted to. For me I love: * Beautiful * I'm so Paid * Against the grain * Sunny Day * FREEDOm |
Enough Oppurtunties, but dont do it for the money, Do it for the Passion. I promise you the skies is your startiing point. incase you need any assitance you can mail me. |
Blackface is tell them that its the not how long its takes but how well the guy toooo much |
@kobojunkie Thanks, Cos I also learn something from this. How u doing? |
Actually I dont do demos My Portfolio always speaks for me cos if you dont like who I am you will find it hard to like what Iill become. so I try to make every new site my best. It has always work. |
MT:NB:Curiousity kills the Cat all what u mention are necessary for a Web Designer not a Web master I believe you know the different. Web Designer (primary school) Web Developer (Secondary School) Web Master (University) ![]() |
@michal am back what I really wanted was a scenario where I can jump to a particular track, base a d friend friend selected. |
Today it's, Arguments and Return Values Every function call consists of the function name followed by a list of arguments in parentheses. If there is more than one argument, the list items are separated with commas. Some functions do not require any arguments at all, but a pair of parentheses is still requiredeven if there are no arguments contained in them. The built-in function phpinfo generates a web page that contains a lot of information about the PHP module. This function does not require any arguments, so it can be called from a script that is as simple as <?php phpinfo();?> If you create this script and point a web browser at it, you will see a web page that contains system information and configuration settings. Returning Success or Failure Because phpinfo generates its own output, you do not need to prefix it with echo, but, for the same reason, you cannot assign the web page it produces to a variable. In fact, the return value from phpinfo is the integer value 1. Returning True and False Functions that do not have an explicit return value usually use a return code to indicate whether their operation has completed successfully. A zero value (FALSE) indicates failure, and a nonzero value (TRUE) indicates success. The following example uses the mail function to attempt to send an email from a PHP script. The first three arguments to mail specify the recipient's email address, the message subject, and the message body. The return value of mail is used in an if condition to check whether the function was successful: if (mail("chris@lightwood.net", "Hello", "This is a test email" ) {echo "Email was sent successfully"; } else { echo "Email could not be sent"; } If the web server that this script is run on is not properly configured to send email, or if there is some other error when trying to send, mail will return zero, indicating that the email could not be sent. A nonzero value indicates that the message was handed off to your mail server for sending. Return Values Although you will not always need to test the return value of every function, you should be aware that every function in PHP does return some value. Default Argument Values The mail function is an example of a function that takes multiple arguments; the recipient, subject, and message body are all required. The prototype for mail also specifies that this function can take an optional fourth argument, which can contain additional mail headers. Calling mail with too few arguments results in a warning. For instance, a script that contains the following: mail("chris@lightwood.net", "Hello" ;will produce a warning similar to this: Warning: mail() expects at least 3 parameters, 2 given in /home/chris/mail.php on line 3 However, the following two calls to mail are both valid: mail("chris@lightwood.net", "Hello", "This is a test email" ;mail("chris@lightwood.net", "Hello", "This is a test email", "Cc: editor@samspublishing.com" ;To have more than one argument in your own function, you simply use a comma-separated list of variable names in the function definition. To make one of these arguments optional, you assign it a default value in the argument list, the same way you would assign a value to a variable. The following example is a variation of add_tax that takes two argumentsthe net amount and the tax rate to add on. $rate has a default value of 10, so it is an optional argument: function add_tax_rate($amount, $rate=10) { $total = $amount * (1 + ($rate / 100)); return($total); } Using this function, the following two calls are both valid: add_tax_rate(16); add_tax_rate(16, 9); The first example uses the default rate of 10%, whereas the second example specifies a rate of 9% to be usedproducing the same behavior as the original add_tax function example. Optional Arguments All the optional arguments to a function must appear at the end of the argument list, with the required values passed in first. Otherwise, PHP will not know which arguments you are passing to the function. Variable Scope The reason values have to be passed in to functions as arguments has to do with variable scopethe rules that determine what sections of script are able to access which variables. The basic rule is that any variables defined in the main body of the script cannot be used inside a function. Likewise, any variables used inside a function cannot be seen by the main script. Scope Variables available within a function are said to be local variables or that their scope is local to that function. Variables that are not local are called global variables. Local and global variables can have the same name and contain different values, although it is best to try to avoid this to make your script easier to read. When called, add_tax calculates $total, and this is the value returned. However, even after add_tax is called, the local variable $total is undefined outside that function. The following piece of code attempts to display the value of a global variable from inside a function: function display_value() { echo $value; } $value = 125; display_value(); If you run this script, you will see that no output is produced because $value has not been declared in the local scope. To access a global variable inside a function, you must use the global keyword at the top of the function code. Doing so overrides the scope of that variable so that it can be read and altered within the function. The following code shows an example: function change_value() { global $value; echo "Before: $value <br>"; $value = $value * 2; } $value = 100; display_value(); echo "After: $value <br>"; The value of $value can now be accessed inside the function, so the output produced is as follows: Before: 100 After: 200 |
I use VLC it lighter and loads faster |
@yawa-ti-de what software do you use for your design. Cos I hate DW DIE |
I decided to continue the lecture while I wait for the answer to my exercise. In the last lesson you have learned how to vary the flow of your PHP script by using conditional statements and loops. In this next lesson you will see how to create reusable functions from blocks of PHP code. In this lesson you will learn how frequently used sections of code can be turned into reusable functions. Using Functions A function is used to make a task that might consist of many lines of code into a routine that can be called using a single instruction. PHP contains many functions that perform a wide range of useful tasks. Some are built in to the PHP language; others are more specialized and are available only if certain extensions are activated when PHP is installed. The online PHP manual (www.php.net) is an invaluable reference. As well as documentation for every function in the language, the manual pages are also annotated with user-submitted tips and examples, and you can even submit your own comments if you want. Online Reference To quickly pull up the PHP manual page for any function, use this shortcut: www.php.net/function_name. You have already used the date function to generate a string that contains a formatted version of the current date. Let's take a closer look at how that example from Lesson 1, "Getting to Know PHP," works. The example looked like this: echo date('j F Y'); The online PHP manual gives the prototype for date as follows: string date (string format [, int timestamp]) This means that date takes a string argument called format and, optionally, the integer timestamp. It returns a string value. This example sends j F Y to the function as the format argument, but timestamp is omitted. The echo command displays the string that is returned. Prototypes Every function has a prototype that defines how many arguments it takes, the arguments' data types, and what value is returned. Optional arguments are shown in square brackets ([]). Defining Functions In addition to the built-in functions, PHP allows you to define your own. There are advantages to using your own function. Not only do you have to type less when the same piece of code has to be executed several times but a custom-defined function also makes your script easier to maintain. If you want to change the way a task is performed, you only need to update the program code oncein the function definitionrather than fix it every place it appears in your script. Modular Code Grouping tasks into functions is the first step toward modularizing your codesomething that is especially important to keep your scripts manageable as they grow in size and become more complex. The following is a simple example that shows how a function is defined and used in PHP: function add_tax($amount) { $total = $amount * 1.09; return $total; } $price = 16.00; echo "Price before tax: $price <br>"; echo "Price after tax: "; echo add_tax($price); The function keyword defines a function called add_tax that will execute the code block that follows. The code that makes up a function is always contained in braces. Putting $amount in parentheses after the function name stipulates that add_tax takes a single argument that will be stored in a variable called $amount inside the function. The first line of the function code is a simple calculation that multiplies $amount by 1.09which is equivalent to adding 9% to that valueand assigns the result to $total. The return keyword is followed by the value that is to be returned when the function is called from within the script. Running this example produces the following output: Price before tax: 16 Price after tax: 17.44 This is an example of a function that you might use in many places in a web page; for instance, on a page that lists all the products available in an online store, you would call this function once for each item that is displayed to show the after-tax price. If the rate of tax changes, you only need to change the formula in add_tax to alter every price displayed on that page. |
if you play bounce on NoKIA phone then this is for you all you have to do is to press 787898 when you start. you'll be invicible and nothing will kill you |
am waiting for the result |
google it |
VERY NICE, Fellow Webmasters, LET GO THERE , |
if you are looking for a freelance then be my guest, 08077796668(if you need samples I can send you enough). |
It's nice Thanks very much jah bless yeah. |
1 2 3 4 5 6 7 8 ... 14 15 16 17 18 19 20 21 22 (of 25 pages)
