buddylee17 216 Practically a Master Poster

You missed the second s in substr: $joketext=subtr($row['joketext'],0,10); should be $joketext=substr($row['joketext'],0,10);

buddylee17 216 Practically a Master Poster

Use substr to get the first 20 characters of the string:

$first=substr($content,0,20);
print $first;

In this example, $content is the original paragraph, 0 is the starting point of the content to be returned, and 20 is the number of characters to be returned.

buddylee17 216 Practically a Master Poster

Could be wrong but I think this will require some type of middleware like PHP to communicate between them.

buddylee17 216 Practically a Master Poster

I think you are looking for a preloader.
A preloader is a movieclip which plays until getBytesLoaded=getBytesTotal (the whole flash movie is loaded). After loaded, the movie goes to the main frame using gotoAndPlay.
Here's a tutorial.

buddylee17 216 Practically a Master Poster

The reason is that each browser applies its own default stylesheet to your page. What this means is that each browser adds a certain amount of margin, padding, line height... to each element. The problem with this is that IE may add 2px and FireFox may add a different amount. Thus the inconsistency problem that has plagued the world of web design. The only way to make things appear consistent is to reset the elements you will be using in the beginning of your stylesheet. I often post this link, as the question comes up quite often. Have a read, it should clear some things up. Here is a link dealing with white space that IE adds in between images.

jephthah commented: good links, thanks +3
buddylee17 216 Practically a Master Poster

No, CSS is not hard to learn but, it does take time to master. You'll catch the basic concepts in a day or so but, because you can manipulate the design in so many different ways, it will take a while to master them all.
You'll need to get used to previewing the site in different browsers because what looks great in FireFox may not look so good (or even work) in IE and vice versa.

You can find just about anything you need to know on CSS at W3Schools.

alwaysworking commented: Thank you! +1
buddylee17 216 Practically a Master Poster

I guess you mean this:

<a href="http://www.google.com">
<img src="<?php echo get_bloginfo('url') ?>/serv67/cmg2/img/blog2.jpg" alt="pic" />
</a>
buddylee17 216 Practically a Master Poster

Ok, so it should be name="recomendedbyid" and not name="id". Just skimmed over the code.

buddylee17 216 Practically a Master Poster

$id = $_GET['id']; This is looking for a get variable with name='id'. Change
name="textfield"
to
name="id". I believe this will fix it.

buddylee17 216 Practically a Master Poster

You want something like this? This textbox clears when the user clicks it.

<input type="text" onfocus="this.value=''; this.onfocus=null;" name="notes" value="enter ticket number here" />
peter_budo commented: Good example, nice work :) +8
buddylee17 216 Practically a Master Poster

Shouldn't for (var counter=0; counter<theForm.del.length; counter++) be for (var counter=0; counter<theForm.del.length; counter++){ and return(true); should be return filledIn;

buddylee17 216 Practically a Master Poster

No problem, please dont forget to mark the post as solved.

