|
fluxdon
|
pls explain what this line means in more details <a href= "details.php?id=
|
|
|
|
|
|
fluxdon
|
why d question mark (?) and the codes u gave me are not work for how i want it. maybe more explaination would do. Thnx so much
|
|
|
|
|
|
yawa-ti-de (f)
|
? and = represent the name and value pair respectively. It allows you to pass variables into your back end code.
So for example, let's say you are running a site for the house of assembly and want to get the representatives from say, Lagos state. You would do:
details.php?state=lagos
You can also pass more than one name/value pair by adding a "&" in b/w value pairs. Again, using the previous example, if I wanted to get reps from say, the 1st district, you would do:
details.php?state=lagos&district=1
I hope this makes sense.
|
|
|
|
|
|
quadrillio (m)
|
@fluxdon I was waiting for you to tell us if u clear or not so dat I can continue. but it seems you are a clear so I can continue
@YAWA-TI-DE thanks
|
|
|
|
|
|
fluxdon
|
@Yawa-ti-de and Quadrillio. Yeah men, u guyz r too much. At least i got a clue. I had to manually walk thru d array. i owe u guyz one sha!
|
|
|
|
|
|
yawa-ti-de (f)
|
fluxdon: don't you mean, "walk thru d gauntlet"?  quad: anytime. tis always a pleasure
|
|
|
|
|
|
*dhtml (m)
|
Keep it up jor!
|
|
|
|
|
|
quadrillio (m)
|
php seems more difficult than html, or what do u tink? Anyway, [nairalist+s] are going to a blog to sign up for their free ipods and phones. Why dnt u get your too! Http://chooseurfreegift.blogspot.comguy, I don know your aim but u should look elsewhere abi u need cane.
|
|
|
|
|
|
fluxdon
|
fluxdon: don't you mean, "walk thru d gauntlet"?  quad: anytime. tis always a pleasure @yawa-ti-de, As programmers going into a gauntlet! is like a child who injures while trying to learn to ride a bicycle.
|
|
|
|
|
|
*dhtml (m)
|
Now what is cane and gauntlet doing on this thread?
|
|
|
|
|
|
pc guru (m)
|
Dhtml,yawatde,quadrillo giving myself some assignment.But kinda stuff trying to build a blog which if i comment it'll post on the page.Is there any method/logic i can use apart from using phpmysql.
|
|
|
|
|
|
yawa-ti-de (f)
|
I don't do blogs but if it is anything like joomla then perhaps the problem is that you can't post raw html code directly on the page. You will need to add it to a module (that is what joomla calls it and/or download some kind of plugin that will enable you to add html code directly on a page.
Any other suggestions?
|
|
|
|
|
|
pc guru (m)
|
Thanx but to be quite frank.I just wanted to do it in javascript/php.Cuz i want to build up my experience better without jumping into any frameworks yet.Cuz learning frameworks like jquery without getting the ins and out of javascript will confuse me.Will check out joomla never really heard of it.How's work peace yo.
|
|
|
|
|
|
pc guru (m)
|
Thanx a lot it has to do with Cms.That was my original plan was thinking i cud pull it off without database maybe outputing to text but security wise not cool.Just gonna take it slowly don't want my head to explode.Don't mind if i disturb ya from time to time for guidance.Learning on my own is good and bad cuz i get no direction.Safe you guys keep up the work esp dhtml,quad,ywtde
|
|
|
|
|
|
*dhtml (m)
|
Developing such stuffs professionally with pure javascript,php, and mysql is the best. But the cost in terms of time and professionalism is rather much especially if you are not a regular coder. I will not try to do that directly these days, with the amount of projects i have on ground, i will rather take the easy way out like joomla. Even my framework sef, which i am yet to document, i only use it whenever joomla is not the best to handle a project. My framework is more thorough, precise, extensible and customizable than joomla. But joomla is very much faster and easier to use. but then, i use it sparingly. If you are learning, give yourself simple assigments, but if you are doing client jobs, use whatever is best!
|
|
|
|
|
|
quadrillio (m)
|
Welcome Back,
sorry for d long break, Too many deadline to meet up wit.
In this lesson you will learn how to store, display, and manipulate date and time values in PHP.
Date Formats PHP does not have a native date data type, so in order to store date values in a script, you must first decide on the best way to store these values.
Do-It-Yourself Date Formats Although you often see dates written in a structured format, such as 05/03/1974 or 2001-12-31, these are not ideal formats for working with date values. However, the latter of these two is more suitable than the first because the order of its components is from most significant (the year) to the least significant (the day), so values can be compared using the usual PHP operators.
As a string, 2002-01-01 is greater than 2001-12-31, but because comparisons are performed more efficiently on numbers than on strings, this could be written better as just 20020201, where the format is YYYYMMDD. This format can be extended to include a time portionagain, with the most significant elements firstas YYYYMMDDHHMMSS, for example.
However, date arithmetic with this format is nearly impossible. While you can add one to 20040501, for instance, and find the next day in that month, simply adding one to 20030531 would result in a nonsense date of May 32.
Unix Timestamp Format The Unix timestamp format is an integer representation of a date and time. It is a value that counts the number of seconds since midnight on January 1, 1970.
The Unix Epoch A timestamp with integer value zero represents precisely midnight, Greenwich Mean Time (GMT), on January 1, 1970. This date is known as the Unix Epoch.
Right now, we have a 10-digit date and time timestamp. To find the current timestamp, you use the time function:
echo time();
The Unix timestamp format is useful because it is very easy to perform calculations on because you know that the value always represents a number of seconds. For example, you can just add 3,600 to a timestamp value to increase the time by one hour or add 86,400 to add one daybecause there are 3,600 seconds in an hour and 86,400 seconds in a day.
One drawback, however, is that the Unix timestamp format cannot handle dates prior to 1970. Although some systems may be able to use a negative timestamp value to count backward from the Epoch, this behavior cannot be relied on.
Timestamps are good for representing contemporary date values, but they may not always be suitable for handling dates of birth or dates of historical significance. You should consider what values you will be working with when deciding whether a timestamp is the correct format to use.
Timestamp Limitations The maximum value of a Unix timestamp depends on the system's architecture. Most systems use a 32-bit integer to store a timestamp, making the latest time it can represent 3:14am on January 19, 2038.
see you in d next class.
|
|
|
|
|
|
|
|
cartoon1b
|
pls i need your help can you email with this address robhilson24@rediff.com to teach me how to upload php script on the server. with pictures. step by step guide from you or if anyone out their can help me
|
|
|
|
|
|
cartoon1b
|
ok can someone show me on how to upload script to a hosting server, i mean like what first to do and then any kind of software that is been need to run the script, i need a guide with pictures on how to go for it, can some one out they let me know how to go about it, here is my email robhilson24@rediff.com i need a help from webmasters in here any body help by teaching me step by step
|
|
|
|
|
|
quadrillio (m)
|
I prefer to chat, so that I can take u a step by step process. but since u decided to drop your mail instead
I am still workin on a tutorial for u, (if u can wait sha)
so, it not like u were ignored.
If u still need to chat my yahoo IM is quadri20_wale, or call 08077796668
SAFE
|
|
|
|
|
|
latbabs
|
i need the code to generate numbers using Php
|
|
|
|
|
|
quadrillio (m)
|
i need the code to generate numbers using Php
you ve to be specific with your question, What type of numbers are u generating? (i.e. what do you want to use it for. e.g. PIN, SERIAL e.t.c)
|
|
|
|
|
|
cartoon1b
|
pls and pls can someone out there help on how i can install script on the server can anyone out there teach me that,with step by step picture guide, what and what that i have to do first before, and what and what that i need to do first here is my email robhilson24@rediff.com the script is php actually will be hoping to hear from you soon to all webmasters
|
|
|
|
|
|
quadrillio (m)
|
pls and pls can someone out there help on how i can install script on the server can anyone out there teach me that,with step by step picture guide, what and what that i have to do first before, and what and what that i need to do first here is my email robhilson24@rediff.com the script is php actually will be hoping to hear from you soon to all webmasters actually everyone loves to help u but u ve to be more specific on wat u want. which script are u trying to install. every scripts has different way u will install dem. so please for d sake of urself and people dat wants to help you. make your question a bit clearer
|
|
|
|
|
|
*dhtml (m)
|
qadri, i saw your missed call earlier. i was knocked out flat then.
|
|
|
|
|
|
RuuDie (m)
|
sorry to derail y'all. . . . .
but am tryna save the path to a picture file in a mysql table thru a form on a page, then display the picture in a page but its just not working - the insert is not entering filepath/filename of the picture into the table.
When I leave out the picture field, it works - all other values are stored in the table; what can i do!?
|
|
|
|
|
|
yawa-ti-de (f)
|
1) Have you apportioned enough space for the column? 2) Have you escaped the slashes that are part of the file name? 3) When you view source, what do you see for the path? 4) In your table, what is actually stored, per path? 5) You see how debugging goes?  Answer at least 3 of the 5 above and maybe I can help you. Unlike others, I am a little slow so I need more information to be able to (possiblyy) help. Thanks and good luck!
|
|
|
|
|
|
RuuDie (m)
|
1) Have you apportioned enough space for the column?2) Have you escaped the slashes that are part of the file name? 3) When you view source, what do you see for the path? 4) In your table, what is actually stored, per path?5) You see how debugging goes?  Answer at least 3 of the 5 above and maybe I can help you. Unlike others, I am a little slow so I need more information to be able to (possiblyy) help. Thanks and good luck! 1. I suppose so. . . used VARCHAR (255) for that field, that ok? 2. Nope, don't have a clue how; didn't even think it was necessary 4. Doesn't insert any values into the table Thanks aplenty!
|
|
|
|
|
|
quadrillio (m)
|
qadri, i saw your missed call earlier. i was knocked out flat then.
I'll call later. jus want to clear something. @ruudie kip us posted on d progress. thanks
|
|
|
|
|
|
yawa-ti-de (f)
|
k,
Try #2 and get back to us.
good luck!
|
|
|
|
|
|
RuuDie (m)
|
k,
Try #2 and get back to us.
good luck!
thanks. . . . pls how!? i'm kind'a lost here.
|
|
|
|
|
|
yawa-ti-de (f)
|
Ruddie: Sooo, I have decided to take a flight and view it from a 30,000-foot perspective and I think (I stand corrected) I have a better understanding of what you are looking for. If you will, please hold my hand while we take a walk along the beach  Based on your original question, I assume a situation where I click "browse", search for my image and then the path gets displayed in the appropriate textbox. However, when it comes time for insertion, nothing is stored. If this is the case, then you need to do the following: 1) You need to create, via php (with necessary checking like: does directory exist? If yes, insert image else create it, setting the necessary permissions, etc), the directory where the file will go. Then you need to add the file to that directory. 2) You will then need to do something like so: $filePath = "directory/file.jpg"; and then insert this path, via mySQL INSERT, along with other values, into the appropriate columns of your table. Then to display the image, you will need to do a SELECT, retrieve/print out the file path and the image should show. Make sense? So how do you go about doing this? I would google (sorry but I am at work and we don't use PHP so I don't have my code with me) for the necessary scripts. I did a few googles and found some stuff so you shouldn't have any problems. Let us know how it goes. As always, good luck!
|
|
|
|
|
|