buddylee17 216 Practically a Master Poster

Yes, Oracle is a beast and a memory hog. My favorite comparison was made by Charles Phillips, President of Oracle:
"We're both in the transportation business," Mr Phillips said. "We have a 747, and they have a Toyota."
Marten Mickos, CEO of MySql responded:
"There are many more Toyotas sold than 747s. "Toyota is a very profitable company"

buddylee17 216 Practically a Master Poster

Most good encryption methods don't have simple decryption. However, if something simple will work, you can use base64_encode and base64_decode.

buddylee17 216 Practically a Master Poster

Yes, for instance if you use GET method. Any server side script that can use the GET method to retrieve variables from the url can also process them. Same with post. Any script that can retrieve variables from the POST array can process them. And regardless of the script, it all gets outputted back to client as html.

buddylee17 216 Practically a Master Poster

Would have to see the form validation code to say.

buddylee17 216 Practically a Master Poster

You can try to connect through Internet Explorer. Go to ftp://yourdomainname.com (or .net or .org...) A login screen will appear.

buddylee17 216 Practically a Master Poster

You can use a reset button.

<input type="reset" />

Alternatively you could use JavaScript:

document.forms[0].reset()
buddylee17 216 Practically a Master Poster

You could use a regular expression to evaluate the output to get rid of :, ;, {, }

<?php
$string='a:4:{i:0;a:2:{s:10:"First name";s:7:"Mattias";s:2:"IQ";i:250;}i:1;a:2:{s:10:"First name";s:4:"Tony";s:2:"IQ";i:100;}i:2;a:2:{s:10:"First name";s:5:"Peter";s:2:"IQ";i:100;}i:3;a:2:{s:10:"First name";s:6:"Edvard";s:2:"IQ";i:100;}} ';
preg_match_all ("/[^0-9^a-z^_^A-Z^.:]/", $string, $matches);
	// Loop through the matches with foreach
	foreach ($matches[0] as $value) {
           $string = str_replace($value, "", $string);
	}
echo $string;
?>

This will return

a:4:i:0a:2:s:10:Firstnames:7:Mattiass:2:IQi:250i:1a:2:s:10:Firstnames:4:Tonys:2:IQi:100i:2a:
2:s:10:Firstnames:5:Peters:2:IQi:100i:3a:2:s:10:Firstnames:6:Edvards:2:IQi:100
buddylee17 216 Practically a Master Poster

Software companies don't want to hire a new guy. It's a fact. It's why they offer internships. They want a person who has proven his/her self to be knowledgeable and reliable in that field. As the new guy, you have to start at the bottom. This means very little pay (possibly a small stipend or salary) in exchange for credibility. Once credibility is attained, you can put it on the resume and the sky is the limit.

buddylee17 216 Practically a Master Poster

Excel is basically tab delimited. Basically, in between columns add a "\t" to insert a tab to let excel know that the first column is finished and the second column should start. To start a new row, add a "\n" to force excel to put the next data in a separate row.

buddylee17 216 Practically a Master Poster

The script above performs a query but doesn't output anything. You will need an output from the script to populate the suggestions. What does the demo script look like?

buddylee17 216 Practically a Master Poster

Most problems with inserts have to do with the use of quotes in queries and datatypes. Do any of the fields in the query have a numeric datatype? If so, they will not require a single quote around them in the query.

buddylee17 216 Practically a Master Poster

Most

database-administartors

don't use MySql unless it is coordinated with open source (php or java) scripts/languages. In these cases ODBC is not necessary. If MySql won't work with a .net or coldfusion server, who cares. You have enough cash to shell out for a "closed source" server. You might as well flush a bit more down the toilet for a comparable db.

buddylee17 216 Practically a Master Poster

You shouldn't compare the two. It's like comparing a school bus (Oracle) to a Corvette (MySql). Oracle can deliver tons of data in a reasonable amount of time consistently. MySql can deliver smaller amounts of data in a much faster time consistently. How big is the db and how frequent will it receive requests? Are you planning on having millions of users querying the db every 3 seconds? If so, Oracle should be your choice (or even better, IBM DB2). However, if you are predicting <10000 users and average query of 5 per minute or less, MySql will do all you have ever hoped for.

peter_budo commented: I like this reply +9
buddylee17 216 Practically a Master Poster

Your variables don't match up. Just one example, you define $nameField = $_POST['name']; then in the $body variable, you try to add Name: $name <br> where it should be Name: $nameField <br>

buddylee17 216 Practically a Master Poster

Yes, where are you going to store the users input? (database, text file...)

buddylee17 216 Practically a Master Poster

Sorry, I only had this problem once a long time ago. Seems like versions before php5 don't support private/public so change the instances to var.

I don't know which version it is.

Create a php info page.

<?php phpinfo(); ?>

This will output every detail about your server config.

buddylee17 216 Practically a Master Poster

What version of php are you using? I believe if it is below 5 then you'll have to replace all instances of private with public.

buddylee17 216 Practically a Master Poster

For data security, avoid sql injection by using stored procedures, data validation, and any other means that you can expend. Also, use secure socket layers for any sensitive information that the user may view or enter and use secure shell instead of ftp for moving your files to and from the server.

buddylee17 216 Practically a Master Poster

Alright so after many people asking me to post the login script I use for my site at locatestyle.com, I made two functions.

Who asked you to post this?

buddylee17 216 Practically a Master Poster

I can't replicate your problem. It parses as normal html on my machine. Try to put a simple script like <?php echo "Hello world"; ?> in as an iframe and see if that parses.

buddylee17 216 Practically a Master Poster

Surround the filename in double quotes:
Click Save As
Filename: "default.css"

buddylee17 216 Practically a Master Poster

Yeah, change it to testFile2.txt or something.

buddylee17 216 Practically a Master Poster

Huh. Just to verify this, run the above script again but change the file name to something not in the current directory. If it creates a new file, it will output "file opened The file is empty"

buddylee17 216 Practically a Master Poster

Yeah you'll definitely want some JavaScript incorporated. What I would do:
Disable tabs 2 and 3.
Use onclick handler to send the first form to a php script via an xmlhttprequest(AJAX). If the form validates, send the contents of the second form back and populate with innerHTML and enable the second tab. Also, do the same for the third. If you are not familiar with AJAX, do what john said and repost in the JavaScript/AJAX/DHTML forum.

-notice I said onclick handler. That's only because an onsubmit will cause a page refresh and the form change will not be seamless.

buddylee17 216 Practically a Master Poster

No, it was just a hunch. Can you test a local file? Create a text file, type a couple of words in it to give it some testable content and save it as testFile.txt in the same directory as your current script. Now run the following:

<?php
$file="testFile.txt";
$fp = fopen($file, "a+");
if($fp){
echo "file opened ";
}
else{
echo "file did not open ";
}
if(filesize($file)!=0)
	{
	$contents = fread($fp, filesize($file));
	echo $contents;
	}
	else
	{
	echo "The file is empty";
	}
	fclose($fp);
?>

Note that the script checks filesize before attempting fread. You'll get an error attempting fread if the file is 0.

buddylee17 216 Practically a Master Poster

Do you have access to the server? Your host may have the functions disabled. If you are not sure, place the following into a new php file and name it phpinfo.php:

<?php
phpinfo();
?>

This page will output all of apaches settings. What you should look for is under PHP Core. The directive is named disable_functions. If fopen is disabled, it will be listed here. Just a thought.

buddylee17 216 Practically a Master Poster
$fp = fopen("http://www.mydomain.org/order.txt", "a+");
if($fp){
echo "file opened";
}
else{
echo "file did not open";
}
buddylee17 216 Practically a Master Poster

I don't understand what you are trying to do. Will this not work for you?

<form action="contents.php?id=11" method="get">
			Recherche<br/>
			<input type="text" name="search"/><br/>
			<select name="fields">
					<option>Actualité</option>
					<option>Annonces</option>
					<option>Culture</option>
					<option>Ecrivains</option>
					<option>Musique</option>
					<option>Art</option>
					<option>Contes</option>
			</select>
			<input type="submit" name="submit" value="chercher"/>
			

			</form>
			<?php
					if(isset($_GET['submit']))
					{
						$mot = $_GET['search'];
						$ou = $_GET['fields'];
						echo "mot=$mot<br>";
						echo "ou=$ou";
						}
?>
buddylee17 216 Practically a Master Poster

I believe you have to do something like:

$teamMbrs= array(1 =>$team1, $team2, $team3, $team4, $team5, $team6, $team7, $team8, $team9, $team10, $team11, $team12, $team13, $team14, $team15, $team16);
buddylee17 216 Practically a Master Poster

Use the header function to return the user to the first page if the variable from first page isn't filled in.

<?php
if(empty($_POST['var from first page'])){
header ('Location:page1.php');
}
buddylee17 216 Practically a Master Poster

Learn them one at a time based on your current interest. If you want to edit pictures, start with Photoshop. If you want to create nice vector graphics, start with Illustrator. All of the programs are considered the industry standard in there purpose. Just pick one and get started. There are plenty of tutorials available on the web. Also remember, Google is free and better than any single book.

buddylee17 216 Practically a Master Poster

The two important ones are keywords and description. They both go in the head of the document. Metadata help search engines find content relative to what was searched for. Let's look at this page:

<meta name="keywords" content="HTML and CSS, programming forum, computer forum, programming help, computer help, tech support, technical support, web development, website promotion, internet marketing, seo" />

Keywords are important because they give the search engine an idea about the pages content. To create keywords, simply make a list of all the keywords you think people might find you with. Also, ask your customers to make a list of all the keywords they would try to find you with.

<meta name="description" content="How do I go about metadata - HTML and CSS Community and Forum - Our HTML and CSS forum is the place for Q&amp;A-style discussions related to the XHTML markup language and stylesheets. Note we have a separate JavaScript forum for clientside scripting languages." />

The description is a bio for the page. Try to keep it under a few sentences and related to the content. In either case, if you start repeating words, it can dilute the content and actually lower your page rank.

Search engines all use different algorithms to decide page rank. Metadata can help you improve page rank but, there are many other factors involved.

Perhaps the most important factor would be having other sites link to yours. It's similar to how rep power works on Dani Web:
…

Soleybancing commented: This is a clear Explanation. Thanks +2
buddylee17 216 Practically a Master Poster

Are you asking if they can be mixed in the same document?

buddylee17 216 Practically a Master Poster

These are inline styles. Dreamweaver will do something similar. It will create a class for the element and embed the styles in the head of the document. This will look like:

<style type="text/css">
<!--
.style1 {
	font-size: 18px;
	color: #FF0000;
}
-->
</style>
</head>

<body>
<p><span class="style1">TEST FONT</span></p>
buddylee17 216 Practically a Master Poster

Check out the Dynamic Drive Cross Browser marquee. I have used it before in conjunction with php and mysql. Basically, you create a form which posts to the server which updates the db and dynamically pulls the newest information first.

buddylee17 216 Practically a Master Poster

Each option should have an associated value. For example:

<option>Actualité</option>

should be

<option value="Actualité">Actualité</option>

Also, if you want to add variables to the url, use method="get". This will automatically place the variables into the query string.

buddylee17 216 Practically a Master Poster

There are several errors on the page. Validate with W3C

buddylee17 216 Practically a Master Poster

The bottom of your script is incomplete. It ends with:

