Jump to content

ManOnScooter

Members
  • Posts

    32
  • Joined

  • Last visited

    Never

Everything posted by ManOnScooter

  1. I get just 1 value for the select query... I just want to display the returned value Where did i go wrong ?? <?php $con = mysql_connect("localhost","root","administrator"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("test", $con); $result = mysql_query("SELECT details FROM test where first_name like "%Scooter%""); $row = mysql_fetch_row($result); echo $row; mysql_close($con); ?>
  2. thorpe, Guess i dint get you rite maybe... would you have any sample code to explain?? Man On Scooter!!
  3. Thorpe, The idea of a simple query to the database would be fine if any action/event was taken on the index.php page. But, here the only event is onLoad() (javascript), no other event.. Only the Page is being loaded.. Man On Scooter!!!
  4. Is it the same XMLHTTP server thing?? I duno, it sounds kinda complex... is it complex or do you think there is an easier way??
  5. Hi, I have this unique problem, ok, lemme get into the history.. When any user connected to the mainpage(index.php) page of the application, he should should see all the number of users logged on to the application and login-IDs. Now I understand I cant have the javascript onLoad function to call any PHP method, so what can i do to make the database connection and read data from the database and display even before any action is taken. i.e. any onLoad or similar function?? So the objective here is as follows.. As soon as the user is on the mainpage(index.php) the php page should read data from database and display on the index.php page. Any suggestion?? Regards, Man On Scooter!!
×
×
  • 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.