A PHP Error was encountered

Severity: Warning

Message: fopen(/var/lib/php/sessions/ci_sessionc20166e5f53b363ae8305118de861c74bed2b25c): failed to open stream: No space left on device

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:

File: /var/www/prijm.com/public/application/core/Prijom_Controller.php
Line: 6
Function: __construct

File: /var/www/prijm.com/public/application/controllers/Discussion.php
Line: 11
Function: __construct

File: /var/www/prijm.com/public/index.php
Line: 292
Function: require_once

hello i am new in php. i want to save a combined data like (id+name) in a same table different field in phpmysql. plz help me. #askrakibtg

join the prijm community

prijm is a community of people, just like you helping each other.
join them, it only takes a minute :)
1 1
1 reply and 0 comment

Hello @Risa2017

I would be so glad to help you, please tell me about your project, exactly which part you can't understand and if you  are facing some error.

Here is some basic ideas:

1) Design a HTML form that accept user name.

2) Post that request to a php file for example (save_data.php)

Example:

   
 <form action="save-data.php" method="post">
        <input type="text" name="username"><br>  
        <input type="submit" value="Submit"><br>
    </form>
xxxxxxxxxxxxxxxxxxxxxx

3) Get the user submitted data in your specified php file

Example:

<?php 
  if( isset( $_POST[ 'username' ] ) ) {
    $username = $_POST[ 'username' ];
    // now insert data in database
  }
?>

4) Design the database and insert using MySQLi method.

please login or signup to reply
post a reply
discussion resolution do more with this discussion
followed by 1 user added by 0 user save this discussion to reply later make this discussion anonymous
discussion stats
views: 1309
replies: 1
favorites: 1
follower: 1
saved: 0
comments: 0

A PHP Error was encountered

Severity: Warning

Message: rewind() expects parameter 1 to be resource, boolean given

Filename: drivers/Session_files_driver.php

Line Number: 188

Backtrace:

A PHP Error was encountered

Severity: Warning

Message: filesize(): stat failed for /var/lib/php/sessions/ci_sessionc20166e5f53b363ae8305118de861c74bed2b25c

Filename: drivers/Session_files_driver.php

Line Number: 192

Backtrace: