Click here to Skip to main content
15,885,141 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: How To Find 'DOES NOT CONTAIN' or 'DOES CONTAIN' in Php ? Pin
Richard MacCutchan9-Apr-23 22:20
mveRichard MacCutchan9-Apr-23 22:20 
QuestionHow To Order By Adding Columns Values In SQL? Pin
Member 159745539-Apr-23 10:25
Member 159745539-Apr-23 10:25 
AnswerRe: How To Order By Adding Columns Values In SQL? Pin
jschell10-Apr-23 5:57
jschell10-Apr-23 5:57 
GeneralRe: How To Order By Adding Columns Values In SQL? Pin
Member 1597455310-Apr-23 6:35
Member 1597455310-Apr-23 6:35 
GeneralRe: How To Order By Adding Columns Values In SQL? Pin
jschell11-Apr-23 4:36
jschell11-Apr-23 4:36 
QuestionOnly few Errors left before Upgrading to PHP 8.1 Pin
Aruna KN8-Apr-23 6:40
Aruna KN8-Apr-23 6:40 
QuestionPHP isset for an Array Pin
Aruna KN6-Apr-23 4:51
Aruna KN6-Apr-23 4:51 
AnswerRe: PHP isset for an Array Pin
Richard MacCutchan6-Apr-23 6:06
mveRichard MacCutchan6-Apr-23 6:06 
The variable $sendid is not defined anywhere at module level, it is local to the following switch block:
PHP
switch (C_ID) {
  
  case '2':
    $sendid=$i['email'];
  break;
  default: 
    $sendid=$id;
  break;
  }

So once that block ends the variable no longer exists. Change it to something like:
PHP
$sendid = '';
switch (C_ID) {
  global $sendid; // tell switch to use the global variable
  case '2':
    $sendid=$i['email'];
  break;
  default: 
    $sendid=$id;
  break;
  }

You may like to review PHP: Variable scope - Manual[^].
GeneralRe: PHP isset for an Array Pin
Aruna KN8-Apr-23 5:06
Aruna KN8-Apr-23 5:06 
GeneralRe: PHP isset for an Array Pin
Richard MacCutchan8-Apr-23 5:09
mveRichard MacCutchan8-Apr-23 5:09 
GeneralRe: PHP isset for an Array Pin
Aruna KN8-Apr-23 5:19
Aruna KN8-Apr-23 5:19 
GeneralRe: PHP isset for an Array Pin
Aruna KN8-Apr-23 5:25
Aruna KN8-Apr-23 5:25 
GeneralRe: PHP isset for an Array Pin
Richard MacCutchan8-Apr-23 5:33
mveRichard MacCutchan8-Apr-23 5:33 
GeneralRe: PHP isset for an Array Pin
Aruna KN8-Apr-23 5:55
Aruna KN8-Apr-23 5:55 
QuestionPHP Warning: Undefined variable $conn Pin
Aruna KN3-Apr-23 2:45
Aruna KN3-Apr-23 2:45 
AnswerRe: PHP Warning: Undefined variable $conn Pin
Richard MacCutchan3-Apr-23 2:50
mveRichard MacCutchan3-Apr-23 2:50 
GeneralRe: PHP Warning: Undefined variable $conn Pin
Aruna KN3-Apr-23 3:48
Aruna KN3-Apr-23 3:48 
QuestionPHP 8.1 Count issue Pin
Aruna KN30-Mar-23 0:06
Aruna KN30-Mar-23 0:06 
AnswerRe: PHP 8.1 Count issue Pin
Richard MacCutchan30-Mar-23 0:45
mveRichard MacCutchan30-Mar-23 0:45 
AnswerRe: PHP 8.1 Count issue Pin
Richard Deeming30-Mar-23 0:45
mveRichard Deeming30-Mar-23 0:45 
GeneralRe: PHP 8.1 Count issue Pin
Aruna KN30-Mar-23 1:38
Aruna KN30-Mar-23 1:38 
GeneralRe: PHP 8.1 Count issue Pin
Richard Deeming30-Mar-23 2:53
mveRichard Deeming30-Mar-23 2:53 
GeneralRe: PHP 8.1 Count issue Pin
Aruna KN30-Mar-23 3:21
Aruna KN30-Mar-23 3:21 
QuestionIf command triggering at wrong time with PHP 8.1 Pin
Aruna KN29-Mar-23 18:56
Aruna KN29-Mar-23 18:56 
AnswerRe: If command triggering at wrong time with PHP 8.1 Pin
Richard Deeming29-Mar-23 21:22
mveRichard Deeming29-Mar-23 21:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.