Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2014 dynamic web #215

Open
bidjan opened this issue Sep 19, 2016 · 15 comments
Open

2014 dynamic web #215

bidjan opened this issue Sep 19, 2016 · 15 comments

Comments

@bidjan
Copy link

bidjan commented Sep 19, 2016

Hi creptor:

I have learned a lot about taking short cuts in writing scripts and overall php folder structure.

Curious to be informed if any additional video tutorials either as an extension to current series or new series are under consideration.

Thank you again for all your help.

Bob Ghodsi

@dev123abc
Copy link

$q="SELECT * FROM atomcms.pages WHERE id=1"; on video series Developing a Dynamic Website 2014 - Part 9 - Using PHP to Display Data from MySQL

@creptor
Copy link
Contributor

creptor commented Nov 7, 2016

I haven't found any other series that are has complete or extensive has this one, you by now should try to create your own page and do some research in internet or books. Any way, if you find something that would be helpful for learning PHP, please post it here so that the other can learn from it too.

Note: By now you know most of the basic of PHP, which is offered in many web learning applications, if you wish to get into one of those, make sure that it has new content so you don't get bored.

@creptor
Copy link
Contributor

creptor commented Nov 7, 2016

Another thing to learn after you finish could be to create mobile apps, that should be interesting and very helpful if you're making things that are based on interaction with the users.

@dev123abc
Copy link

Parse error: syntax error, unexpected '$q' (T_VARIABLE) in C:\wamp\www\Series\index.php on line 5

@dev123abc
Copy link

sorry this is the error

@creptor
Copy link
Contributor

creptor commented Nov 7, 2016

That has no error, please post the hole code, use http://pastebin.com/ or https://gist.github.com/

@dev123abc
Copy link

<title> </title>
         <?php include('config/css.php'); ?>

          <?php include('config/js.php'); ?>

 </head>

 <body>

    <div id="wrap">

       <nav class="navbar navbar-default" role="navigation">

           <div class="container">

               <ul class="nav navbar-nav">
                   <li class="active"><a href="#">Home</a></li>
                   <li><a href="#">About Us</a></li>
                   <li><a href="#">FAQ</a></li>
                   <li><a href="#">Contact</a></li>
               </ul>

           </div>

       </nav><!-- End nav -->

           <div class="container">

                  <h1><?php echo $page['header'] ?></h1>

           </div>

    </div><!-- End wrap -->

   <footer class="footer">

         <div class="container">
         <p>This is my footer.</p>
         </div>

   </footer><!-- End footer -->



 </body>

@dev123abc
Copy link

No description provided.

@creptor
Copy link
Contributor

creptor commented Nov 7, 2016

The include('config/setup.php') is missing a semicolon, it should be like this:
include('config/setup.php');

Note: Please if an error is out of subject, create a new issue for it, to avoid issues getting messy.

@dev123abc
Copy link

Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in C:\wamp\www\Series\index.php on line 8

@dev123abc
Copy link

now this error

@creptor
Copy link
Contributor

creptor commented Nov 7, 2016

The variable $q = "SELECT * pages WHERE id=1"; should be $q = "SELECT * FROM pages WHERE id=1";

@dev123abc
Copy link

yeah thanks alot all issues gone now appreciate your work

@dev123abc
Copy link

thanks for your time so nice of u

@creptor
Copy link
Contributor

creptor commented Nov 8, 2016

No problem!! 😝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants