Skip to content

ErcanOPAK.com

  • ASP.Net WebForms
  • ASP.Net MVC
  • C#
  • SQL
  • MySQL
  • PHP
  • Devexpress
  • Reportviewer
  • About

Category: PHP

PHP / Wordpress

How to solve “PHP Update Required” warning on WordPress

- 14.09.19 | 22.11.19 - ErcanOPAK comment on How to solve “PHP Update Required” warning on WordPress

The WordPress open-source content management system (CMS) will show warnings in its backend admin panel if the site runs on top of an outdated PHP version. The short-term plan is to migrate as many active users to more recent versions of PHP as possible so that the WordPress team can drop support for older PHP […]

Continue Reading ..
MySQL / PHP

mysql_connect() in PHP 7

- 14.09.19 | 22.11.19 - ErcanOPAK comment on mysql_connect() in PHP 7

After upgrading  to  PHP 7.x from PHP 5.x, you start getting  error of “Call to undefined”. This is because mysql_* functions are completely removed from PHP 7, it was get deprecated in PHP 5.5 but now it is completely removed. The older mysql function are removed due to following reasons: Not work on Object Oriented […]

Continue Reading ..
PHP

How to show a button with condition in PHP

- 26.05.19 | 22.11.19 - ErcanOPAK comment on How to show a button with condition in PHP

Scenario: Let’s say we have “Get Details” and “Update Details” buttons. And we want to make visible Update button after we fire the “Get Details” button. This is Get Details button:

Continue Reading ..
ASP.Net WebForms / HTML / PHP

Navigate to a Div using a button in HTML

- 26.05.19 | 22.11.19 - ErcanOPAK comment on Navigate to a Div using a button in HTML

The Div: <div id=”DivToNavigate”> The content goes here… </div>

Continue Reading ..
MySQL / PHP

Repeater Function in PHP

- 05.05.19 | 22.11.19 - ErcanOPAK comment on Repeater Function in PHP

You need to do a while loop to pull each rowset. mysql_fetch_array() will only pull one row at a time. Consider this solution: <?php $dbhost = ‘xxxx’; $dbuser = ‘xxxx’; $dbpass = ‘xxxx’; $dbname = ‘xxxx’; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die (‘Error connecting to mysql’); mysql_select_db($dbname, $conn); $result = mysql_query(“SELECT * FROM mytable”, $conn); <table> […]

Continue Reading ..
MySQL / PHP

How do you connect to multiple MySQL databases on a single webpage?

- 05.05.19 | 14.04.20 - ErcanOPAK comment on How do you connect to multiple MySQL databases on a single webpage?

You can make multiple calls to mysql_connect(), but if the parameters are the same you need to pass true for the ‘$new_link‘ (fourth) parameter, otherwise the same connection is reused.

Continue Reading ..
PHP

How to connect MySQL Database with PHP

- 22.04.19 | 22.11.19 - ErcanOPAK comment on How to connect MySQL Database with PHP

You can try code below:

Continue Reading ..
PHP / Wordpress

Disable REST API Plugin

- 21.04.19 | 22.11.19 - ErcanOPAK comment on Disable REST API Plugin

Disable the REST API with a Plugin: If you want to try a completely different solution you can try out https://wordpress.org/plugins/disable-json-api/ which takes care of removing the REST API functionlity for you. Disable the REST API without a Plugin: Maybe you don’t use any security plugins. While I recommend that you reconsider and install either WordFence or […]

Continue Reading ..
April 2021
M T W T F S S
 1234
567891011
12131415161718
19202122232425
2627282930  
« Jan    

Most Viewed Posts

  • Get the First and Last Word from a String or Sentence in SQL (243)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (194)
  • How to make some specific word(s) Bold or Underline in ReportViewer (187)
  • How to solve “Response.Redirect cannot be called in a Page callback” for DevExpress Components (183)
  • Confirm before process with ASPxButton in Devexpress (172)
  • ASPxGridView – Disable CheckBox based on condition in GridViewCommandColumn (170)
  • Find numbers with more than two decimal places in SQL (168)
  • Devexpress ASPxGridview Column Grouping in Code (164)
  • DATEADD Function in SQL (163)
  • Tense Changes When Using Reported Speech (160)

Recent Posts

  • How to check for ‘IS NOT NULL’ And ‘IS NOT EMPTY’ string in SQL
  • How to auto-scroll or manually to end of div when data is added
  • Filter Rows By Max Date in SQL
  • How to Validate a DateTime in C#?
  • Convert comma separated string into a List in C#
  • Converting a List to a comma separated string in C#
  • How to add placeholder to Multiple Selection DropDownList in Asp.Net MVC
  • How to use toFixed() for Float numbers in Javascript
  • Convert List to List in one line in C#
  • How to use column search in datatable when responsive is false

Recent Posts

  • How to check for ‘IS NOT NULL’ And ‘IS NOT EMPTY’ string in SQL
  • How to auto-scroll or manually to end of div when data is added
  • Filter Rows By Max Date in SQL
  • How to Validate a DateTime in C#?
  • Convert comma separated string into a List in C#

Most Viewed Posts

  • Get the First and Last Word from a String or Sentence in SQL (243)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (194)
  • How to make some specific word(s) Bold or Underline in ReportViewer (187)
  • How to solve “Response.Redirect cannot be called in a Page callback” for DevExpress Components (183)
  • Confirm before process with ASPxButton in Devexpress (172)

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter

powered by XBlog Plus WordPress Theme