Welcome! Log In Create A New Profile

Advanced

edit.php and delete.php

Posted by 46115307 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
edit.php and delete.php
May 16, 2013 06:08PM
Why have pages edit.php, delete.php when this data can be added to list_players.php which keeps web pages down to a minimum? May these be added to list_players.php ?

Regards
avatar
Mac
Re: edit.php and delete.php
May 17, 2013 09:04AM
I do not expect everyone to be able to manage this, therefore the two pages. If you want to go that route (which IS better), then great!
Re: edit.php and delete.php
May 17, 2013 02:36PM
Thanks for the quick reply
Re: edit.php and delete.php
May 20, 2013 02:11AM
Hi Mac, fellow students,
I have spent whole night and I still cannot get this only one function to work.

$pid = $_GET["id"];
$answer = $_POST["confirmation"];

if ($answer == "yes" && $pid > "0"winking smiley {

# Delete player from `playerRegistration` table
$query = "DELETE FROM 'playerRegistration'
WHERE 'player_id' = '$pid'";
mysql_query($query);

PLEASE HELP
avatar
Mac
Re: edit.php and delete.php
May 20, 2013 08:39AM
I will not respond because you do not follow instructions about posting code.
Re: edit.php and delete.php
January 28, 2014 03:04PM
Hi Mac And Fellow Students ,

in the list_players.php code ,there is a delete link which allows you to confirm deletion by clicking either yes or no,i have tried that but my code did not work ,here is my code below
,how do i make sure that my data is deleted when YES is clicked ?

how do i declare variables in such a way that delete is equal to absolute ?

Language: PHP
echo "Are you sure you want to delete player number $id?<a href = delete1.php?delete = absolutely& player_id = $id>Yes</a>&nbsp; &nbsp;<a href = fixtures1.php>No</a><br>";
avatar Re: edit.php and delete.php
February 17, 2014 09:47PM
Rather post your quesries in the 2014 forum.

Remove the spaces within the <a href""> part of the statement.
You also need to rearrange the inverted commas - href also needs to be in inverted commas.
Sorry, only registered users may post in this forum.

Click here to login