You can also use a meta refresh to do this. No scripting necessary, just put the tag in the head of the document:
<meta http-equiv="refresh" content="0;url=http://www.example1.net">
You can also use a meta refresh to do this. No scripting necessary, just put the tag in the head of the document:
<meta http-equiv="refresh" content="0;url=http://www.example1.net">
Externally. Why?
Let's say your site has 50 pages using the same basic styles. If your styles are internal, they'll have to be hard coded into each individual page. That means that if you visit 10 pages in the site, the styles will have to be downloaded all 10 times. If you'd have used an external stylesheet, the styles would get downloaded once, loaded into the cache, and reused for each page.
Also, if you decide to change up the style of something like your navigation bar or footer, you'll only have to change it once instead of 50 times.
What server language will you be using (php, asp, jsp, coldfusion...)?
With Linux, this will be very difficult. If your server was running Windows, you could use COM. Refer to this thread:http://www.daniweb.com/forums/thread141038.html
Michael Kofler wrote a VBA module that will do this. You'll need Excel, Word, or a MS program that can run VBA. Here is the script with commented instructions on how to use and what variables to change. I've never used this but it looks like a very good, simple alternative to those pricey migration programs.
Put the background attribute before the background image. This has to do with the order the browser applies the attribute styles in. I would also try to get away from using all caps for the attributes.
TD.MAINCELL{
font-weight: bold;
font-size: 105%;
background: white;
background-image: url("bricks.jpg");
color: blue;
font-family: "arial", sans-serif
}
In XHTML, the background and bgcolor attributes have been deprecated. This is because they can easily be implemented with css. If you want it to validate, use
<td style="background-image:url(bricks.jpg)">
However, the best way to do this would be to put these sort of styles in an external stylesheet. This way, it can be cached by the browser and not retrieved repeatedly for each concurrent page that uses the style. This will not only clean up your html, but will also cut down on page load time resulting in a better experience for the user.
Use the asterisk for the wildcard:
SELECT *
FROM report
WHERE product_no like 't*';
luap, I looked at your link but, didn't see any custom radio buttons or check boxes.
I had a friend that had this problem. Turned out that Skype and Apache were fighting for port 80. Here is where we found the solution. Hope this helps.
Here's a function I use sometimes. It explodes the address to get the domain name. It then checks for a Mail Exchange on the domain. This will work for bogus domain names but won't do anything for email addresses like bill@hotmail.com
or suzie@yahoo.com
. Try to keep in mind, there is no sure-fire way to authenticate an email address without an email and a corresponding response.
function EmailValidation($email)
{
$email = htmlspecialchars(stripslashes(strip_tags($email))); //parse unnecessary characters to prevent exploits
if ( eregi ( '[a-z||0-9]@[a-z||0-9].[a-z]', $email ) )
{ //checks to make sure the email address is in a valid format
$domain = explode( "@", $email ); //get the domain name
if ( @fsockopen ($domain[1],80,$errno,$errstr,3))
{
//if the connection can be established, the email address is probably valid
return true;
} else
{
return false; //if a connection cannot be established return false
}
return false; //if email address is an invalid format return false
}
}
I cannot seem to get the query string right so that I can list the results.
Generally, the query string is considered to be the url plus all the $_GET variables that you tack onto it. What is the problem?
Anyway, how long ago was this
November of last year so 9 months ago. The php_info() page said the following functions were disabled: fpassthru, file, mail, exec, system, passthru, popen, crack_check, crack_closedict, crack_getlastmessage, crack_opendict, fsockopen, psockopen, opendir, readdir, closedir
The site was taken down a couple of weeks ago or I'd give you a link to it.
Kind of, AJAX is basically a buzz word used to describe a connection between the server and the client using an xmlhttp request. Somewhat similar to how you have to establish a connection between the server and the database. Here is a basic tutorial that goes over a basic PHP,AJAX, and MySQL application.
Making the text box and button appear can be done with basic JavaScript. However, making calls to the server to delete records without a page refresh will require AJAX.
I had a client host with GoDaddy. He had that $3.99/month hosting plan.
As a web developer, it was a very miserable experience for me. I could hardly get any of my prewritten functions to work, even though they had been used many times on other servers. Finally I made a php info page to see the server settings. It was ridiculous, they had about half of php's functions disabled. The main one that got me was mail. I couldn't even send mail from the server because the function was disabled.
Yes, you have to point the browser to where the file is located on the server. If you're SpryAssets folder is in the same directory as the file then you can use:
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
You are referencing your PC's C drive for the javascript and css sources:
<script src="[B]file:///C[/B]|/Documents and Settings/Armand/My Documents/Kami's Webpage/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="[B]file:///C[/B]|/Documents and Settings/Armand/My Documents/Kami's Webpage/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<link href="[B]file:///C[/B]|/Documents and Settings/Armand/My Documents/Kami's Webpage/SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
This will work fine when previewing locally, but once on the web server it will not.
If you haven't already done so, upload SpryMenuBar.js, MenuBarHorizontal.css, SpryMenuBarVertical.css. Then change the source for the page to the appropriate directory.
Here's a function I found on php.net that will copy the directory. I have also added an unlink code to delete the original folder after copy. This may throw a permission denied error or it may work. Good luck!
<?php
$folder = 'excel_files';
$backup = 'excel_files_backup';
full_copy($folder, $backup);
function full_copy( $source, $target )
{
if ( is_dir( $source ) )
{
@mkdir( $target );
$d = dir( $source );
while ( FALSE !== ( $entry = $d->read() ) )
{
if ( $entry == '.' || $entry == '..' )
{
continue;
}
$Entry = $source . '/' . $entry;
if ( is_dir( $Entry ) )
{
full_copy( $Entry, $target . '/' . $entry );
continue;
}
copy( $Entry, $target . '/' . $entry );
}
unlink($source);
$d->close();
}
else
{
copy( $source, $target );
}
}
?>
Could you post the code or give a link to your site.
Do you have phpmyadmin? If so, create a table with the appropriate rows, save the excel file as a csv, and import to the table.
My two cents:
Since you are familiar with C and C++, you could pick up php very quickly. Here's a quote for you:
"A significant portion of PHP's syntax, conditions, boolean functionality and loops have been copied from C, and as such, PHP is an amazingly simple language to pick up, especially for those already familiar with C and it's derivatives. "
http://marty.anstey.ca/programming/php/
It will run on most any OS and is open source.
The php community is enormous and the daniweb php forum is the most active forum under the web development category. Php is one of the best documented languages on the web, with it's own user manual at www.php.net.
It integrates with JavaScript perfectly for DHTML and AJAX. It can connect with just about any database you can find.
Have you tried it out yet?
Also, don't pay to have your site submitted. That's just silly. Submit to Yahoo, MSN, and Google (all free). The rest will find you.
Yes, the best way is to just save the image path. You can save the image into the database as a blob but, most say it's a bad idea. Have a read here on the pros and cons and a tut on how to do it.
Funny, I did the exact same thing 3 days ago.
Man, I still don't understand what you are asking. If your db is showing up in the phpmyadmin panel and you need to get the source files for the db, check in mysql/data.
Going to have to see some code or a link to the site.
I believe that this is done with some type of server side script to check if you are the seller. If you are the seller, it adds the extra code detailing how many are watching and other seller only details.
Submit your site to all the major search engines.
Sign up for Google Webmaster Tools. This is will tell you the last time that google crawled your site as well as errors such as broken links. Also, submit an xml sitemap to the webmaster tools. There are several free sitemap generators and the webmaster tools will give you links to each. This will give google a roadmap to follow when crawling your page.
Lastly, swap links with other sites. If a site gets crawled and it contains a link to your site, it will bump your search engine rank.
These are just some suggestions. SEO is very complex, but these suggestions should get you in the search results.
After the body tag, throw in <a name="top"></a>
<body style="background-color:#4b2600;" onload="MM_preloadImages('images/home_over.gif','images/our-cakes_over.gif','images/Gourmet-Gifts_over.gif','images/Order_over.gif','images/Wholesale_over.gif','images/faq_over.jpg')">
<a name="top"></a>
Your host should have supplied you an admin panel. Inside should be phpadmin. It is a web application GUI that allows you to make changes to the db. If you don't have phpmyadmin in your console, mysqlcc is a decent alternative.
JavaScript is the likely candidate for what you are trying to do.
Langsor, please explain how to make a pop-up with JavaScript disabled. Don't say VBScript because we all know if it only works in IE, it doesn't work.
You'll have to create a help.html page and you may have to modify the dimensions but here's the general idea:
<tr><td><p>3-digit Security Code:</p></td><td colspan=5 height=30><p><input type=text name=securitycode size=3 maxlength=3>
<a href="" onclick="window.open('help.html','', 'width=400, height=250, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false">
(on back of card)</a></td></tr>
Weird. I thought declaring variables in JavaScript was more of a "good practice" than a requirement. I always do it but wouldn't think that it would break the script.
Wow, a big fan of run-on sentences myself. Are you asking about wamp on your local machine? Most versions of wamp come with phpmyadmin installed. Try putting this in the url:
http://localhost/phpmyadmin
Or, if you want to access the db via php use
mysql_connect('localhost', 'root','');
This is supported in php. I'm not to sure if the keyword super is. Here's a simple example of this:
class Human
{
public $thirsty = 'Very thirsty!';
function drink($water)
{
$this->thirsty = 'Not thirsty!';
}
}
That will work but I would add something like an underscore to separate the two values. The page that parses the url will have to "GET" the variable s. Since it's actually two variables, you should set some type of delimiter to separate them.
Something like:
<?php
$var = $_GET["searchvalue"];
$partner = $_GET["partnervalue"];
header("Location: http://www.lynxtrack.com/afclick.php?o=7560&b=ft9z13pz&p=9136&l=1&s=$var&p=$partner"); ?>
Tootol. I tested your script with both php and html extensions. When given a php extension, the file works perfect. When given an html extension, the file looks identical to the screen shot you provided. Make sure that you have the file saved in htdocs and are previewing through localhost.
The page isn't being parsed. Here are a few questions to varify:
1.) Are you sure Apache is running? (Check the Task Manager for Apache.exe)
2.) Are you testing the file under localhost? (Does the url say "http://localhost/filename.php" or does it say "C:/...")
3.) Is the php file saved in the htdocs folder?
There are many other possibilities but these are the common ones that are easily solved.
Get rid of the parentheses and put a semicolon at the end. <? include("renders/gallery.php") ?>
should be <? include "renders/gallery.php"; ?>
Make sure Apache is running. You should be able to tell from the Task Manager. Apache.exe should show in the processes list. Open a browser and type localhost into the url. You should get some type of WAMP or Apache welcome screen.
The root folder is named htdocs. For example, if you have a test file located in C:/wamp/htdocs/test.php, you'll be able to access the file by typing localhost/test.php into the url of the browser.
So you want the query to run if a selection is made?
if(isset($region)){
$result = mysql_query("SELECT * FROM places");
$row = mysql_fetch_assoc($result);
echo "zone: ".$row['zone']."";
}
http://validator.w3.org/
Also, you can install the free web developer add-on for Firefox and validate the current page by pressing Ctrl+Shift+A. I've found that this makes validating faster and more convenient.
Glad to hear
Datetime is in the YYYY-MM-DD HH:MM:SS
format so, Friday, August 28, 2015 at 8:00PM would be:
2015-08-28 20:00:00