Show all posts by user
Internet Programming
Page 1 of 1 Pages: 1
Results 1 — 7 of 7
Mac the problem is that when I click on the edit link in the list_players page, the edit form comes up empty as if there are no records the database.
And the echo statement output "Number of rows: 0. Question is why zero rows when there is data in the database
Language: PHP//get value of id
$player_id = $_GET[';player_id';];
//update data in database
$query = "UPDATE p
by
Rufus Satekge
-
ICT2613 Sem 1
Ok. Here is the list script
Language: PHP$query = "SELECT * FROM playerinfo";
$result = mysql_query($query)
or die("Query failed: ".mysql_error());
echo"<table border=';1';><tr bground=';#CCCCCC';><td>Name</td><td>Surname</td><td>Contact number</td><td>Email</td><td>Positio
by
Rufus Satekge
-
ICT2613 Sem 1
The things is, all this problems started after I inserted the following lines of code to suppress the undefined notices
Language: PHP<?php ini_set( ';error_reporting';, E_ALL ^ E_NOTICE );?>
<?php ini_set( ';display_errors';, ';0'; );?>
by
Rufus Satekge
-
ICT2613 Sem 1
Hi
My edit script is not extracting any value when I open it in the list script. The form pops up blank
Please Help
Language: PHP//get value of id
$player_id = $_GET[';player_id';];
//update data in database
$query = "UPDATE playerinfo SET name = ';$name';, surname = ';$surname';, contactnumber = ';$contactnumber';, email = ';$email';, position = ';$position';, username = ';$
by
Rufus Satekge
-
ICT2613 Sem 1
Hi
I have a problem with my insert script. Every time I insert a player into the database, three players are inserted, but two of them are blank...
Language: PHP$query = "INSERT INTO playerinfo(name,surname,contactnumber,email,position,username,password) VALUES (';".$_POST[';name';]."';, ';".$_POST[';surname';]."';, ';".$_POST[';contactnumber'
by
Rufus Satekge
-
ICT2613 Sem 1
Language: PHPsession_start();
$name = $_POST[';name';]
$surname = $_POST[';surname';];
$contact = $_POST[';contact_number';];
$email = $_POST[';email';];
$position = $_POST[';position';];
$username = $_POST[';username';];
$pssword = $_POST[';password';];
$query = "INSERT INTO playerinfo(name,surname,contact number,
by
Rufus Satekge
-
ICT2613 Sem 1
Hello...Mac
I am experiencing a problem with the login page. Everytime I run the code I get the following errors:
php print $errorMessage variable undefined and Fetal error: Call to function quote_smart undefined
<?PHP print $errorMessage;?>
<?php
include('connect.php'//connection details to the database in a connect.php page
$username = "";
$password = &
by
Rufus Satekge
-
ICT2613