Page 1 of 1
i am confused?what i do
Posted: Wed Jan 16, 2013 1:55 am
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
Re: i am confused?what i do
Posted: Wed Jan 16, 2013 4:40 am
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

Re: i am confused?what i do
Posted: Wed Jan 16, 2013 11:45 am
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.
Re: i am confused?what i do
Posted: Tue Feb 12, 2013 7:09 am
by darkbox
YouTube video helps. Try watching basic PHP you'll learn from it.
Re: i am confused?what i do
Posted: Mon Mar 11, 2013 2:39 am
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.
Re: i am confused?what i do
Posted: Mon Mar 11, 2013 3:34 am
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.
Re: i am confused?what i do
Posted: Mon Mar 11, 2013 8:18 pm
by Doug G
I disagree. w3schools is a helpful and useful site.
Re: i am confused?what i do
Posted: Wed Apr 03, 2013 7:06 am
by Grizzzzzzzzzz
Doug G wrote:I disagree. w3schools is a helpful and useful site.
<b> tags

Re: i am confused?what i do
Posted: Thu Apr 04, 2013 3:37 pm
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
Re: i am confused?what i do
Posted: Thu Apr 04, 2013 4:44 pm
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. </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. </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.
Re: i am confused?what i do
Posted: Tue Apr 09, 2013 1:53 pm
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.