Jump to content

PHP Array File


Nnaut

Recommended Posts

You need to provide us with more information. Where abouts does the update and delete code live? What are "entire entries"? Has anything changed recently that might explain why some code has randomly stopped working? We're happy to help you but you need to meet us half way.

Link to comment
Share on other sites

Okay, im sorta a noob with Php or Coding in general

 

Im using Server2Go

 

Basically, When i click on form name.html, it brings me to a fill out form. Once that is completed, a database is shown, showing all entries

 

Now when i come to click on Delete on that row, it deletes the entire database

 

When i click on Update, it takes me back to form name.php, in which i can edit information

Once done, you then clcik on Add, and the edited data then shows up.

 

But the problem is that it doesnt and i want to know why the Update and Delete dont work properly

 

So if you see any coding errors please tell me PLEASEE

Link to comment
Share on other sites

I think amend to file not write to file

txt_fns.php

function writeTable

 

$fp = @fopen($tablename, "w");
fwrite($fp, $output, strlen($output));
fclose($fp);
}

 

So should be

$fp = @fopen($tablename, "a+");
fwrite($fp, $output, strlen($output));
fclose($fp);
}

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.