if( ($fGvxm8_f4DlzWpub7u=='showthread.'.VBSEO_VB_EXT) && isset($_POST) && isset($_POST['excerpt']) && VBSEO_IN_TRACKBACK )
{
@define('THIS_SCRIPT', 'showthread');
include dirname(__FI

If you are going to fix this, you have to make sure that your braces are balanced. In other words, for every { the script must have a preceeding } to close it.

buddylee17 216 Practically a Master Poster

This will happen anytime that you don't close a loop. For example something like:

<?php
if($this==$that){
echo "They are equal";
//loop was never closed
?>

Would cause this error.
The way to fix it is to find the open spot and close it:

<?php
if($this==$that){
echo "They are equal";
}//Now the loop is closed
?>
buddylee17 216 Practically a Master Poster

Okay, what this does is it performs a substr on the text portion of the link only by using a function inside the preg_replace function:

<?php
$content="You can read more about reducing the text of the link at  http://www.daniweb.com/forums/thread135726.html .";
function reduceurl($url, $url_length) {
        $reduced_url = substr($url, 0, $url_length);
        if (strlen($url) > $url_length) {
		$reduced_url .= '...';
		return $reduced_url;
		}
	}
$text = preg_replace("@(http://[^\s]+)@sme", "'<a class=\"diaryUrl\" target=\"_blank\" href=\"$1\">' . reduceurl(\"$1\", 40) . '</a>'", $content);
echo $text;
?>

This will output "You can read more about reducing the text of the link at http://www.daniweb.com/forums/thread1357..." with the link in place.

Venom Rush commented: A great help. Thank you very much +1
buddylee17 216 Practically a Master Poster

Something like this should work:

<?php
$content="http://www.daniweb.com/forums/thread135726.html";
$short=substr($content,0,22);
$text = preg_replace('@(http://[^\s]+)@sm', '<a class="diaryUrl" target="_blank" 

href="$1">'.$short.'</a>', $content);
echo $text;
?>
buddylee17 216 Practically a Master Poster

Yes, this is called an include. Includes can be either client side (JavaScript) or server side (php, asp, jsp, coldfusion...) Basically, what happens is that you save one file for your navigation bar and then include it in each page that needs the bar. Now, if you want to change a link, you only do it once instead of every page on the site. To use an include with php, save the include code as navbar.php and simply say:

<?php
include ('navbar.php');
?>
buddylee17 216 Practically a Master Poster

Once you get comfortable with the xhtml syntax, look into a server side language. At some point you'll find that xhtml won't full fill all of your needs and will need some server interaction. If you have no preference, I'd recommend php. Php has a wealth of documentation and tutorials available free online. I believe a good way to learn a server side language is to start off with a form that submits to the server. Here is a good place to start. The easiest way to develop and test php is with some type of WAMP (Windows Apache MySql PHP) server running on your local machine. Probably the easiest to get started with is xampp. It will run on just about any operating system and will allow you to test pages locally before uploading to the web.

Also, try to create an external stylesheet for your xhtml page. W3Schools is a good place to learn CSS basics. You'll also note that the site has tutorials on just about anything else related to web development.

peter_budo commented: Nice post +9
buddylee17 216 Practically a Master Poster

You can control cache in php with headers. Here's a good read.

buddylee17 216 Practically a Master Poster

That's actually a function called strip_tags:

$text='<p>This is some <strong>sample text</strong>. You are using</p> ';
echo strip_tags($text);
buddylee17 216 Practically a Master Poster

OR

$row = mysql_fetch_row($result);	
echo'<script type="text/javascript">';
echo "window.location = 'http://myurl.com/test/".$row[0]."/index.php?name=".$row[0]."/';";
echo'</script>';
buddylee17 216 Practically a Master Poster

Try echoing a meta refresh:

$row = mysql_fetch_row($result);	
echo'<meta http-equiv="refresh" content="0;url=http://myurl.com/test/'.$row[0].'/index.php?name='.$row[0].'">';
buddylee17 216 Practically a Master Poster

Is there any reason that you are redirecting with JavaScript instead of php's header function?

buddylee17 216 Practically a Master Poster

What about something like this?

buddylee17 216 Practically a Master Poster

Do you mean something like this?
http://www.felgall.com/jstip22.htm