Jump to content

data retrival 2


dbomb101

Recommended Posts

sorry about reposting the same question, but upon some info digging myself i realized that my page does indeed refresh on the upon the pressing of the submit button as the page sends the iformation to itself, and the information but despite other changes made page upon refresh i.e button movement, a message being displayed published on the page itself it still gives the same old info till it is refreshed again

 

here is a link to the site

 

http://stuweb.cms.gre.ac.uk/~dd615/index.php

 

username draze101

password shannen

 

this is how the page gets the information

 

require('query.php');

$details="select * from tutordetails WHERE p_id='".$_SESSION['id']."'";

$result=getQuery($details,$l);

while($row = mysql_fetch_assoc($result))

  {

  $_SESSION['forename']=$row['forename'];

  $_SESSION['surname']=$row['surname'];

  $_SESSION['postcode']=$row['postcode'];

  $_SESSION['telephone']=$row['telephone'];

  $_SESSION['hideemail']=$row['hideemail'];

  $_SESSION['aboutme']=$row['aboutme'];

  }

 

sorry to be such a twatish pain  :P

Link to comment
https://forums.phpfreaks.com/topic/174941-data-retrival-2/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.