renfley
-
Posts
89 -
Joined
-
Last visited
Posts posted by renfley
-
-
Ive played around with joomla and i dont think it is a good base to start with!!!
But that is just my opinion!
Maybe give Drupal i try?
-
Quick question, is i have pages like
www.example.com?page=home
www.example.com?page=about
www.example.com?page=News
Will Google Analytics be able to distinguish these queries?
I know i have looked at the analytics site and gone through their FAQ's and help center but still havnt found the right answer
Thx in advance
-
Pagination is right Thx a bunch !
-
Xcan yes that is correct i found a great example at noob.us, list of vids then new pages
and i will look into pagination Thx again
-
Hey guys, im looking for feedback as to what direction i should be heading in! Im not looking for someone to code this im just looking for input as to find out if there is a tried and tested way of achieving this video issue?
The basic idea is this
i wanna add a total of 15 Video to my content area but i only wanna display 5 at a time to create a section where there is 3 pages!
<CONTENT>
vid 1
vid2
vid3
vid 4
vid 5
Next button to the next 5 items!
<CONTENT>
The way i will code it is based on this
www.example.com?page=home
this will display the first five
When the next is clicked it will send to
www.example.com?page=2
So ON!!!!!!!!!!!
-
You mean :
<?php
$page = (isset($page))
if ($page)
{
include ("include/".$page.".php");
}
????
-
If you are wondering found a quick solution that will save on code space lol
<?php
$page = $_GET['page'];
if ($page)
{
include ("include/".$page.".php");
}
else
{
echo 'Welcome to home page';
}
?>
Only problem is the original
Notice: Undefined index: page in C:\wamp\www\Store Front\index.php on line 66
Welcome to home page
-
i think it would work if i could
<?php
include ('index.php?page=home');
?>
But i cant
-
ALPINE You got the ball lol
so ive changed this
<?php
$page = $_REQUEST['page'];
if ($page == "home")
{
include ('pages/home.php');
}
else if ($page == "products")
{
include ('pages/products.php');
}
else if ($page == "about")
{
include ('pages/about.php');
}
else if ($page == "order")
{
include ('pages/order.php');
}
else if ($page == "contact")
{
include ('pages/contact.php');
}
else if (($page == "home") || (!$page))
{
// your code for the home page
echo 'welcome home';
}
else
{
echo 'hello';
}
?>
The next issue is that because when the page loads its only index.php and not (index.php?page=home)
It give me
Notice: Undefined index: page in C:\wamp\www\Store Front\index.php on line 66
welcome home
Any suggestions
-
K hey guys hoping one of you can help me out lol,
Problem=
When someone clicks a link it directs them to index.php?page=home
<ul>
<li><a href="index.php?page=home">Home</a></li>
<li><a href="index.php?page=about">About us</a></li>
<li><a href="index.php?page=contact">Contact us</a></li>
</ul>
What im trying to achieve is since it the same page i wanna display different content based on the page= ?
i was wondering if someone could write something quick basicly
<?php
(verify to see if there is something after index.php ex: ?page=home)
if there isnt
echo 'welcome to my site';
and if there is somethign there
echo 'include/page/contact.php';
?>
Srry if this sound messed up lol
-
Genious pure genious lol i must have missed it on w3c thanks for that BTW!!!!
-
K i have a very noobish question ,
i have 5 item in my database id,callsign,email,location,joindate and i wnt to display them on my page,
now i m at a loss i havnt done this in years and any help would be apreciated.
so far ive got
<?PHP
mysql_connect("localhost","root","root");
mysql_select_db("RankingSystem");
$result = mysql_query("select * from rank_tbl");
?>
code highlighting on page?
in PHP Coding Help
Posted
Im trying to show code on my website that is properly displayed with highlighting
ExaMPLE: http://www.php.net/manual/en/function.mysql-affected-rows.php
That is exactly what i am looking for, i wana be able to post example code
Any help Would be Freaking Awsome Thx