buddylee17 216 Practically a Master Poster
my_sound.onSoundComplete = function() {
numtrack++;
if (numtrack == 2) {
numtrack = 1;
}
buddylee17 216 Practically a Master Poster

my_sound.loadSound("music/track1.mp3", false); This tells me that the music is being downloaded and is not actually in the flash movie or library. Look in the folder that you downloaded. It should contain a subfolder named music. Inside (I think) will contain mp3's named track1.mp3,track2.mp3, & track3.mp3.

my_sound.onSoundComplete = function() {
numtrack++;
if (numtrack == 4) {
numtrack = 1;
}

This is incrementing the track number by one at the end of the song and resetting the song number after track3.mp3. To change the songs, take the mp3's that you want in the player and name them track1.mp3, track2.mp3...and replace the current songs in the music folder.

This is all just a guess but hopefully it will help get you going in the right direction.

peter_budo commented: Good code example +8
buddylee17 216 Practically a Master Poster

I believe ryan_vietnow meant ($variable21=="") instead of ($variable21="") . It may not fix your problem, but == is used to compare a variable to a value or to another variable. = is used to assign a value to a variable. Don't get is equal to (==) confused with equals(=). You could also try:

if(empty($variable21)){
echo "Meeting time is not yet determined. Please check again later.";
}
else{
echo "<p<b>Meetings:</b> $variable21</p>";
}

If all else fails, use strlen to check the strings length aka the number of characters in the string assigned to the variable:

if(strlen($variable21)>1){ 
echo "<p<b>Meetings:</b> $variable21</p>";
}
else{
echo "Meeting time is not yet determined. Please check again later.";
}
buddylee17 216 Practically a Master Poster

I can't stand frames but, the only solution I can think of would be to use them. Otherwise the document content will refresh on each page change.

buddylee17 216 Practically a Master Poster

If you have a common style sheet that's used throughout the site, it's not hard to center your pages. Absolute position the body. Add the following attributes to the body:

body{
position:absolute;
left:25%;
top:5px;
}

You'll have to play around with the left amount until things look like you want them to. I used a percentage instead of a fixed amount because of the wide variety of monitor resolutions used these days. The top is optional but, you may find that you'd like a little more or less space from the top than what the browser gives by default.
Hope this helps.

buddylee17 216 Practically a Master Poster

It's not pretty nor creative but is Valid XHTML 1.0 Strict:

<ol>
<li style="font-size:24px">
<span style="font-size:12px">This text is 12px. The bullet number is 24px.</span>
</li>
<li>
<span style="font-size:12px">This text is 12px. The bullet number is 12px.</span>
</li>
</ol>
buddylee17 216 Practically a Master Poster

No, don't edit anything except for display_date on line 2 and link location in line 10. The rest of the script is how JavaScript reads the current date from your machine.

buddylee17 216 Practically a Master Poster

JavaScript will do this. HTML can't make decisions based on the date. A Server side script would be even better because the user can't disable it the way they can JavaScript. Anyway, here you go:

<script type="text/javascript">
var display_date=new Date('04/04/2008');//this will be the date the link starts displaying
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
//get all dates in the same format
var current_date = new Date(month +'/' + day + '/' + year);
if(current_date>=display_date){
document.write('<a href="newlink.html">new link</a>');
}
</script>
buddylee17 216 Practically a Master Poster

You have to upload the images to the server. Notice how Ohio.gif works but the other 2 images dont. Here's the path to Ohio.gif :
http://www.ohiochirorelief.com/ohio.gif
You need to put the 2 Dr.Rex images into the same folder that ohio.gif is in, on the server.

buddylee17 216 Practically a Master Poster

I had a similar problem integrating paypal. It was a security feature problem. I changed my allowScriptAccess and allowNetworking param values and it fixed things. Here's what I set the values at:
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowNetworking" value="all" />

buddylee17 216 Practically a Master Poster

Use loadVars. Here is some code from a login for a similar project.
I did it with ActionScript 2.0. What you need are three text boxes and a submit button.
The first two text boxes (email and password) will be input text type with instance names of email and password. The third text box should be dynamic text type with an instance name of status. Then in the actions panel of the submit button, put this:

on (release) {
status.text = "";//clearing status field for this attempt
serverFile="/login.php";
//creating two LoadVars objects, to send and receive variables
my_lv = new LoadVars();
result_lv = new LoadVars();
//Assign appropriate text boxes to LoadVars object
my_lv.email = email.text;
my_lv.password = password.text;
//Send the variables and Load the servers response
my_lv.sendAndLoad(serverFile, result_lv, "POST");
//event which is called when result_lv passed above, receives response from php page
result_lv.onLoad = function(success:Boolean) {
	if (success) {
               email.text = "";//clearing all fields
               password.text = "";
               status.text =result_lv ["serverResponse"]; //entering response to status field for display
             }
        }
}

Then in the php page, if the person gets logged in,

echo "&serverResponse=Authentication confirmed";

and if denied

echo "&serverResponse=Access denied";

I hope this helps.

buddylee17 216 Practically a Master Poster

Looks like you don't have a conditional to trigger the mail to be sent. Try replacing the last 24 lines of contact_process.php with this:

// If everything is okay, send the message
			if ($name && $email && $city && $state && $phone && $occupation && $reason && $interest && $timeframe && $comments)
			{
				echo "<br><p class='blackheader'>Thank you for your interest in our Caddy Card distributorship opportunity. Someone will be in contact with you shortly.<br>";
			$body = "The following has been submitted from the Caddy Card Biz website:\nName: $name\nEmail: $email\nCity: $city\nState: $state\nPhone: $phone\nOccupation: $occupation\nReason: $reason\nInterest: $interest\nTimeframe: $timeframe\nQuestions/Comments: $comments";
				mail ($to, $subject, $body, $headers);
			} else { // One	 form element was not filled out properly.
				echo "<p class='blackheader'>Please go back and fill out the form again.</p>";
			}
			?>
buddylee17 216 Practically a Master Poster

#
//If user only enter Bicycle Type
#
elseif (($brandC="") AND ($typeC!=="") AND ($styleC== "All") AND ($frameC== "") AND ($groupSetC== ""))

I do this occasionally. You are confusing the comparison operators. On line 39, where you have $brandC="", you're not comparing the string to empty, you're resetting the value to empty. If you want to check if empty, use $brandC =="". Also, $typeC !=="" should be $typeC !="". There are also similar problems on line 45 & 51.
Or better yet, use

elseif(empty($brandC) && !empty($typeC) && empty($frameC) && empty($groupSetC))

I could be wrong, but, I believe it will parse a bit faster.

buddylee17 216 Practically a Master Poster

External css should not contain style tags (<style type = "text/css"></style>) at the beginning and end like they do when putting them inline. If the styles aren't showing up, they probably aren't in the same place that you are pointing the link href to. Try typing the absolute address of your css file into the browser and view it to make sure it's there. Then copy and paste the same url into the href. i.e.<link href="http://www.insanecricket.com/sleek/styles.css" rel="stylesheet" type="text/css" />

peter_budo commented: Good spoting +7
buddylee17 216 Practically a Master Poster

Do a SELECT to find the user_id for the current user in the USER table. Assign the user_ID to a variable, $user_ID. Now do your UPDATE on the USER_INFORMATION table using WHERE user_ID='$user_ID'

hooray commented: good solution +1
buddylee17 216 Practically a Master Poster

Create a .php file with your connection information. Something like this:

//connect.php
<?php
$dbhost = 'localhost';
$dbuser = 'username';
$dbpass = 'password';
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql');
$dbname = 'dbname';
mysql_select_db($dbname);
?>

Now store it on the server above the root. When you are ready to connect to the db, include the file in your script. The server will read it the same as if it were in the script. This is also handy for headers and footers. Instead of modifying every page, you just change that one file.

<?php
require './connect.php'; //you could also use include './connect.php';
$sql="SELECT * FROM table";
buddylee17 216 Practically a Master Poster

Absolutely. Try this.

<form action="whatever.php" method="POST" onsubmit="return confirm('Are you sure you want to submit this data?')">

Keep in mind, you'll still want to have some server side validation.

buddylee17 216 Practically a Master Poster

Yes, use the substr function:

$script = substr($script, 0, -2);

If this trims too much, try changing the -2 to -1.

buddylee17 216 Practically a Master Poster

You'll need to know a little bit about what variables the paypal cart requires. If you're familiar with how it works in html, then you can do something similar in actionscript. Declare all the variables that normally are hidden in the form after the on(release){. In your buttons' action palette, use something like

on (release) {
declare all your variables here
getURL("https://www.paypal.com/cgi-bin/webscr ","_blank", "POST");
}

Have a look here for a more in depth look.

buddylee17 216 Practically a Master Poster

Get rid of the single quotes around your table name and field name. $sql = "INSERT INTO addurl (u_link) VALUES ('$URL')";

buddylee17 216 Practically a Master Poster

Yes it could be done. I doubt that many people would want to login off of your server though. Too much phishing going on these days.

buddylee17 216 Practically a Master Poster

Assuming you already know how to connect to the database and that your form method was post:

$name=$_POST['name'];
$age=$_POST['age'];
$sql="INSERT INTO Client (name,age) VALUES ('$name','$age')";
$result=mysql_query($sql) or die(mysql_error());
$sql="INSERT INTO Client2 (name,age) VALUES ('$name','$age')";
$result=mysql_query($sql) or die(mysql_error());
buddylee17 216 Practically a Master Poster
$header = "From:info@daniweb.com";
$header.= "\r\nCC:info@daniweb.com";
$header.= "\r\nBCC:info@daniweb.com";
mail("yourname@yourdomain.com", $subject,  $message, $header);

The mail function works differently depending on whether using Linux or Windows. This example is for Windows. I'm not sure if it works on Linux but, I'm sure it would be similar.

CC is an old term for Carbon Copy. It used to be that if you gave someone a document, you would make a carbon copy for yourself as proof. Now it is used to send to others as witnesses that the message was sent. All recipients of the CC are visible in the message.

BCC stands for Blind Carbon Copy. It is the same as CC except for the fact that the recipient doesn't get to see who else got a copy of the document.

buddylee17 216 Practically a Master Poster

You should contact the host and find out if you have any sort of db admin tool. My host has phpMyAdmin. This allows you to interact directly with the db instead of writing php scripts, uploading them to the ftp, then running them once with no way (except for writing another script to query the db and display the results) of seeing if the data was entered the way you wanted it to be. If you don't have an admin tool you should be able to configure mysqlcc (open source tool by SourceForge.net) to directly interact with the db.

As for the parse error, you never closed the loop at the end.

echo "Error creating database: " . mysql_error();

?>

should be:

echo "Error creating database: " . mysql_error();
}
?>
buddylee17 216 Practically a Master Poster

On page 2,

print 'Name: <input type="text" name="name" value="'.$line[0].'" />';

This wont pass to page 3 unless it's between <form> and </form> though.