i am confused?what i do

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
Sifat Khan
Forum Newbie
Posts: 2
Joined: Wed Jan 16, 2013 1:47 am

i am confused?what i do

Post by Sifat Khan »

hi guys.....
i am in big trouble.i start the php course 3 month ago but there is very confustion running in my mind.how i deal with php and mysql?....i don't understand
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: i am confused?what i do

Post by social_experiment »

the best way is to use it - use it more and you will understand it better. Use a search engine for 'PHP, MySQL Tutorials' and post any questions you (will) have back here for help :)
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: i am confused?what i do

Post by Christopher »

Also look at the PHP manual for the database library you are using (e.g., PDO or mysqli). There is example code that you can copy and try.
(#10850)
darkbox
Forum Newbie
Posts: 3
Joined: Tue Feb 12, 2013 6:56 am

Re: i am confused?what i do

Post by darkbox »

YouTube video helps. Try watching basic PHP you'll learn from it.
Jessica159
Forum Newbie
Posts: 8
Joined: Mon Mar 11, 2013 2:35 am

Re: i am confused?what i do

Post by Jessica159 »

Dear, first you clear your confusion from tutorials and if you stick on anywhere then you should visit w3schools which is the best site for learning languages online.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: i am confused?what i do

Post by requinix »

Jessica159 wrote:Dear, first you clear your confusion from tutorials and if you stick on anywhere then you should visit w3schools which is the best site for learning languages online.
w3schools is a bad place to learn from. At most, half of what they say is good and the other bad is bad, worse, or downright dangerous. People new to PHP won't be able to distinguish what is what.
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: i am confused?what i do

Post by Doug G »

I disagree. w3schools is a helpful and useful site.
User avatar
Grizzzzzzzzzz
Forum Contributor
Posts: 125
Joined: Wed Sep 02, 2009 8:51 am

Re: i am confused?what i do

Post by Grizzzzzzzzzz »

Doug G wrote:I disagree. w3schools is a helpful and useful site.
<b> tags :roll:
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: i am confused?what i do

Post by greyhoundcode »

I think w3schools can be quite handy and, fwiw, I feel http://w3fools.com/ has some misleading statements of its own. Aren't <b> tags still valid - why the rolling eyes?

http://www.w3.org/html/wg/drafts/html/m ... -b-element
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: i am confused?what i do

Post by requinix »

greyhoundcode wrote:I think w3schools can be quite handy and, fwiw, I feel http://w3fools.com/ has some misleading statements of its own. Aren't <b> tags still valid - why the rolling eyes?
They're being pedantic. <b> tags indicate that the text should be bold, but that's part of the presentation and so should be done using classes and CSS. They're often used just as a means of making things bold rather than being about adding emphasis to a term. <strong> tags carry the more semantic meaning of emphasis; the fact that they're generally styled the same way (by default) just makes the situation more confusing. Same deal with <i> and <em>.

As an example, consider a table. Often the header cells will be just regular <td>s but with <b>oldness added to make them visually distinct from the rest of the table. This is particularly true when the header cells actually contain more text than just a label, such as this "post a reply" page which has to the left "Message body:" in bold and "Enter your message here..." unweighted. (I'm using the old site theme, by the way.) Using a <th> will automatically style the whole thing so that's less useful. The markup is literally

Code: Select all

<td class="row1" valign="top">
    <b class="genmed">Message body:</b>
    <br>
    <span class="gensmall">Enter your message here, it may contain no more than <strong>60000</strong> characters.&nbsp;</span>
    ...
</td>
Technically speaking there's no semantic meaning to most of that. It's just a regular table cell with a <b> thing and a <span>. However that span contains a <strong> which gives emphasis to the fact that I'm only allowed 60k characters. A more semantic markup would be

Code: Select all

<td class="row1" valign="top">
    <strong class="genmed">Message body:</strong>
    <br>
    <span class="gensmall">Enter your message here, it may contain no more than <strong>60000</strong> characters.&nbsp;</span>
    ...
</td>
where now the label has a better definition: it's not purely bolded text but there's a real meaning behind the words (namely that this row contains the message body).

However that's not that great an example because an even better setup would be

Code: Select all

<th class="row1"> <!-- with css vertical-align:top, probably applied to all table cells -->
    <label class="genmed" for="the textarea containing the message body">Message body:</label>
<label> is even more appropriate because a label is exactly what it is. label.genmed could then be font-weight:bold to give it the right visual appearance. Or maybe colored or something entirely different. And that's one of the strengths of semantic markup: it leaves the actual appearance up to the ever-changing whims of the site administrator, and when they change their mind that a bold label should now be unbolded, blue Comic Sans they're free to change the CSS without having to override settings, or worse change the markup.
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: i am confused?what i do

Post by greyhoundcode »

<b> tags indicate that the text should be bold
Or, <b> tags used to indicate that the text should be bold. Now they are used to indicate a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood.

That isn't the same as a <strong> tag which represents strong importance for its contents.
Post Reply