Web Development

74K

Solutions

49K

Contributors

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello all.

I am trying to pass on parameters contained in my initial search form, onto the pagination script in my results page.  I'm not sure how to do this properly.

My set up currently is flawed in that I lose my initial search criteria when I click on the [Next], [Last] etc buttons in my pagination script.  I guess this is because I need to pass the parameter values from my initial search into the pagination? Currently my simple pager code looks like this:

<ul class="pagination justify-content-end">
					  
					 <?php
					 if($pageno <= 1){?>
						<li class="page-item disabled"><a class="page-link" href="#">&#x276e; &#x276e; First </a></li>
					<?php } ?>

					<?php
					if($pageno > 1){?>
						<li class="page-item"><a class="page-link" href="?pageno=1"> &#x276e; &#x276e; First </a></li>
					<?php } ?> 
					  
					  
					  <li class="page-item"><a class="page-link" href="<?php if($pageno <= 1){ echo '#'; } else { echo "?pageno=".($pageno - 1); } ?>"> &#x276e; Previous</a></li>
					  
					  <li class="page-item"><a class="page-link" href="<?php if($pageno >= $total_pages){ echo '#'; } else { echo "?pageno=".($pageno + 1); } ?>"> Next &#x276f;</a></li>
					  
					 
					 <?php
					 if($pageno >= $total_pages){?>
						<li class="page-item disabled"><a class="page-link" href="#">Last &#x276f; &#x276f;</a></li>
					<?php } ?>

					<?php
					if($pageno < $total_pages){?>
						<li class="page-item"><a class="page-link" href="?pageno=<?php 

Open in new window

0
Free Tool: Site Down Detector
LVL 12
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

I have used fpdf (a pdf generator) for years, I use it in many programs, it works beautifully.

A new program I finished yesterday uses it, but it produces a blank page.

So as a test, I wrote the simplest program using fpdf as a test:

<?php
date_default_timezone_set("America/Chicago");
// fpdf test
require_once('fpdf.php');
$pdf=new FPDF('L', 'pt', 'Letter');
$pdf->SetAutoPageBreak(false);
$pdf->SetDisplayMode('real');
$pdf->SetTopMargin(2);
$pdf->SetleftMargin(10);
$pdf->SetTitle('Testers by Agency, Date');
$pdf->AddPage();
$yd = 10;
$pdf->SetXY(50,$yd);
$pdf->Cell(500,30,"Backflow Test Report Testers Selection Summary",0,0,"C");
$fname= "testersrpt/test" . date('Y-m-d') . ".pdf";
$pdf->Output($fname, "F");
?>

Open in new window


The file named test2018-06-20.pdf is in that folder on the server, I download & open with Acrobat, a blank page.

For those of you who do NOT know fpdf, it should produce a centered heading on the page with text "Backflow Test Report Testers Selection Summary"
0
No matter what SEO online tool I check all of them allways says that i have some broken url's i check the structure of them and i dont know what is wrong with thouse url.

I hope you can help me and told me what Im doing wrong I check one bye one and i try different ways to write them and I did not find errors on them.
---------------------------------------------------------------------------------------------------------
url: http://www.grupossc.com/elblog
type: SEO friendly url
code: <a href="/elblog" title="Blog de Grupo SSC">Blog</a>
---------------------------------------------------------------------------------------------------------
url: http://www.grupossc.com/lapagina/mescal-app-de-comunicacion-y-difusion-tecnologica-de-diseno-y-simulacion
type: SEO friendly url
code: <a href="/lapagina/mescal-app-de-comunicacion-y-difusion-tecnologica-de-diseno-y-simulacion" title="Mescal comunidad virtual">
---------------------------------------------------------------------------------------------------------
http://www.grupossc.com/areas/nuestros-webinars
type: SEO friendly url
code: <a href="/areas/nuestros-webinars" title="Webinars">Webinars</a>
---------------------------------------------------------------------------------------------------------
http://www.grupossc.com/areas/nuestros-talleres
type: SEO friendly url
code: <a href="/areas/nuestros-talleres" title="Talleres">Talleres</a>
0
Need some help figuring out why we keep receiving the error attached when attempting to publish a C# site to IIS.
Capture.PNG
0
Hi,

I need to make a couple iSeries green screens available on the Web (asap). They need to be mobile friendly as well.  I have experience with SQL, but no web development. Can anyone recommend best book/articles as a starting point. Any direction or tips would be greatly appreciated!

As we will be moving forward with other screens, I need to acquire the skills instead of outsourcing.

Thank You,
Lynn
0
Hi, I have some code I found to create a speech bubble.  However the code has a shadow on the outside of the bubble.  How do I get this to be an inset shadow on the inside edge of the bubble?  


.bubble {
  background-color: #ffffff;
  background-image: -webkit-linear-gradient(
    top,
    hsla(0, 0%, 100%, 0.5),[embed=file 1335990]
    hsla(0, 0%, 100%, 0)
  );
  background-image: -moz-linear-gradient(
    top,
    hsla(0, 0%, 100%, 0.5),
    hsla(0, 0%, 100%, 0)
  );
  background-image: -ms-linear-gradient(
    top,
    hsla(0, 0%, 100%, 0.5),
    hsla(0, 0%, 100%, 0)
  );
  background-image: -o-linear-gradient(
    top,
    hsla(0, 0%, 100%, 0.5),
    hsla(0, 0%, 100%, 0)
  );
  background-image: linear-gradient(
    top,
    hsla(0, 0%, 100%, 0.5),
    hsla(0, 0%, 100%, 0)
  );
  border-radius: 5px;
  box-shadow: inset 0 1px 1px hsla(0, 0%, 100%, 0.5),
    3px 3px 0 hsla(0, 0%, 0%, 0.1);
  color: #333;
  display: inline-block;
  font: 16px/25px sans-serif;
  padding: 15px 25px;
  position: relative;
  text-shadow: 0 1px 1px hsla(0, 0%, 100%, 0.5);
}

.bubble:after,
.bubble:before {
  border-bottom: 25px solid transparent;
  border-right: 25px solid #ffffff;
  bottom: -25px;
  content: "";
  position: absolute;
  right: 25px;
}

.bubble:before {
  border-right: 25px solid hsla(0, 0%, 0%, 0.1);
  bottom: -28px;
  right: 22px;
}

Open in new window

bubble.jpeg
0
Hi,

Need examples of best basic JSON-LD schema information for website homepage.  What looks good?  Just dipping my toe into the JSON water.  Getting penalized by Google a bit now.  Want just to cover the basics.  Will customize once I know more.  Just enough to pass the bar, as it were.

Need a few homepage examples - site I could see, please.  Sites with a few pages / sections to them.

For what its worth, in looking around and getting more confused, here's what I've seen.  These are obviously huge sites.  Looked at them for proper structure.  Hoping to find a short set of must haves from you friends and on a site that codes them well to get me out of the gate.

// WashingtonPost Schema ------------------------------------
{
  "@context":"http://schema.org",

  "mainEntityOfPage":{
    "@type":"WebPage",
    "@id":"https://www.washingtonpost.com"
  },
  "headline":"Washington Post: Breaking News, World, US, DC News &amp; Analysis",
  
    "description":"Breaking news and analysis on politics, business, world national news, entertainment more. In-depth DC, Virginia, Maryland news coverage including traffic, weather, crime, education, restaurant reviews and more.",

"image":["https://www.washingtonpost.com/pbox.php?url=https://www.washingtonpost.com/pb/resources/img/twp-social-share.png&amp;w=1484&amp;op=resize&amp;opt=1&amp;filter=antialias&amp;t=20170517"],

  "isAccessibleForFree":"True",
  "hasPart":{
    "@type":"WebPageElement",
    

Open in new window

0
I'm looking for suggestions on reputable websites where I can find a tutor/mentor to work 1 on 1 and has expert-level knowledge web development technologies like Angular 6. Asp.net Core 2, MVC 6 (Roslyn compiler), Web API 2.0, Swagger, etc. Essentially a full stack developer with a strong background in Angular 2+ and .Net Core 2. Someone I can meet with over a web conference for a few hours per week.

My goal is to find a tutor/mentor that can get me up to speed faster than PDF book or sets of video tutorials since my free time is limited. I looked around on this site, but didn't see any section which offered 1 on 1 tutoring/mentoring, and the google results were somewhat questionable.
0
this is make me crazy

check this link: http://www.gruposc.com/industrias/Aeroespacial-Defensa

I dont know why when you enter to any of my SEO links with "industrias/" you will redirected to "www.sancayetano.es" for example: http://www.sancayetano.es/industrias/Aeroespacial-Defensa

As far I do remeber I never add any redirection to that server,

In my htaccess this is the line that redirect my SEO links with "industrias/" to an internal page in my site: RewriteRule ^industrias/([a-zA-Z0-9-/?=&]*)$ /oculto/industria.php?rID=$1 [L]

Please help

Best regards.
0
I have search button where user inputs data (year,week,page) and gets data in grid format. When user wants to search for another data,i have to refresh the page to get correct data.

I want to get a correct data without refreshing the page manually. I think this has something to do with ngOnDestroy but I am not understanding how to impliment this.

I have gone through many questions and post but did not understand it properly.

Below is my code.

search-component.ts

 
 flyersearch(event, week: any, seite: any): void {
    let temp = week.split('-W');
    let jahr = temp[0];
    let woche = temp[1];
    let flyerBild: string;
    this.flyerhammService.getFlyer(jahr, woche, seite)
      .then(
        flyers => {
          this.flyers = flyers;
          this.x = this.flyers[0].ArtNr;
        }
      ).catch(
        error => console.log(error)
      );
  }

Open in new window


search-component.html

<md-card class="default-card">
  <h1>{{ 'Suche Flyer' }}</h1>
</md-card>
<md-card class="default-card">
  <form id="flyer-search">
    <table class="calender" cellspacing="0">
      <tr>
        <td>
          <md-input-container>
            <input mdInput placeholder="{{ 'Weak and Year' }}" type="week" #week name="week" value="2017-W17">
          </md-input-container>
        </td>
        <td>
          <md-input-container>
            <input mdInput placeholder="{{ 'Seite' }}" type="number" #seite name="seite" value="01" min="01">
          </md-input-container>
 

Open in new window

0
Cloud Class® Course: Microsoft Exchange Server
LVL 12
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

How do you find an ip address in one of many config files in a github enterprise repository? I've tried with quotes, without and I get all kinds of whacky variants but not the file with the IP address I want.
0
Hi, I've edited this question as it was previously too long winded.  Breaking my issue down, using Ajax, I have declared values for offset and limit

$.ajax({
			 type: "GET",
				url: "mini_profiles.php",
				data: {
					'offset':0,
					'limit':9
					  },
				success:function(data){
					$('body').append(data);
					flag += 9;
				}

Open in new window


Later on in my code I try to assign those values to variables:

$limit = 'limit';
$offset = 'offset';

Open in new window


And then try to apply the following SQL select function:
$data_sql = "SELECT * FROM teachers_table LIMIT {$limit} OFFSET {$offset}";

However, I'm getting this error message:

Query: SELECT * FROM teachers_table LIMIT limit OFFSET offset
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit OFFSET offset' at line 1


Is there an issue with how I've defined $limit and $offset or perhaps my sql query?

Many thanks.
0
What is the default web browser in windows other than Internet Explorer?
0
The person who runs our servers and builds our cart won't allow wordpress to be installed. We have a blog but it's over on Bluehost, blog.mysite.com.

Ideally I'd like it to be mysite.com/blog, any way to do that without having the installation on the same servers as the main site? I'll upload the actual site names. see more-info.txt, attached.

Servers are at rackspace, running apache.
more-info.txt
0
Hi,

Looking for best advice on how to redirect my page after the user had logged into the site.

I have a PHP form which is using the POST method to submit the details to the login page (called login.php) and connects to the mySQL database to authenticate. If the user successfully has entered the right information I have a link that will move them into a members page - i do this process via an IF....Else statement.

Instead of getting the user to actively click on then link to move them on, how would it best be done to automatically redirect the user to the next page (i.e., dashboard.php)? I was looking at the PHP header() function and a JavaScript window.location.replace option - wanted to get some opinions on here too on the simplest, universal way to do this?

Open to any options/suggestions; doesnt have to be PHP or JavaScript.

Thanks in advance.
0
Hi. I have been trying to create php code which displays rows in my sql table which are similar to the current row, based on 2 parameters. I have tried using the following code:

<?php
					
		//query to find related teachers - using language and prefecture to determine similar teachers 
		$relatedprefecture = $teacher['prefecture'];
		$relatedlanguage = $teacher['language'];
		$currentteacherID = $teacher['autonumber'];
		$relatedteachers_sql = "SELECT DISTINCT autonumber, photoid, firstname, language,  prefecture FROM teachers_table WHERE prefecture = '$relatedprefecture' AND language = '$relatedlanguage' AND NOT autonumber = '$currentteacherID' ORDER BY RAND() LIMIT 4";

		$relatedteachers = mysqli_query($db_connection,$relatedteachers_sql);

	
		if (mysqli_num_rows($relatedteachers) > 0) 
		{?>	
	<div class="row">
				
							<?php while($teacher = mysqli_fetch_array($relatedteachers)) //Goes through the results and carries out the following action while (for every) row in the result set
									{ ?>
							  
								<div class="col-md-3 buffer">
									<div class="card" >
											<div class="card-header">
												<img src="public/img/flags/<?php echo h ($teacher['nationality']) ?>flag.gif" alt="teacher nationality" />
												<a href = "<?php echo 'Profile.php?autonumber=' . $teacher['autonumber'];?>"><strong>&nbsp;&nbsp;&nbsp;<?php echo h($teacher['firstname']); ?>
											 </div>
											 
											 
											 <div class="card-body">
		

Open in new window

0
How "mass market" are QR codes?

Is it just young folks that know about them?

What devices and device versions support them??

Thanks
0
I've seen an Amazon button you can put on a non-profit  site.  The idea is that visitors to the non-profit site can click this button to go to Amazon and do their shopping and then Amazon will pass back  a percentage of what the visitor spends to the non-profit site.  Does anyone know what this button is called and where I can find the code for it, etc.?

Thanks
0
Incrementing a file's clock time by three hours

I have a Mac

I need to sync the audio and the video, but my MP3 player was slo by 3 hours.

I want to use the clock-time to help me marry the files.

How do I do this?

Thaks
0
Free Tool: Subnet Calculator
LVL 12
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Dear experts,
I create web sites with html5 and I use php 7.
I learned PHP. I'm good at it.

however I'd like to learn asp.net to create web sites.
Becuase my company, like most of the companies use Windows platforms.
this time the web site that I'm going to create will be hosted on our machines on windows hosting envirement

I installed Visual studio and I don't know where to start.

what do you suggest I should do?
which tutorials do you suggest?
0
Facebook Ad Question: Can I mention a politician by name?

I have not yet found the lost list of rules when placing a  Facebook Ad. Got that list?

Anyway, I hope I can have some fun on one ad where I compare a particular politician to a "moon bat."

Is that allowed? Or is it a violation?

And if it's not a violation, might it still get blocked if it upsets the person who grades the ads?

Thanks
0
Where All Can I Make Use Of Learning Management System ?
0
can anyone explain how to create REST API using PHP
0
I am writing a stand-alone Windows Web application using Embarcadero C++ builder XE.10.
I have the web server functioning and delivering html code to a remote browser.
I wish to add a WebSocket to the server and would like to receive help or guidance.
I have tried an example html code shown below from Websocket.org
I wish therefore to  substitute
 var wsUri = "wss://echo.websocket.org/"; 

Open in new window

with code assigning my server and need to implement a TCP server listening on port 443 and provide the encription/decription  which I understand is needed.
I don't see any components specifically available for WebSockets that could be added to the Web module  (TWebModule component).
Any assistance would be gratefully received.

Thanks in advance,  Roger

 <!DOCTYPE html>
  <meta charset="utf-8" />
  <title>WebSocket Test</title>
  <script language="javascript" type="text/javascript">

  var wsUri = "wss://echo.websocket.org/";
  var output;

  function init()
  {
    output = document.getElementById("output");
    testWebSocket();
  }

  function testWebSocket()
  {
    websocket = new WebSocket(wsUri);
    websocket.onopen = function(evt) { onOpen(evt) };
    websocket.onclose = function(evt) { onClose(evt) };
    websocket.onmessage = function(evt) { onMessage(evt) };
    websocket.onerror = function(evt) { onError(evt) };
  }

  function onOpen(evt)
  {
    writeToScreen("CONNECTED");
    doSend("WebSocket rocks");
  }

  function onClose(evt)
  {
    

Open in new window

0
Hi,
i am going to start new project.

for that, i want to use some rich web template.

can you pls. suggest me to some sample of the template website which is been using Bootstrap, AngularJS and other Good UI template...?

I am new for Bootstrap..
0

Web Development

74K

Solutions

49K

Contributors

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.