Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
PHP / MySQL Retrieve one record
Name: suspect52732 Date: August 20, 2007 at 19:50:28 Pacific OS: XP CPU/Ram: 2.4/512
Comment:
I am tring to get one single cell from a database. The primary key is username. I want to store the single cell in a variable called $charity. The code below seems to work. However, this outputs to the screen the answer. I want to store the answer in a variable.
$query="SELECT charity FROM `users` WHERE username='$username'"; $result=mysql_query($query); $row = mysql_fetch_assoc($result); echo $row['charity'];
Summary: I have an issue that seems like it could be resolved by sql code or query. I have a simple, one table access database (contactfirstname, contactlastname, address, city, state, zip). I have many situat...
Summary: Hi everyone. Currently, I'm learning PHP/MySQL by writing a script for a simple blog. I need advice/opinion from anyone experience working with MySQL regarding my decision of storage engine and field ...
Summary: suppose in my site i'm getting 1 million query in a second and database is mysql so it may cause a problem to hang up the server ... how i avoid this thing ...