scmsimplybest 0 Newbie Poster

Thanks Buddy But It's Done Using this Script & Cron Job Facility .

But Thanks !!

scmsimplybest 0 Newbie Poster

Thanks For Help !! It's Done !!

scmsimplybest 0 Newbie Poster

Hello There,

I am Using This code to backup mysql database from my hosting server.

#!/bin/bash
#
# MySQL Backup Script
# VER. 2.5 - http://sourceforge.net/projects/automysqlbackup/
# Copyright (c) 2002-2003 wipe_out@lycos.co.uk
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#=====================================================================
#=====================================================================
# Set the following variables to your system needs
# (Detailed instructions below variables)
#=====================================================================

# Username to access the MySQL server e.g. dbuser
USERNAME=username

# Username to access the MySQL server e.g. password
PASSWORD=password

# Host name (or IP address) of MySQL server e.g localhost
DBHOST=localhost

# List of DBNAMES for Daily/Weekly Backup e.g. "DB1 DB2 DB3"
DBNAMES="database_name"

# Backup directory location e.g /backups
BACKUPDIR="/backups"

# Mail setup
# What would you like to be mailed to you?
# - log   : send only …
scmsimplybest 0 Newbie Poster

Hiiee

Use This Query

$sql="SELECT * FROM users WHERE username="'.$username.'" AND password="'.$password.'" ";

InStead Of This

$sql="SELECT * FROM users WHERE username='$username' AND password='$password'";

Check & Let Me Know If U Find Anything Else.

Do It For All Queries In Ur File. That Will Work.

Thanks.
ScmSimplyBest

scmsimplybest 0 Newbie Poster

Hello There,

I M having Problem with Getting Page Name With JavaScript in WordPress.

I have Used This Code To Get Page Name In WordPress.

function GetCurrentPageName() {
//method to get Current page name from url.
//return page name in small .
var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf(‘/’) + 1);
return sPage.toLowerCase()
}

now when using :

 

function OnLoad() {

alert(sPage);

}

Can AnyOne Explain Me How To get Page Names In WordPress ?

Thanks.
ScmSimplyBest

scmsimplybest 0 Newbie Poster

Hello ElegantElephant,

Please Provide Some Of Ur Code...or Post Ur Whole Problem Code here So we can figure it Out !! :)

Thanks !!

scmsimplybest 0 Newbie Poster

Thanks darkagn !! :)

I have Implemented It with another code !!
But Thanks For ur Kind Response !!

scmsimplybest 0 Newbie Poster

Hello Guys,

I m Building A Chat Application..in which i have 2 different user types like Admin & Merchant...I Have Taken User type A for Admin & M for Merchant...First I have Created Only Single LogIn Form for both user types & given DropDown So that If He Selects Merchant then it will assign value M to user type...now i have to create another LogIn form for Merchant...so how can i Auto Assign Value Of user type without displaying it on Form at User Side !! :(

I am Providing my Both Codes For LogIn Just Help Me !!
Old Code For Both Admin & Merchant.

<form action="index.php" method="post">
  <table width="350" border="0" align="center" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF" class="small_grey_border">
    <tr>
      <td width="346"><div align="center"><strong><font size="5">       
      Login</font></strong></div></td>
    </tr>
    <tr>
      <td>	  <div align="center">
          <p><font color="#FF0000" face="Tahoma"><strong> <?php echo $login_message; ?> 
            </strong></font></p>
          <table width="332" border="0" cellspacing="0" cellpadding="2">
            <tr>
              <td width="126" nowrap><div align="right">Username:</div></td>
              <td width="148" nowrap><font face="verdana" size="2"><b>
                <input name="user" class="input" maxlength="100">              
              </b></font></td>
            </tr>
            <tr>
              <td><div align="right">Password:</div></td>
              <td><font face="verdana" size="2"><b>
                <input name="pass" type="password" class="input" maxlength=20>
              </b></font></td>
            </tr>
             <tr>
              <td><div align="right">Are you Merchant?:</div></td>
              <td><font face="verdana" size="2"><b><select name="usertype"><option value="A">No</option><option value="M">Yes</option></select>
               
              </b></font></td>
            </tr>
            <tr>
              <td colspan="2"><div align="center"><font face="verdana" size="2"><b>
                  <input type="submit" value="Login" name="sublogin" class="input">
              </b></font></div></td>
            </tr>
          </table>
          </div>
	  </td>
    </tr>
  </table>
</form>

New Code For Merchant.

<form action="index.php" method="post">
  <table width="350" border="0" align="center" cellpadding="10" cellspacing="0" bgcolor="#FFFFFF" class="small_grey_border">
    <tr>
      <td width="346"><div align="center"><strong><font size="5">       
      Merchant Login</font></strong></div></td>
    </tr>
    <tr>
      <td>	  <div align="center">
          <p><font color="#FF0000" face="Tahoma"><strong> <?php echo $login_message; ?> 
            </strong></font></p>
          <table width="332" border="0" cellspacing="0" cellpadding="2">
            <tr>
              <td width="126" nowrap><div align="right">Username:</div></td> …