Project / Support Center
Welcome, Guest. Please login or register. March 31, 2023, 03:40: 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 ... 4 5 6 7 8 [9] 10

 81 
 on: July 15, 2014, 07:46: PM 
Started by admin - Last post by admin
 <script>
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
window.location = "http://www.manager.net/registration_iphone.php?class_id="+<?php echo $_GET['class_id']; ?>;
}
</script>

where as in php you use a . to join things in javascripting you use a + sign

?class_id="+<?php echo $_GET['class_id']; ?>

 82 
 on: April 16, 2014, 04:02: PM 
Started by admin - Last post by admin
To link an address on a web page to apple maps use this format:

http://maps.apple.com/?q=200 Essex Street Whitman, MA 02382

The q variable is used the same as if you had typed the address in the apple maps app itself this variable can be a dynamic variable as well just echo the address information.

Following are links for Apple Maps, Google Maps on iPhone and Android Devices

Code:
<a href="maps://?q=200 Essex Street Whitman, MA 02382" data-rel="external">Apple Maps</a>

<a href="comgooglemaps://?q=200 Essex Street Whitman, MA 02382" data-rel="external">Google Maps</a>

<a href="geo://0,0?q=200 Essex Street Whitman, MA 02382" data-rel="external">Android Maps</a>

 83 
 on: February 13, 2014, 11:02: PM 
Started by admin - Last post by admin
show only records in a list after a specific time based on a timestamp field

use this in your where clause for after the date/time shown

WHERE event.transaction_date>'2014-02-10 19:05:59'

use this in your where clause for before the date/time shown

WHERE event.transaction_date<'2014-02-10 19:05:59'

Note :

if a record for example is 6 pm or 18:00:00 then you need to use 17:59:59 as the show after date as it would not  include records that are set at 18:00:00

 84 
 on: January 15, 2014, 04:42: PM 
Started by admin - Last post by admin
This works best

 <?php
  // make date normal day month dd, yyyy
  $mysqldate = $row_rsclass['reunion_date'];
  $mydate = date("l F j, Y",strtotime($mysqldate));
  echo $mydate;
?>


To echo a Mysql DATE field in a way that can be read use these formats:

Saturday, October 11, 2014

<?php echo date("l, F d, Y",strtotime($row_rsclass['date']));?>

January 15, 2014   

<?php echo date("F d, Y",strtotime($row_rsclass['date']));?>

Wednesday, January 15, 2014   

<?php echo date("l, F d, Y",strtotime($row_rsclass['date']));?>

Jan 15, 2014   

<?php echo date("M d, Y",strtotime($row_rsclass['date']));?>

15 January 2014   

<?php echo date("d F Y",strtotime($row_rsclass['date']));?>

15 Jan 2014   

<?php echo date("d M Y",strtotime($row_rsclass['date']));?>

Wed, 15 Jan 2014

<?php echo date("D, d M Y",strtotime($row_rsclass['date']));?>

Wednesday, the 15th of January, 2014   

<?php echo date("l",strtotime($row_rsclass['date'])) . ", the " . date("jS",strtotime($row_rsclass['date'])) . " of " . date("F, Y",strtotime($row_rsclass['date']));?>


For a listing of all date time php codes look here:

http://webglobalnet.net/support/index.php?topic=1060.0

 85 
 on: January 15, 2014, 02:23: PM 
Started by admin - Last post by admin
This seems to work for wrapping text in a table cell

.regdirection_div {
   width: 450px;
   word-wrap: break-word;
   border: thin solid #CCCCCC;
   white-space: normal;
   display: block;
   padding-right: 5px;
   padding-left: 5px;
   text-align: left;
}

The trick seems to be using

white-space: normal;
   display: block;

 86 
 on: January 02, 2014, 09:20: PM 
Started by admin - Last post by admin
This will echo the actual server php session value - useful for shopping cart or group multiple items in a transaction

<?php echo session_id()?>

 87 
 on: December 05, 2013, 06:35: PM 
Started by admin - Last post by admin
The great thing about software keyboards is that they’re dynamic. That is, you can change their layout to suit context. For instance, if your input field requires an email address, the keyboard should feature the ‘@’ symbol, underscores and hyphens. If the user is asked to input a phone number, provide a numeric keypad. Try using the following input types on form fields:

Standard keyboard | <input type="text" />
URL parameters | <input type="url" />
Email-specific keyboard | <input type="email" />
Numeric keyboard | <input type="text" pattern="[0-9]*" />


More here:
http://css-tricks.com/a-couple-of-best-practices-for-tablet-friendly-design/

 88 
 on: December 05, 2013, 06:33: PM 
Started by admin - Last post by admin
I put this at the beginning of the CSS page

/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}

/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
/* Styles */
}

/* Smartphones (portrait) ----------- */
@media only screen
and (max-width : 320px) {
/* Styles */
}

/* iPads (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px) {
/* Styles */
}

/* iPads (landscape) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : landscape) {
/* Styles */
}

/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
/* Styles */
}

/* Desktops and laptops ----------- */
@media only screen
and (min-width : 1224px) {
/* Styles */
}

/* Large screens ----------- */
@media only screen
and (min-width : 1824px) {
/* Styles */
}

/* iPhone 4 ----------- */
@media
only screen and (-webkit-min-device-pixel-ratio : 1.5),
only screen and (min-device-pixel-ratio : 1.5) {
/* Styles */
}

 89 
 on: November 11, 2013, 04:19: PM 
Started by admin - Last post by admin
SELECT class.display_upcoming_event_list FROM class WHERE class.display_upcoming_event_list=1 AND class.date > curdate() ORDER BY class.date ASC, class.venue ASC

if you want to compare date time field then use now() instead of curdate()

 90 
 on: November 09, 2013, 01:46: PM 
Started by admin - Last post by admin
This will show a value if it's numeric if not will display the text

<?php
 if (is_numeric ($row_rsclass_events['event_st'] ))
 {
 echo $row_rsclass_events['state_abbrev'] ;
 } else {
 echo $row_rsclass_events['event_st'];
 }
 ?>

Pages: 1 ... 4 5 6 7 8 [9] 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!