Jump to content
Larry Ullman's Book Forums

tocilog

Members
  • Posts

    3
  • Joined

  • Last visited

tocilog's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I'm comparing the two Scripts 12.1 and 12.2 and notice line 12 if ($dbc = mysqli_connect('localhost', 'username', 'password', 'myblog')) { // Script 12.1 if ($dbc = @mysqli_connect('localhost', 'username', 'password', 'myblog')) { // Script 12.2 What is the use of the '@'? What is the difference between with and without '@' on @mysqli_connect() and when to use the '@'?
  2. Thanks for the quick reply. I find your book easy to digest. I'm planning after this book to get the PHP Advance & OOP QVP then PHP MySQL QVP (hope this is the right order of progression).
  3. I just finished reading Chapter 6. As mentioned one should be careful not to have infinite loop but what if a mistake occurred how do we escape it? As an example in Script 6.9 instead of <?php // Print out 31 dyas: for ($i = 1; $i <= 31; $i++) { print "<option value=\"$i\">$i</option>\n"; } ?> it got written like // NOTE on "i--" instead of "i++" <?php // Print out 31 dyas: for ($i = 1; $i <= 31; $i--) { print "<option value=\"$i\">$i</option>\n"; } ?> I'm using a real web hosting so I do not want to try it that could get me suspended. But if I did try it, what will happen to the web browser display and to the hosting server?
×
×
  • Create New...