Search results

  1. W

    I need to change the format of a date in PHP. Can you show me how?

    In my PHP code I return the date a user received a private message on their account. The date doesn't look visually appealing and I hear there are different ways to output the date. Here is the line of code that needs changing: echo "Received on:" . $rowA['Date'] . "<br /><br />"; I would...
  2. W

    PHP when someone opens the page, i want a simple database update to occur. Can you help?

    When a user loads a page, I would like a simple database update to occur, but am unsure how. Can you help me. I need this to happen: I want to UPDATE the MAIL table, and change the STATUS to NULL WHERE ID = 7.
  3. W

    PHP - How can I count the number of rows in table and echo the result to the web page?

    I am telling the user how many messages in their inbox are new, but don't know how to count the table rows and output the results. The details needed are shown below. user id = $user and Status = 1 user id defines which user to look up, and the 1 indicates the message is new. Both values must...
  4. W

    PHP - How can I count the number of rows in table and echo the result to the web page?

    I am telling the user how many messages in their inbox are new, but don't know how to count the table rows and output the results. The details needed are shown below. user id = $user and Status = 1 user id defines which user to look up, and the 1 indicates the message is new. Both values must...
  5. W

    PHP - Stuck on how to withdraw particular information from database.?

    I have this statement to pull back all information from my database. Select * from news; Within those results I want to say how many comments are held on each news item, but I'm not sure how. At the moment I manage to get the total number of comments held for ALL news entries, but not for each...
  6. W

    PHP - How do I total the number of rows within a database table?

    I have a table named 'comments', and I would like to use PHP to return to the browser how many comments are already stored within the database. Can you help me with this? Thanks!
  7. W

    PHP - How do I total the number of rows within a database table?

    I have a table named 'comments', and I would like to use PHP to return to the browser how many comments are already stored within the database. Can you help me with this? Thanks!
  8. W

    How do I retrieve form values when using check boxes? HTML/PHP?

    I have a form that submits to another page as per usual. How do i read the values checked in the previous page? Here is a simplified version of my code: <form action="availability.php" method="post"> <input type="checkbox" name="sat7-9" value="sat7-9" /> <input type="checkbox" name="sun9-11"...
  9. W

    HTML dropdown list. How can I create an 'any' option to search all values?

    I have a form with drop down options. The form works fine, but you must make a selection in order to find results. How can I add an 'any' value into some of the dropdowns to search all data?
  10. W

    Should I be using an API and Flash in order to stream media on my website?

    I have a site where some pages contain streaming media. My question is how do I stream media from my server folders to the browser. Someone suggested API and Flash, but I'm unsure how to go bout this. Advice?
  11. W

    Why do I get this PHP error?

    top of coding i have this: $q = "SELECT * FROM property WHERE Prop_beds = '$Prop_beds' AND Prop_type = '$Prop_type' AND Prop_location = '$Prop_location'"; Then this part is reporting an error: while($row = mysql_fetch_array($q)) What am I doing wrong?
  12. W

    use dropdown to query database and return the results in SQL?

    How do I use a drop down list to query a database table? I want users to be able to search Prop_type and have the results returned to them. Hellllppp!
  13. W

    PHP WIZZ REQUIRED - Here's my code...?

    My session is like this right now: if (isset($_SESSION['Seller_firstname'])) { echo ", {$_SESSION['Seller_firstname']}!"; } I need to change the session into a $name type variable so I can use it in other ways. Show me how?
  14. W

    PHP - upload image to folder, save image address in database?

    I have a website that uploads images to a folder. Howver, I need the address of the uploaded file to be placed into a database. Can you advise me how, or point me in the right direction? Thanks!
  15. W

    Using PHP to grey out calander dates if the database table says they are unavailable?

    I am making a website and it must have an availability calander on it. Availability is stored within a database and I need to know how to grey out dates that and unavailable. Can anyone point me in the right direction with this?
  16. W

    Using PHP to grey out calander dates if the database table says they are unavailable?

    I am making a website and it must have an availability calander on it. Availability is stored within a database and I need to know how to grey out dates that and unavailable. Can anyone point me in the right direction with this?
  17. W

    php calendar, greying out days that someone is unavailable based on database table?

    I have a php calendar but i need to grey out the days a user is unavailable that are defined in a database? Anyone know how, or point me in the right direction?
  18. W

    IF statements in PHP - a little help, it's easy if you know how!?

    I have a user login using databases and PHP. There are 3 tiers of users, each tier has different options after they login. Some have few links, and some many more. My IF statement works well for this. If user = tier 1 then give these links. else give these links. because IF statements say...
  19. W

    Simple database/php question. Return database items on new lines?

    I have some code that returns information frommy database side by side like this. Name Content But i would rather it be returned underneath each other like this: Name Content At current my code is like this: $num_rows = mysql_num_rows($result); print "<table width=100% border=0>\n"...
  20. W

    Simple database/php question. Return database items on new lines?

    I have some code that returns information frommy database side by side like this. Name Content But i would rather it be returned underneath each other like this: Name Content At current my code is like this: $num_rows = mysql_num_rows($result); print "<table width=100% border=0>\n"...
Back
Top