Jump to content

westman

Members
  • Posts

    600
  • Joined

  • Last visited

Posts posted by westman

  1. hi all, i am back ;) i need to send mass emails to hundreds of members at the same time using a cron job.i have this script...

    $sql = mysql_query("SELECT * FROM members WHERE emailactivated = '0'");while($row = mysql_fetch_array($sql)){$email_add = $row["email"];$to = "$email_add";$from = "admin@mysite.com";$subject = "sign up";$message = '<html><body bgcolor="#FFFFFF">hello</body></html>';$headers = "From: $from\r\n";$headers .= "Content-type: text/html\r\n";mail($to, $subject, $message, $headers);}

    will this work?

  2. hi there am working with <option> in php this is my code HTML

    	 <div align="left">  	 <select name="selected_itme" id="selected_item"> 	   <option value="">Select your item</option> 	   <?php echo $select_body ?> 	   <?php echo $select2_body ?> 	 </select> 	 </div>

    PHP

    $select_body .= '<option value="' . $select_id . '">' . $select_name . '</option>';  $select2_body .= '<option value="' . $select2_id . '">' . $select2_name . '</option>';

    $select_body and $select2_body are in different while loops from different DB's and working well.however how do i find out witch $select_body was selected?i tried using...

    $select2_body .= '<option onchange="javascript:itemtype(\'123\');" value="' . $select2_id . '">' . $select2_name . '</option>';

    and

    $select2_body .= '<option onclick="javascript:itemtype(\'123\');" value="' . $select2_id . '">' . $select2_name . '</option>';

    but it did not work.any help?

  3. hi there,I have 2 div's my 1st div is a menu with a bit of css3 in it and the 2nd div is animated art work from adobe edge. what i need:i need the animated div to work in the background of the 1st div and bring the 1st div to the front of the stage the problem:the 2nd div is overlapping the 1st div and stopping the menu from working properly my code:

    <style type="text/css">/* main menu styles */#nav {	display:inline-block;	width:100%;	margin:0px auto;	padding:0;	background:#008000 url(../image/bg.png) repeat-x 0 -110px;	border-radius:10px; /*some css3*/	-moz-border-radius:10px;	-webkit-border-radius:10px;	box-shadow:0 2px 2px rgba(0,0,0, .5);	-moz-box-shadow:0 2px 2px rgba(0,0,0, .5);	-webkit-box-shadow:0 2px 2px rgba(0,0,0, .5);}#nav li {	margin:10px;	float:left;	position:relative;	list-style:none;}#nav a {	font-weight:bold;	color:#e7e5e5;	text-decoration:none;	display:block;	padding:8px 20px;	border-radius:10px; /*some css3*/	-moz-border-radius:10px;	-webkit-border-radius:10px;	text-shadow:0 2px 2px rgba(0,0,0, .7);}/* selected menu element */#nav .current a, #nav li:hover > a {	background:#42FF42 url(../image/bg.png) repeat-x 0 -20px;	color:#000;	border-top:1px solid #f8f8f8;	box-shadow:0 2px 2px rgba(0,0,0, .7); /*some css3*/	-moz-box-shadow:0 2px 2px rgba(0,0,0, .7);	-webkit-box-shadow:0 2px 2px rgba(0,0,0, .7);	text-shadow:0 2px 2px rgba(255,255,255, 0.7);}/* sublevels */#nav ul li:hover a, #nav li:hover li a {	background:none;	border:none;	color:#000;}#nav ul li a:hover {	background:#0F0 url(../image/bg.png) repeat-x 0 -100px;	color:#fff;	border-radius:10px; /*some css3*/	-moz-border-radius:10px;	-webkit-border-radius:10px;	text-shadow:0 2px 2px rgba(0,0,0, 0.7);}#nav ul li:first-child > a {	-moz-border-radius-topleft:10px; /*some css3*/	-moz-border-radius-topright:10px;	-webkit-border-top-left-radius:10px;	-webkit-border-top-right-radius:10px;}#nav ul li:last-child > a {	-moz-border-radius-bottomleft:10px; /*some css3*/	-moz-border-radius-bottomright:10px;	-webkit-border-bottom-left-radius:10px;	-webkit-border-bottom-right-radius:10px;}/* drop down */#nav li:hover > ul {	opacity:1;	visibility:visible;}#nav ul {	opacity:0;	visibility:hidden;	padding:0;	width:175px;	position:absolute;	background:#95FF95 url(../image/bg.png) repeat-x 0 0;	border:1px solid #7788aa;	border-radius:10px; /*some css3*/	-moz-border-radius:10px;	-webkit-border-radius:10px;	box-shadow:0 2px 2px rgba(0,0,0, .5);	-moz-box-shadow:0 2px 2px rgba(0,0,0, .5);	-webkit-box-shadow:0 2px 2px rgba(0,0,0, .5);	-moz-transition:opacity .25s linear, visibility .1s linear .1s;	-webkit-transition:opacity .25s linear, visibility .1s linear .1s;	-o-transition:opacity .25s linear, visibility .1s linear .1s;	transition:opacity .25s linear, visibility .1s linear .1s;}#nav ul li {	float:none;	margin:0;}#nav ul a {	font-weight:normal;	text-shadow:0 2px 2px rgba(255,255,255, 0.7);}#nav ul ul {	left:160px;	top:0px;}</style>	<script type="text/javascript" charset="utf-8" src="../anim_edgePreload.js"></script>	<style>		.edgeLoad-EDGE-16622662 { visibility:hidden; }	</style>  <div style="width:700px; height:200px;">	<ul id="nav">		<li class="current"><a href="#">Home</a></li>		<li><a href="#">My Account</a>		   <ul>						<li><a href="#">Manage My Account</a></li>						<li><a href="#">Update Login Info</a></li>					</ul>		</li>		<li><a href="#">Main menu</a>			<ul>				<li><a href="#">itme1</a>				 <ul>						<li><a href="#">itme11</a></li>						<li><a href="#">itme12</a></li>					</ul>				</li>				<li><a href="#">itme2</a></li>				<li><a href="#">itme3</a></li>				<li><a href="#">itme4</a></li>				<li><a href="#">itme5</a></li>				<li><a href="#">itme6</a>				 <ul>						<li><a href="#">itme61</a></li>						<li><a href="#">itme62</a></li>					</ul>				</li>				<li><a href="#">itme7</a></li>			</ul>		</li>		<li><a href="#">menu 2</a>			<ul>				<li><a href="#">itme1</a>					<ul>						<li><a href="#">itme2</a></li>						<li><a href="#">itme3</a></li>					</ul>				</li>				<li><a href="#">itme99</a>					<ul>						<li><a href="#">itme25</a></li>						<li><a href="#">itme26</a></li>					</ul>				</li>			</ul>		</li>		<li><a href="#">Help</a></li>		<li><a href="#">Log out</a></li>	</ul> <div id="Stage" class="EDGE-16622662"></div></div>

    any help?

  4. hi all,am looking for the best way to detect flash on all devices (pc, tablet, phone etc.) for a menuthis is what i have so fear... <?if (strstr($_SERVER['HTTP_ACCEPT'], 'application/x-shockwave-flash')){$hasFlash = true;}if ($hasFlash == "true"){// flash menu} else {// html menu};?> is this the best way? or is there better ways?

  5. hi there am trying to print out a string and if the string is more then 20 then the end will be cut and replaced with "..."this is what i have so fare $name = substr ($name, 0, 20);i can cut any string to 20 no prob but how do i add "..." at the end if the string is more than 20?

  6. i am using the right path. The info i show from my script in this forum, i edit become its personal this is my video play page...

     <div id="mediaplayer"></div> 		<script type="text/javascript">	  jwplayer(\'mediaplayer\').setup({		\'flashplayer\': \'video/0/player.swf\',		\'id\': \'playerID\',		\'width\': \'800\',		\'height\': \'500\',		\'file\': \'hdvideo/' . $play_num_video . '/myvid.mp4\',		\'image\': \'hdvideo/' . $play_num_video_image . '\',	\'skin\': \'video/0/glow/glow.zip\',			\'plugins\': {		   \'sharing-3\': {			   \'link\': \'http://mysite/video/?page=video\',			   \'code\': \'<embed src="http://mysite/video/' . $play_num_video . '/myvid.mp4" width="480" height="270" allowfullscreen="true" />\'		   },			}	  });	</script>

    my script is dynamic and will play 1,000's of diffident videos by changing $play_num_video i can not see a problem with it however i do not know why my 169MB AVI. will not play any help?

  7. throw the upload script...

    	 	else if (!preg_match("/\.(avi|mp4|wmv|mov|flv|swf)$/i", $_FILES['video_upload']['name'] ) ) {			$errorMsg_upload = "Your Video was not .avi, .mp4, .wmv, .mov, .flv or .swf and it must be one of those 6 formats, please try again";			unlink($_FILES['video_upload']['tmp_name']);	} else {		$find_fileinfo_video = mysql_query("SELECT * FROM nothere ORDER BY id DESC LIMIT 1") or die (mysql_error());	$find_fileinfo_video_check = mysql_num_rows($find_fileinfo_video);	if ($find_fileinfo_video_check == 0){	$vid_file_id = "1";	}else{	while ($row = mysql_fetch_array($find_fileinfo_video)) {	$vid_file_id = $row["id"];	}	$vid_file_id++;	}		mkdir("video/$vid_file_id", 0755);	$newname1 = "myvid.mp4";		if (move_uploaded_file($_FILES['video_upload']['tmp_name'], "hdvideo/$vid_file_id/".$newname1)) {

  8. sorry the last video i uploaded was the AVI. 169MB video will not play i get... Video not found or access denied: video/8/myvid.mp4 as a error message i was thinking that the problem could be from converting the video from AVI. to MP4. throw the upload am i right?

  9. yes have no line brakes meaning put <?php at the top of the page (line 1) also i had a problem with $_SESSION before when i was changing my host provider please check 3 thinks and match them 1. version of php on your server 2. version of php you are writing 3. version of $_SESSION working today (look on php.net)

  10. i successfully uploaded a AVI. file 169MB in sizei changed php.ini to php5.iniand the limit and uploading are working fine ;) last question:i can play all my videos okthe last video i uploaded was the AVI. 169MB videoand i don't know why, it is running on the same script as all the over videos.i was thinking that the problem could be from converting the video from AVI. to MP4. throw the upload am i right?

×
×
  • Create New...