Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,157,953 members, 7,835,180 topics. Date: Tuesday, 21 May 2024 at 06:40 AM

Php Class For Beginners. Question Will Be Treated With High Priority. - Webmasters (5) - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Php Class For Beginners. Question Will Be Treated With High Priority. (35215 Views)

How Should Archive And Label Pages Be Treated? / Blogging Advice For Beginners / Designing A Website: For Beginners (2) (3) (4)

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) ... (13) (Reply) (Go Down)

Re: Php Class For Beginners. Question Will Be Treated With High Priority. by fluxdon(m): 11:03am On Sep 09, 2009
pls explain what this line means in more details
<a href= "details.php?id=
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by fluxdon(m): 11:06am On Sep 09, 2009
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
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by yawatide(f): 11:29am On Sep 09, 2009
? 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.
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by quadrillio(m): 10:51am On Sep 16, 2009
@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
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by fluxdon(m): 5:26pm On Sep 16, 2009
@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!
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by yawatide(f): 6:33pm On Sep 16, 2009
fluxdon:
don't you mean, "walk thru d gauntlet"? tongue

quad:
anytime. tis always a pleasure
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by Nobody: 9:02pm On Sep 17, 2009
Keep it up jor!
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by quadrillio(m): 1:53pm On Sep 30, 2009
zikclassiq:

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..com
guy, I don know ur aim but u should look elsewhere abi u need cane.
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by fluxdon(m): 4:18pm On Sep 30, 2009
yawa-ti-de:

fluxdon:
don't you mean, "walk thru d gauntlet"? tongue

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.
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by Nobody: 10:45pm On Oct 04, 2009
Now what is cane and gauntlet doing on this thread?
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by Nobody: 1:15pm On Oct 05, 2009
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.
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by yawatide(f): 2:56pm On Oct 05, 2009
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?
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by Nobody: 3:33pm On Oct 05, 2009
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.
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by Nobody: 3:41pm On Oct 05, 2009
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
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by Nobody: 6:20pm On Oct 05, 2009
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!
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by quadrillio(m): 7:43pm On Oct 11, 2009
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.
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by adebayo201: 1:26pm On Oct 15, 2009
shocked shocked shocked shocked shocked
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by cartoon1b: 2:28pm On Oct 15, 2009
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
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by cartoon1b: 7:30pm On Oct 15, 2009
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
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by quadrillio(m): 10:29am On Oct 16, 2009
I prefer to chat, so that I can take u a step by step process. but since u decided to drop ur 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
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by latbabs(m): 8:54pm On Oct 18, 2009
i need the code to generate numbers using Php
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by quadrillio(m): 11:21am On Oct 19, 2009
latbabs:

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)
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by cartoon1b: 7:36pm On Oct 20, 2009
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
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by quadrillio(m): 11:43am On Oct 22, 2009
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
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
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by Nobody: 1:21am On Oct 28, 2009
qadri, i saw your missed call earlier. i was knocked out flat then.
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by RuuDie(m): 6:50pm On Oct 28, 2009
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!?
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by yawatide(f): 6:59pm On Oct 28, 2009
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? cool

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!
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by RuuDie(m): 5:59am On Oct 29, 2009
yawa-ti-de:

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? cool

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!
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by quadrillio(m): 9:13am On Oct 29, 2009
*dhtml:

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
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by yawatide(f): 9:57am On Oct 29, 2009
k,

Try #2 and get back to us.

good luck!
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by RuuDie(m): 11:30am On Oct 29, 2009
yawa-ti-de:

k,

Try #2 and get back to us.

good luck!

thanks. . . . pls how!? i'm kind'a lost here.
Re: Php Class For Beginners. Question Will Be Treated With High Priority. by yawatide(f): 3:04pm On Oct 29, 2009
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 wink

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!

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) ... (13) (Reply)

best BULK SMS provider in Nigeria ? / When You Are A Computer Guru And Your Girlfriend Needs Your Assistance / The Meaning Of CAPTCHA & 6 Types Of CAPTCHA

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 49
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.