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

Linux, Apache, MySQL, PHP

 
QuestionChat functionality is not working when SSL is involved Pin
Member 135528281-Dec-17 17:15
MemberMember 135528281-Dec-17 17:15 
AnswerRe: Chat functionality is not working when SSL is involved Pin
jschell5-Dec-17 12:29
Memberjschell5-Dec-17 12:29 
QuestionPHP: using Facebook login SDK returned an error: No URL set! Pin
iucaa19-Nov-17 22:53
Memberiucaa19-Nov-17 22:53 
QuestionPHP Getting Data From Javascript Pin
Valecia_cho23-Oct-17 13:48
MemberValecia_cho23-Oct-17 13:48 
AnswerRe: PHP Getting Data From Javascript Pin
Richard Deeming24-Oct-17 2:08
mveRichard Deeming24-Oct-17 2:08 
QuestionHow do I Attach acrobat pdf page to email in codeigniter? Pin
Member 1347022217-Oct-17 4:13
MemberMember 1347022217-Oct-17 4:13 
SuggestionRe: TLDR Pin
Richard Deeming17-Oct-17 4:31
mveRichard Deeming17-Oct-17 4:31 
QuestionThinkphp 5.0 query table how the array of how to get rid of a column? And then save it to another table? Pin
micccn13-Oct-17 23:37
Membermicccn13-Oct-17 23:37 
Ask about, like this tp5 query table results array
$ data_play array value tracking:
app \ common \ model \ Player :: __ set_state (array (
   'auto' =>
  array
  ),
   'update' =>
  array
  ),
   'connection' =>
  array
  ),
   'parent' => NULL,
   'query' => NULL,
   'name' => 'Player',
   'table' => NULL,
   'class' => 'app \\ common \\ model \\ Player'
   'error' => NULL,
   'validate' => NULL,
   'pk' => NULL,
   'field' =>
  array
  ),
   'readonly' =>
  array
  ),
   'visible' =>
  array
  ),
   'hidden' =>
  array
  ),
   'append' =>
  array
  ),
   'data' =>
  array
    'id' => 1,
    'lastip' => '25 .36.21.2 ',
    'regdate' => '2017-10-10 11:01:52',
    'phone' => '1526564161',
    'head' => '123',
    'meili' => 888,
    'jifen' => 888,
    'jushu' => 99,
    'shenglv' => 60,
    'xingyundou' => 8000,
    'xingzuan' => 6,
    'level' => 'LV1',
    'hua' => 200,
    'email' => NULL,
    'logintime' => '2017-10-09 11:26:47',
    'logouttime' => '2017-10-08 11:38:42',
    'logincount' => 0,
    'hei' => 0,
    'red' => 1,
    'oldid' => 'bj1',
  ),
   'origin' =>
  array
    'id' => 1,
    'lastip' => '25 .36.21.2 ',
    'regdate' => '2017-10-10 11:01:52',
    'phone' => '1526564161',
    'head' => '123',
    'meili' => 888,
    'jifen' => 888,
    'jushu' => 99,
    'shenglv' => 60,
    'xingyundou' => 8000,
    'xingzuan' => 6,
    'level' => 'LV1',
    'hua' => 200,
    'email' => NULL,
    'logintime' => '2017-10-09 11:26:47',
    'logouttime' => '2017-10-08 11:38:42',
    'logincount' => 0,
    'hei' => 0,
    'red' => 1,
  ),
   'relation' =>
  array
  ),
   'insert' =>
  array
  ),
   'autoWriteTimestamp' => false,
   'createTime' => 'create_time',
   'updateTime' => 'update_time',
   'dateFormat' => 'Y-m-d H: i: s',
   'type' =>
  array
  ),
   'isUpdate' => true,
   'updateWhere' =>
  array
    0 =>
    array
      0 => 'exp',
      1 => 'id = 1',
    ),
  ),
   'failException' => false,
   'useGlobalScope' => true,
   'batchValidate' => false,
   'resultSetType' => 'array',
   'relationWrite' => NULL,
))
How to remove one of the columns? And then save it to another table?
array_splice ($ data, 0, 1); This does not work because the array is not a simple array.
$ w = new \ app \ common \ model \ W;
$ w-> insert ($ data);
Please educated us, thank you!

