Jump to content

computermax2328

Members
  • Posts

    281
  • Joined

  • Last visited

Posts posted by computermax2328

  1. What you could do instead of adding a new column or a new table is have a column called "account type" or "account" for short. Make the data for each user either a 1 or a 2. If a user is a 1 they are a regular user, if a user is a 2 they are a premium user. That way you can just update their information when they become premium.

  2. Hey Guys,

     

    I am having a hard time figuring out this mysql query. So I have two tables like this.

    schools
    ----------------------------
    school | town | county | full
    
    
    
    years
    ----------------------------
    dis | location
    

    I need to insert `full` into `locations` where `school` equals `district`.

     

    Make sense? Hints would be preferred rather than answers.  

  3. Sure, you could write code to query a WordPress DB and pull out the info you want. You just have to figure out what information you need and from which tables you get it.

    That is what I thought. Would I have to use the WordPress php code or can I just use my own queries?

     

    Is this a best practice? If not what is?

  4. I think that I am having a hard time understanding the folder structure of a WordPress template. For example, I have your website home page that I would like to look different then my posts or inside pages. The content is different as well as the look and style.

     

    Maybe I am researching for the wrong word or phrase? Like a multi-layout theme.

     

    Sorry if I am conveying this poorly. I am doing multiple things at once right now.

  5. In the past I have messed around with WordPress templates and their CSS modifications. I started to dabble in template creation and I was wondering if I could use WordPress strictly for content creation and management? Instead of creating a template with header.php and sidebar.php and all that crap, can I just query the WordPress database? Mainly, I just don't want to have to upload a template.

     

    Any articles on this if possible? I Googled around in my spare time, but no in depth research.

     

    Thanks

  6. To find a solution we would have to see the CSS. Immediately, just by looking at the thumbnail it obviously seems to be a margin or padding problem. You can also set the div that all of these headers are in to position: relative. That could help.

  7. You need to clean up your code. First off, when you echo everything inside the echo is in double quotes and all of the quotes inside of the double quote are single quotes. Does that make sense? So like this.

    echo "<div class='content-cotainer1'>"
    

    Second you need to close your quote in your else statement. You have echo ' but you never close it. I think you want to close it here. 

    <div class="updateerrorcell">
    

    Then you open another PHP statement here.

    <?php if($success["success"]) print "<div class="valid">" . $success["success"] . "</div>"; ?> 
    

    get rid of the <?php in front of the if. There is not need for it.

     

    If you can't get it to work, let me know and I will help you.

  8. Ok, I can help explain this to you. So you have a query variable $sqlinsert, which is good. You if not statement is wrong though. It should something like this. 

     $sqlinsert = "INSERT INTO reviews (`SHOWTITLE`, `SHOWREVIEW`) VALUES('$showtitle', '$showreview')";
    
    $query = mysql_query($sqlinsert);
        
        if (!query) {
            echo "error inserting new record" . mysql_error(); 
        }
    

    I also added some backticks `` to your query for your column names. If there are any errors in your query now it will tell you.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.