- How do I embed content from a query into a web page?
There are 3 common methods: Curl, Includes, or IFRAME.
Here are examples of each:
<?php
# use Curl to embed the query content;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://appgenerator.com/appgenerator/q.php?qid=380448f888");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
# or use a PHP include statement (does not work on all servers);
# remove the pound symbol below to activate the include statement;
# include("http://appgenerator.com/appgenerator/q.php?qid=380448f");
?>
Another way to embed remote content into a webpage is to use IFRAMEs.
<IFRAME name="tips" id="tips" scrolling=yes frameborder=0 style="width:100%; height:300px;"
SRC="http://appgenerator.com/appgenerator/q.php?qid=412ff0cf5ff2f"></IFRAME>
- How can you add in spaces to format questions a certain way?
Using <pre> tags can often solve many formatting problems.
For instance, if you want to have exactly three spaces before a question, you might use something like this:
<pre> This will be slightly indented</pre>
- What is the best way to design a database application?
There are several ways to design a system; here is how we typically do it:
- Gather all available information about the project (forms, requirements, procedures, paperwork, files, etc...)
- Define the entities involved (people, places, things, events...)
- List the attributes or characteristics of each entity.
For instance, an "employee" would have a first name, last name, mailing address, city, state, zip, birthdate, etc...
- Once you have an overview of all of the components of the system, figure out how they relate to each other.
This is typically referred to as an Entity Relationship Diagram, or ERD.
- Once you have the ERD, you can start to write the FDL (Form Definition Language) code, and build the applications
that will collectively create the system.
- Test the design by entering some sample data into the system, and make changes as necessary.
|