The following statement will not work! depressed!

$ data = array ();
$ data = $ data_play [0] ['data'];

$ data = array ();
$ data = $ data_play ['data'];

How can I not output this result?

$ data = Db :: table ('tb_p') -> where ('id = 8') -> select ();
 file_put_contents ("log.txt", "data:", FILE_APPEND);
 file_put_contents ("log.txt", var_export ($ data, true), FILE_APPEND);

$ data = Db :: name ('tb_p') -> where ('id = 8') -> select ();
Why is this? Please educated us!

$ data_player = $ p-> where ("id = $ id") -> find ();
foreach ($ data_player as $ d => $ v) {
    file_put_contents ("log.txt", 'd:'. $ d. 'v:'. $ v, FILE_APPEND);
...

Strange, log.txt did not output anything. After tracking, $ data_player is content, the content is the beginning of those content. What's going on?

foreach ($ data_player as $ d => $ v) {
    file_put_contents ("log.txt", 'd:', FILE_APPEND);
    file_put_contents ("log.txt", $ d, FILE_APPEND);
    file_put_contents ("log.txt", 'v:', FILE_APPEND);
    file_put_contents ("log.txt", $ v, FILE_APPEND);

Write this or what did not print out!

Please educated us!
Questionhelp me on my php script Pin
horlartech8-Sep-17 12:03
Memberhorlartech8-Sep-17 12:03 
SuggestionRe: help me on my php script Pin
Richard MacCutchan8-Sep-17 19:24
mveRichard MacCutchan8-Sep-17 19:24 
GeneralRe: help me on my php script Pin
horlartech10-Sep-17 2:39
Memberhorlartech10-Sep-17 2:39 
GeneralRe: help me on my php script Pin
horlartech10-Sep-17 2:49
Memberhorlartech10-Sep-17 2:49 
QuestionRe: help me on my php script Pin
Richard MacCutchan10-Sep-17 4:17
mveRichard MacCutchan10-Sep-17 4:17 
QuestionCall to a member function prepare() on a non-object Pin
Igoussam28-Aug-17 10:56
MemberIgoussam28-Aug-17 10:56 
AnswerRe: Call to a member function prepare() on a non-object Pin
Richard MacCutchan28-Aug-17 21:36
mveRichard MacCutchan28-Aug-17 21:36 
Questionhow to get hard disk Serial Number using php on server side Pin
Lakshmanan Duraisamy26-Jul-17 23:15
MemberLakshmanan Duraisamy26-Jul-17 23:15 
AnswerRe: how to get hard disk Serial Number using php on server side Pin
Richard MacCutchan26-Jul-17 23:35
mveRichard MacCutchan26-Jul-17 23:35 
AnswerRe: how to get hard disk Serial Number using php on server side Pin
Jochen Arndt27-Jul-17 0:09
professionalJochen Arndt27-Jul-17 0:09 
SuggestionRe: how to get hard disk Serial Number using php on server side Pin
Richard Deeming27-Jul-17 1:31
mveRichard Deeming27-Jul-17 1:31 
QuestionPHP connecting to vb.Net Pin
Member 1296881918-Jul-17 19:48
MemberMember 1296881918-Jul-17 19:48 
AnswerRe: PHP connecting to vb.Net Pin
Richard MacCutchan18-Jul-17 20:49
mveRichard MacCutchan18-Jul-17 20:49 
QuestionTrying to create a secure login script, just have a few questions. Pin
BlackMagix14-May-17 4:40
MemberBlackMagix14-May-17 4:40 
AnswerRe: Trying to create a secure login script, just have a few questions. Pin
Superolmo10-Jul-17 9:09
MemberSuperolmo10-Jul-17 9:09 
QuestionSorting array and adding position numbers while/after sorting Pin
Member 131868238-May-17 4:15
MemberMember 131868238-May-17 4:15 
QuestionHelp Pin
Member 1302311826-Apr-17 3:40
MemberMember 1302311826-Apr-17 3:40 

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.