Project / Support Center
Welcome, Guest. Please login or register. March 22, 2019, 05:43: AM
Home Help Search Login Register
D-Web Web Site Creator D - Web Web Site Creator On-line HTML Editor No Programming knowledge required. Web Global Net PayPal-Cart Shopping Cart System PayPal - Kart Shopping Cart System for E-Commerce over the internet, that's easy to use. Web Global Net Newsletter Manager Newsletter Manager On-line Newsletter Creator with Email Subscriber Management.
Ring Central Discount
Web Global Net Web Application & Web Development Project Center  |  Recent Posts
Pages: [1] 2 3 4 5 6 ... 10

 1 
 on: February 21, 2019, 05:14: PM 
Started by admin - Last post by admin
I wanted to hide a uploaded graphic header on a smartphone because it took up too much space, yet I wanted the uploaded graphic header to show on larger screens. Although I saw a lot complicated ways to do it , this method below was by far the simplest.

On the page I added this style into the head area.

 <style>
    @media all and (max-width: 479px) {
    .header_upload {display:none;}
}</style>


Then what ever I wanted to hide I wrapped it in a Div tag with the class of the element name (in red) :

<div class="header_upload">
         <?php
// Show IF Conditional region2
if (@$row_rsgroup_prefences_session['group_pref_website_header'] != "") {
?>
              <?php include("Main_File_1/inc_pages/header_logo.php"); ?><?php }
// endif Conditional region2
?>
         <?php
// Show IF Conditional region3
if (@$row_rsgroup_preferences_url['group_pref_website_header'] != "") {
?>
              <?php include("Main_File_1/inc_pages/header_logo.php"); ?>
              <?php }
// endif Conditional region3
?>
      </div>  

You can add as many <Div class"Element_Name"> </Div> wrappers on a page as you need too it seems.

just add this to the Media style for each element you want to hide.
 .Element_Name {display:none;}

 2 
 on: July 05, 2018, 04:14: PM 
Started by admin - Last post by admin
put this at the top of the page before anything else

<?php
ob_start();
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED));
?>

 3 
 on: June 15, 2018, 01:44: AM 
Started by admin - Last post by admin
<style type="text/css">
table {
  table-layout: fixed;
  width: 100%
}

 td {

    /* css-3 */
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
}
</style>

or try this

<table style="table-layout: fixed; width: 100%">
<td style=" white-space: -o-pre-wrap;
    word-wrap: break-word;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap; ">

<?php echo $row_rsnotes['note']; ?>

</td>
</table>

White space is the trick here

 4 
 on: January 02, 2018, 10:14: PM 
Started by admin - Last post by admin
We needed to show on a dynamic basis so web site story would update automatically how many easy a go some was established.

We put this - like this on the page

<?php $current= date('Y');
$yearsago=$current-1672 ;?>
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>

In order to echo the results on the page we put this at the correct location in the text

Was established <?php echo $yearsago ?> years ago

 5 
 on: December 19, 2017, 08:03: PM 
Started by admin - Last post by admin
I had an issue where I did not want something to show if it was = to either 1 or the other, in this case Family or Military. If it was equal to either Military or Family I didn't want it to show.

So we had to trick it.

We're saying if its equal to military show (Red text strip out to show nothing) this else
 if its not equal to Family show this. And since its = to family nothing shows either again.

Here's what we came up with:

 <?php  if (@$row_rsadmin_user['use_reason'] == "Military") {
} elseif (@$row_rsadmin_user['use_reason'] != "Family") {
   
THIS AREA SHOWs NOTHING (DELETE THIS IF YOU USE IT)

   } else {
                            echo '<a href=year.php?reunion_year='.$year.'><img name="list_regs" src="a_registration_report_icon_sm.png" width="28" height="36" border="0" vspace="5" id="list_regs" alt="" />[/url]
                        

                      Registrations';
}     
?>

 6 
 on: December 19, 2017, 06:26: PM 
Started by admin - Last post by admin
If you need to whitelist or block a range of IP addresses using CSF, it can be done, but you need to use the CIDR format.

