parameter 그룹 만들기
왼쪽 메뉴 - Parameter Groups ->
![]() |
Create DB Parameter Group 클릭 |
![]() |
자신의 mysql 버전에 맞게 만들자 (이름이랑 desc 는 상관없다) |
![]() |
왼쪽 돋보기를 클릭하여 디테일 화면으로 이동 |
파라메터 수정
![]() |
Create DB Parameter Group 클릭 |
![]() |
자신의 mysql 버전에 맞게 만들자 (이름이랑 desc 는 상관없다) |
![]() |
왼쪽 돋보기를 클릭하여 디테일 화면으로 이동 |
function is_yesterday($mysql_datetime){ | |
$yesterday = date("Y-m-d", strtotime("-1 day")); | |
$check_day = date("Y-m-d", strtotime($mysql_datetime)); | |
if($yesterday == $check_day){ | |
return true; | |
} | |
return false; | |
} |
$data = array('name' => $name, 'count' => $count); | |
$this->db->set('updated_at', 'NOW()', false); | |
$this->db->insert('mytable'); |
// before | |
$message = '<p>'.implode('</p><p>', ( ! is_array($message)) ? array($message) : $message).'</p>'; | |
// after | |
$message = implode('', ( ! is_array($message)) ? array($message) : $message); |
# root | |
location / { | |
try_files $uri $uri/ /index.php; | |
} | |
# v2 folder | |
location /v2/ { | |
try_files $uri $uri/ /v2/index.php; | |
} |
<?php die(); | |
/** | |
* Add you custom models here that you are loading in your controllers | |
* | |
* <code> | |
* $this->site_model->get_records() | |
* </code> | |
* Where site_model is the model Class | |
* | |
* ---------------------- Models to Load ---------------------- | |
* @property Member_model $Member_model | |
* @property Number_model $Number_model | |
* @property Util_model $Util_model | |
* @property Content_model $Content_model | |
* @property Comment_model $Comment_model | |
*/ | |
class my_models | |
{ | |
} | |
// End my_models.php |
<?php | |
class test{ | |
var $foo = "ok works"; | |
function test_function(){ | |
echo "aaa ".$this->foo." aaa"; | |
echo "</br></br>"; | |
echo "aaa $this->foo aaa"; | |
echo "</br></br>"; | |
} | |
} | |
?> |
aaa ok works aaaㅇㅇ 먹힌다.
aaa ok works aaa
public class ItemAdapter extends BaseAdapter | |
{ | |
// TODO replace with a collection of real data | |
private static final List<DummyItem> DATA = DummyItemContent.ITEMS; | |
private LayoutInflater mInflater; | |
public ItemAdapter(Context context) | |
{ | |
// Cache the LayoutInflate to avoid asking for a new one each time. | |
mInflater = LayoutInflater.from(context); | |
} | |
/** | |
* @see android.widget.ListAdapter#getCount() | |
*/ | |
public int getCount() | |
{ | |
return DATA.size(); | |
} | |
/** | |
* @see android.widget.ListAdapter#getItem(int) | |
*/ | |
public Object getItem(int position) | |
{ | |
return DATA.get(position); | |
} | |
/** | |
* Use the array index as a unique id. | |
* | |
* @see android.widget.ListAdapter#getItemId(int) | |
*/ | |
public long getItemId(int position) | |
{ | |
return position; | |
} | |
/** | |
* Make a view to hold each row. | |
* | |
* @see android.widget.ListAdapter#getView(int, android.view.View, | |
* android.view.ViewGroup) | |
*/ | |
public View getView(int position, View convertView, ViewGroup parent) | |
{ | |
// A ViewHolder keeps references to children views to avoid unneccessary | |
// calls | |
// to findViewById() on each row. | |
ViewHolder holder; | |
// When convertView is not null, we can reuse it directly, there is no | |
// need | |
// to reinflate it. We only inflate a new View when the convertView | |
// supplied | |
// by ListView is null. | |
if (convertView == null) | |
{ | |
convertView = mInflater.inflate(R.layout.list_item_item, parent, | |
false); | |
// Creates a ViewHolder and store references to the two children | |
// views | |
// we want to bind data to. | |
holder = new ViewHolder(); | |
// TODO store references to your views | |
holder.title = (TextView) convertView.findViewById(R.id.title); | |
holder.subtitle = (TextView) convertView | |
.findViewById(R.id.subtitle); | |
holder.thumbnail = (ImageView) convertView | |
.findViewById(R.id.thumbnail); | |
convertView.setTag(holder); | |
} | |
else | |
{ | |
// Get the ViewHolder back to get fast access to the TextView | |
// and the ImageView. | |
holder = (ViewHolder) convertView.getTag(); | |
} | |
// TODO Bind your data efficiently with the holder. | |
holder.title.setText(DATA.get(position).content); | |
holder.subtitle.setText(DATA.get(position).content); | |
holder.thumbnail.setImageResource(DATA.get(position).thumbnail); | |
return convertView; | |
} | |
static class ViewHolder | |
{ | |
// TODO define members for each view in the item layout | |
TextView title; | |
TextView subtitle; | |
ImageView thumbnail; | |
} | |
} |
public class NameCard implements Parcelable | |
{ | |
// TODO declare your real class members | |
// Members must be either primitives, primitive arrays or parcelables | |
private int mFoo; | |
private String mBar; | |
// TODO implement your constructors, getters & setters, methods | |
private NameCard(Parcel in) | |
{ | |
// TODO read your class members from the parcel | |
// Note: order is important - you must read in the same order | |
// you write in writeToParcel! | |
mFoo = in.readInt(); | |
mBar = in.readString(); | |
} | |
@Override | |
public void writeToParcel(Parcel out, int flags) | |
{ | |
// TODO write your class members to the parcel | |
// Note: order is important - you must write in the same order | |
// you read in your private parcelable constructor! | |
out.writeInt(mFoo); | |
out.writeString(mBar); | |
} | |
@Override | |
public int describeContents() | |
{ | |
// TODO return Parcelable.CONTENTS_FILE_DESCRIPTOR if your class members | |
// include a FileDescriptor, otherwise you can simply return 0 | |
return 0; | |
} | |
public static final Parcelable.Creator<NameCard> CREATOR = new Parcelable.Creator<NameCard>() { | |
public NameCard createFromParcel(Parcel in) | |
{ | |
return new NameCard(in); | |
} | |
public NameCard[] newArray(int size) | |
{ | |
return new NameCard[size]; | |
} | |
}; | |
} |
![]() |
![]() |
if (string.trim().length() > 0){ | |
// true | |
} | |
if (string.matches(".*\\w.*")) { | |
// true | |
} |