Community Member
Member Avatar
I'm doing a one page site.
At the top of the page I have a fixed position header with logo, menu etc.

As it stands now, when I click on a menu link to take me to the relevant section it takes me there ok but as the header is … Topic by GlenRogers in Web Development
Member Avatar
I'm doing a one page site.
At the top of the page I have a fixed position header with logo, menu etc.

As it stands now, when I click on a menu link to take me to the relevant section it takes me there ok but as the header is … Topic by GlenRogers in Web Development
Member Avatar
Topic by GlenRogers in Web Development
Ive used your code and it is fading out. But as every div is of the same class it alo fading out the one that has just faded in! Reply by GlenRogers
Member Avatar
I've been using thisJQuery code to fade in divs (all of the same class .showme)
But what I would like to do is fade out the previous div as the next one fades in.
Can anyone offer assistance on this?


$(document).ready(function() {
/* Every time the window is scrolled ... … Topic by GlenRogers in Web Development
Member Avatar
I've been using thisJQuery code to fade in divs (all of the same class .showme)
But what I would like to do is fade out the previous div as the next one fades in.
Can anyone offer assistance on this?


$(document).ready(function() {
/* Every time the window is scrolled ... … Topic by GlenRogers in Web Development
Member Avatar
GlenRogers Marked Solved Status for fullPage.js only showing first section
I'm trying to use fullPage.js but its only ever showing my first section!
I have my sections set up like this


<div class="section">
Section 1
</div>
<div class="section">
Section 2
</div>
<div class="section">
Section 3
</div>

and I inatlize like this


<script>
$(document).ready(function() {
$('.wrapper').fullpage({
sectionsColor: ['blue', 'red', 'green'],
}); … Topic by GlenRogers in Web Development
Member Avatar
Topic by GlenRogers in Web Development
Got it! I was still including my templatew.css file. Once i took that out it works! Reply by GlenRogers
Member Avatar
Topic by GlenRogers in Web Development
Yes im includingf all files!
The page is online at [www.widowweb.co.uk](http://www.widowweb.co.uk)
Thanks Reply by GlenRogers
Member Avatar
I'm trying to use fullPage.js but its only ever showing my first section!
I have my sections set up like this


<div class="section">
Section 1
</div>
<div class="section">
Section 2
</div>
<div class="section">
Section 3
</div>

and I inatlize like this


<script>
$(document).ready(function() {
$('.wrapper').fullpage({
sectionsColor: ['blue', 'red', 'green'],
}); … Topic by GlenRogers in Web Development
Member Avatar
I'm trying to use fullPage.js but its only ever showing my first section!
I have my sections set up like this


<div class="section">
Section 1
</div>
<div class="section">
Section 2
</div>
<div class="section">
Section 3
</div>

and I inatlize like this


<script>
$(document).ready(function() {
$('.wrapper').fullpage({
sectionsColor: ['blue', 'red', 'green'],
}); … Topic by GlenRogers in Web Development
Member Avatar
Topic by GlenRogers in UI / UX Design
Thanks for the reply

I now have this


@media (min-width: 1100px) and (max-width: 1260px){
.rightside{display:none;}
.rightsidebelow1260{display:block;}
.maininfo{width:95%; margin: 0 auto;}
.vseperator1{display:none;}
.hseperator1{display:block;}
}

I want these styles applied if screen width is over 1100px and below 1260px. But, for some reason they are applie if screen width is over 1260px! Reply by GlenRogers
Member Avatar
Topic by GlenRogers in UI / UX Design
Now my media queries are overwriting my default styles!What am i doing wrong? Reply by GlenRogers
Member Avatar
Hi
I'm using whatsmy.browsersize.com to get my browser size for adding mediaquries to my css files.
For some reason when i write a media query for max-width: 1229px the query gets applied at 1350px!

I'm writing my queries like this


@media screen and (max-width: 1229px){
.galleries > ul > li … Topic by GlenRogers in UI / UX Design
Member Avatar
Hi
I'm using whatsmy.browsersize.com to get my browser size for adding mediaquries to my css files.
For some reason when i write a media query for max-width: 1229px the query gets applied at 1350px!

I'm writing my queries like this


@media screen and (max-width: 1229px){
.galleries > ul > li … Topic by GlenRogers in UI / UX Design
Member Avatar
Topic by GlenRogers in Web Development
Sorted (I think)

I had everything wrapped in a


if(isset( $_GET['submit'] ) ){
}

So it appears to me that when I went to any other page but the first page (the first time) that submit from my search form wasn't being posted again obviously, so there were no results … Reply by GlenRogers
Member Avatar
Topic by GlenRogers in Web Development
I'm still stuck with this if anyone can help?

Thanks Reply by GlenRogers
Member Avatar
Topic by GlenRogers in Web Development
if i use $query then all but the first page are blank, no results! Reply by GlenRogers
Member Avatar
I have a simple form to search a table for the search term entered into that form.



$query = $_GET['term'];
$min_length = 1;
if(strlen($query) >= $min_length){
$query = htmlspecialchars($query);
$query = mysqli_real_escape_string($link, $query);
}


Here the variable 'query' is the search query posted using the get method from the form. … Topic by GlenRogers in Web Development
Member Avatar
I have a simple form to search a table for the search term entered into that form.



$query = $_GET['term'];
$min_length = 1;
if(strlen($query) >= $min_length){
$query = htmlspecialchars($query);
$query = mysqli_real_escape_string($link, $query);
}


Here the variable 'query' is the search query posted using the get method from the form. … Topic by GlenRogers in Web Development
Member Avatar
GlenRogers Marked Solved Status for unknown column error
Whats wrong with this query? For example $brand holds the value 'apple'
Then I get the error 'unknown column 'apple'

Can anyone see the problem?

if(isset($_GET['brand']) ? $_GET['brand'] : 0){
$brand = (isset($_GET['brand']) ? $_GET['brand'] : 0);
$sql = mysqli_query($link, "SELECT COUNT(id) FROM products WHERE brand = $brand AND
status … Topic by GlenRogers in Web Development
Member Avatar
GlenRogers Replied To a Post in unknown column error
Topic by GlenRogers in Web Development
Still the same!
I added this error reporting to the file

error_reporting(E_ALL); ini_set('display_errors', 1); mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);

The error that gives is:
'Fatal error: Uncaught exception 'mysqli_sql_exception' with message 'Unknown column 'apple' in 'where clause''' Reply by GlenRogers
Member Avatar
Whats wrong with this query? For example $brand holds the value 'apple'
Then I get the error 'unknown column 'apple'

Can anyone see the problem?

if(isset($_GET['brand']) ? $_GET['brand'] : 0){
$brand = (isset($_GET['brand']) ? $_GET['brand'] : 0);
$sql = mysqli_query($link, "SELECT COUNT(id) FROM products WHERE brand = $brand AND
status … Topic by GlenRogers in Web Development
Member Avatar
GlenRogers Began Watching unknown column error
Whats wrong with this query? For example $brand holds the value 'apple'
Then I get the error 'unknown column 'apple'

Can anyone see the problem?

if(isset($_GET['brand']) ? $_GET['brand'] : 0){
$brand = (isset($_GET['brand']) ? $_GET['brand'] : 0);
$sql = mysqli_query($link, "SELECT COUNT(id) FROM products WHERE brand = $brand AND
status … Topic by GlenRogers in Web Development
Member Avatar
Topic by GlenRogers in Web Development
Thanks. I had thought of doing that, but even that would confuse me!!

Would there be any way of choosing the option from my existing table? As all the products will be in there anyway and the options are also stand alone products... Reply by GlenRogers
Member Avatar
Ok,I havent a clue how to do this. I have a mysql table for products, each has id as the primary key.
I have an admin page where I upload products to this table or delet/hide them too.
But I want a way where when I'm uploading the products to … Topic by GlenRogers in Web Development
Member Avatar
Ok,I havent a clue how to do this. I have a mysql table for products, each has id as the primary key.
I have an admin page where I upload products to this table or delet/hide them too.
But I want a way where when I'm uploading the products to … Topic by GlenRogers in Web Development
Member Avatar
I have a form for adding products and their detail to a mysql db. I have another form that shows the products where I can remove the product from the db, I can also hide or show the product in the website.

I need to be able to edite the … Topic by GlenRogers in Web Development
php
Member Avatar
I have a form for adding products and their detail to a mysql db. I have another form that shows the products where I can remove the product from the db, I can also hide or show the product in the website.

I need to be able to edite the … Topic by GlenRogers in Web Development
php
Member Avatar
Hi,

I'm using a shopping cart js plugin called simplecart. Im having trouble getting a tumb of the product image to appear with the product info in the cart.

This line gets the full sized image to appear in the cart


<img src='$file' class='item_thumb' alt='{$row['name']}' />

Does anyone know how … Topic by GlenRogers in Web Development
Member Avatar
GlenRogers Began Watching simplecart js plugin
Hi,

I'm using a shopping cart js plugin called simplecart. Im having trouble getting a tumb of the product image to appear with the product info in the cart.

This line gets the full sized image to appear in the cart


<img src='$file' class='item_thumb' alt='{$row['name']}' />

Does anyone know how … Topic by GlenRogers in Web Development