For example, to block 192.168.0.0 to 192.168.0.255 you would add 192.168.0.0/24 to the blocked list.

This tool is helpful too:

http://ip2cidr.com

 7 
 on: December 05, 2017, 09:03: PM 
Started by admin - Last post by admin
This show only records between a certain  range for a certain group or client

mysql_select_db($database_reuniomysql, $reuniomysql);
$query_rsphotobuclass = sprintf("SELECT DISTINCT class_ticket_purchases.purchase_ticket_id, class_ticket_purchases.purchase_ticket_title, class_ticket_purchases.purchase_ticket_class_id, class_ticket_purchases.purchase_reunion_year, class_ticket_purchases.purchase_ticket_price FROM class_ticket_purchases WHERE class_ticket_purchases.purchase_ticket_id between '2'  and '4' AND class_ticket_purchases.purchase_ticket_class_id=%s GROUP BY purchase_ticket_id", GetSQLValueString($KTColParam1_rsphotobuclass, "int"));

The bold show only records between a range of 2-4 (2,3,4) for only 1 class (class_id) - must be grouped (ticket_id) to work. range is distinct meaning it will only show items that are unique not the same items over and over again.

 8 
 on: August 08, 2017, 06:01: PM 
Started by admin - Last post by admin
Simple show if based on a session  variable

<?php

if (@$_SESSION['kt_use'] == "Family") {

          Show This

 }

?>

Show if then else based on session

  <?php
if (@$_SESSION['kt_use'] == "Family") {

          Show this

} else {

          Else show this

 }

?>

 9 
 on: August 07, 2017, 10:33: PM 
Started by admin - Last post by admin
This is a Show if based on 3 conditions of a variable.

One of the difficulties we had was echoing dynamic data into the link in this case the year

<a href=classregs_year_military.php?reunion_year='.$year.'>

So what we did was create a variable $year

<?php $year=$row_rsreunionreg['reunion_year']; ?>

Then we had no issues using it in the If statements


The first condition evaluates the @$row_rsreunionreg['use_reason']
to see if its either for Military or Family use, if neither of these conditions are true then it displays the Record Icon and its link.

The 2 and 3rd condition show what to display based on weather or not its a Military or Family use and displays the appropriate Menu icon and link

For some reason if there is any space between each condition then the icon will not display

<?php
 if (@$row_rsreunionreg['use_reason'] != "Military" AND @$row_rsreunionreg['use_reason'] != "Family"){
echo '<a href=classregs_year.php?reunion_year='.$year.'><img name="list_regs" src="a_registration_report_icon_sm.png" width="28" height="36" border="0" vspace="5" id="list_regs" alt="" />[/url]
                        

                      Registrations';
   }
   if (@$row_rsreunionreg['use_reason'] == "Military") {
      echo '<a href=classregs_year_military.php?reunion_year='.$year.'><img name="list_regs" src="a_registration_report_icon_sm.png" width="28" height="36" border="0" vspace="5" id="list_regs" alt="" />[/url]
                        

                      Registrations';
   }
if (@$row_rsreunionreg['use_reason'] == "Family") {
echo '<a href=classregs_year_family.php?reunion_year='.$year.'><img name="list_regs" src="a_registration_report_icon_sm.png" width="28" height="36" border="0" vspace="5" id="list_regs" alt="" />[/url]
                        

                      Registrations';
   }     
?>

 10 
 on: August 02, 2017, 10:55: PM 
Started by admin - Last post by admin
please this code at the beginning of your code:

<?php
error_reporting(0);
echo "Sorry there was an ERROR please check
 your entries for the error message";
?>

You can change the echo message to what ever you what.

Sometimes you need the error message to appear while debugging a page in that case use this code:

<?php
error_reporting(E_ALL);
echo "Here is some text";
?>

you can also use this to not display any error - might be helpful for Division by zero errors

<?php
error_reporting(0);
echo "";
?>

Pages: [1] 2 3 4 5 6 ... 10
Web Global Net Web Application & Web Development Project Center  |  Recent Posts


Login with username, password and session length
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!