poison6feet
Members-
Posts
25 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
poison6feet's Achievements
Newbie (1/5)
0
Reputation
-
Hi There, I am trying to achieve the static url from my dynamic database driven urls. I have used online tool to create .htaccess file but still I am unable to see the static url working. My .htaccess files is Options +FollowSymLinks RewriteEngine on RewriteRule index/m/(.*)/value/(.*)/ index.php?m=$1&value=$2 RewriteRule index/m/(.*)/value/(.*) index.php?m=$1&value=$2
-
Hi, I have followed and modified my code from the website www.phpwebcommerce.com to integrate a simple shopping cart with paypal. When I use the demo site on this website is working fine and order has been processed. However when I use this code I am getting the following msg on sandbox paypal. "This invoice has already been paid. For more information, please contact the merchant." Do I need to get the IPN from paypal or what to do please advise. Thanks
-
I am looking more similar like that, I have a hosting plan and I dont have direct access to harddrive, is there any way we can set php scripts to run daily or weekly?
-
Hi There, I am trying to find out, how to send an email to all the subscribe users without manual intervention, I mean weekly newsletters. At the moment every time I am login in the admin area and I am refreshing the page to send emails to the subscribe members. Is there any way in PHP to run the set of pages on particular day of the week. Thanks
-
Thanks rhodesa
-
Please find my exact code, please suggest me the solution. CSS #content { color: #000000; height: AUTO; width: 600px; float:left; margin-top: 0px; filter: alpha(opacity=80);-moz-opacity: 0.8; } #dispcategorieslp { margin: 5px 0 0 0; background-color: white; padding: 10px; width: 270px; font-size: 14px; font-family: Arial; text-align: left; filter: alpha(opacity=80);-moz-opacity: 0.8; color:#0066FF; float:left; } PHP <div id="content"> while($row_list=mysql_fetch_assoc($result)){ ?> <div id="dispcategories"> <strong><a href=<?echo $row_list['url'];?> style='text-decoration: none;'><?echo $row_list['Name'];?></a></strong> <? $subquery="select menusubcatid, catid, name, url, content from menusubcategories where catid=".$row_list['menucatid']; //echo $subquery; $subresult=mysql_query($subquery); while($row_list_sub=mysql_fetch_assoc($subresult)){?> <div id="navlist"><a href=<?echo $row_list_sub['url'];?>><?echo $row_list_sub['name'];?></a></div> <? } ?> </div> <? } } ?> </div>
-
http://www.imitigence.com/mga/services.php?id=4
-
Hi I have wrote CSS and I am using div on my index page, the data and url is picked from database dynamically and displayed on the page. When I am using div it is create some empty space between, I have attached the screen shot. Please help me. [attachment deleted by admin]
-
Thanks neil for your quick reply, I will keep it simple.
-
Hi Most of the website when I click on menu link, it will show as a directory and page as index.php page. I am new to PHP and I have created a website which has different level menus such as, Home Services contact About and so on, I wondering, do I need to create a seperate directory for each menu item and create an index.php for each directory. Which is better, creating seperate directory or one directory with different pages???? Thanks
-
5th parameters or 4 parameters, however in the mentioned url the fifth parameter is optional, I am not sure, I have raised the ticket with the hosting company and they said that will look in to the email logs and come back with some advise. Thanks
-
Hi Guys, Recently I have moved my website from VPS to hosting only and I am unable to figure why email is not going out. I have a code, when user gets registered, system will send automatic email with all the details. Registration part if($database->addNewUser($subuser, md5($subpass), $subname, $subemail)){ if(EMAIL_WELCOME){ $mailer->sendWelcome($subname, $subuser,$subemail,$subpass, EMAIL_FROM_ADDR); } When I echo message before and after calling the sednWelcome function, Its displaying the message but I am not sure why it is not entering in the mailer.php mailer.php function sendWelcome($name, $user, $email, $pass, $from){ require_once "Mail.php"; $subject = "Welcome!"; $body = $name.",\n\n" ."Welcome! You've just registered at Imitigence Site " ."with the following information:\n\n" ."Body Message xxxxx" ."- Administrator,\n" ."Imitigence."; $to = $email; $host = "host"; $username = "xxxxxxxx"; $password = "xxxxxxxx"; $headers = array ('From' => $from,'To' => $to,'Subject' => $subject); $smtp = Mail::factory('smtp', array ('host' => $host,'auth' => true,'username' => $username,'password' => $password)); $mail = $smtp->send($to, $headers, $body); }
-
Earlier I was hosting this on windows OS, not it is on UNIX. I think the problem was the slashes and Upper/Lower case in path definition.
-
Thanks everybody's timely reply, not sure, but it is working now. How I dont know. But working fine now.
-
On index page and login page and all other pages I have started the session session_start(); include("include/session.php"); with in the Session.php file /* Update Statistics*/ function updatestats($username, $page){ global $database; //echo "Entered"; return $database->updatestats($username, $page); } with in the database.php file /** * update daily stats */ function updatestats($username, $page){ $ip=$_SERVER['REMOTE_ADDR']; if ($username){ $loggedin=$username; } else { $loggedin="Guest"; } $datetime = getdate(); $date = $datetime[mday]."/".$datetime[mon]."/".$datetime[year]; $time=$datetime[hours].":".$datetime[minutes].":".$datetime[seconds]; $page=str_replace("'","''",$page); //echo $page; $q = "SELECT count FROM statistics where ipaddress = '$ip' and date='$date' and page='$page'"; $result = mysql_query($q, $this->connection); if (mysql_numrows($result) > 0){ $row_count = mysql_fetch_assoc($result); $count=$row_count['count']+1; $q="Update statistics set LatestTime='$time', count=$count Where ipaddress = '$ip' and date='$date' and page='$page'"; } else { $q = "Insert into statistics values('','$ip','$loggedin','$page','$date','$time','$time',1)"; } return mysql_query($q, $this->connection); }