Monday, June 2, 2008

I m so fed up with sessions. The exact same code will not work on certain version and work on certain version of php. To me- sessions dont seem very reliable.

What do u guys think of something like this?

Whenever user logs in:
mysql_query("UPDATE members SET session= online WHERE username= $username AND password= $password ");

whenever user logs out
mysql_query("UPDATE members SET session= offline WHERE username= $username AND password= $password ");

input will be appreciated

Is there a way so you can design an entire website using a database- php- mysql- etc... offline and then upload to a server. I know you can make a web design but not database features. Is there a way?

I was told to Create table "user_online" in mysql in database "test" at http://www.phpeasystep.com/phptu/9.html- and i have no idea how to create a table.
I HAVE MYSQL

i have a php code that pulls data from mySQL and display it in a table. I created a <div id="myTable> before the code starts and a </div> after it but shows no CSS results when i style the table s baclground- #myTable {background: blue;}.

what is the problem?
hi floppy:

just rechecked- no didnt forget. here it is:

<div id="myTable">

php code to print table

</div>

am i missing some parts?
<style type="text/css">

#myTable { background: blue}

</style>
Sakui- that worked- how strange. you must have blessed it with some spirit :-)

i know blue is too strong- so i went with your favorite. not bad. I actually went for blue just for a test as if i had to do other color i would have to search for its #.... number- felt lazy :-)

could have gone for red :-)

Can someone write me a php script that takes information from a database table (1 table) and only 1 field from that table (I am using mySQL) and puts the information in a drop down box. Furthermore can you also write me a script that once you log out of the website you can t go back but have to log in again?
Hopefully someone is very helpful. Thank you.

No comments: