Search results

  1. S

    How to get user id using php at a page added by ajax ?

    I can get the id of that user which profile I'm visiting. If I'm at the user's profile page who's id is 3 http://localhost/post/profile.php?id=3 I can get all information of the user 3. But on the same page I use some ajax and link it to another php file. How can I get that user id on that...
  2. S

    How to update a specific row in a mysql table using php ?

    I'm trying to make a user friend request system in php. I made a table in " friends " in mysql with these fields iduser_idfriend_idstatusdate id = auto increment user_id = friend request receiver id friend_id = friend request sender id status = 0 (by default and should be UPDATE with 1 at...
  3. S

    How to set a text automatic line break in php html ?

    I'm making a Private Messaging System in php. It is working nicely but the problem is when the Subject or Body of the message is too long, it disturb the css formatting of page. I want that when subject is too long it should be shown some words and after that some dots just like yahoo mail. For...
  4. S

    How to fix php error Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given ?

    I'm following a tutorial on php private messaging system. On pm.inbox.php , I'm facing these errors. Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\post\includes\pm_inbox.php on line 48 Warning: mysql_fetch_array() expects parameter 1 to be...
  5. S

    How to fix php error?

    I'm following a private messaging system tutorial. In the inbox page I have a script to delete messages. But when I click on delete button after selecting a message to delete, it takes a while and after that a windows error appears "Apache HTTP Server Apache HTTP Server has encountered a...
  6. S

    how to upload my contact onto the internet using boost mobile?

    im trying to back my boost mobile samsung phone contact onto my pc
  7. S

    How to fix these php errors ?

    I'm trying to make php user profile view system. I have these two scripts. members.php <?php session_start(); mysql_connect("localhost","root",""); mysql_select_db("mydatabase"); $Members = mysql_query(" SELECT email FROM users") or die(mysql_error()); $numRowsMembers =...
  8. S

    Why Gold Price is Rising & How is it linked to the Financial Crisis ?

    Now we all know that the price of gold is climbing but I wanted to know the exact reasons for such an increase, does the financial crisis caused it if yes then why Gold, why not something else ? I appreciate you're help , thank you
  9. S

    How to solve php data retrieving/getting problem from mysql?

    I'm making a user based website useing php mysql. I have users data in mysql tables. When i try to get/display data on page using this script, it works pretty good. <?php $connect = mysql_connect("localhost","root",""); mysql_select_db("mydatabase"); $email = isset($_SESSION['email'])...
  10. S

    How to show image from MYSQL data using PHP?

    I have user data in MYSQL database and I want to show user's image from "images" table. I have this script but it says "user not found" while I have user's data in images table. <?php $error = "Unable to Connect."; $connect = mysql_connect("localhost","root","") or die ($error)...
  11. S

    How to check correct email address for user registration in PHP?

    I'm making a member base website. For user registration, I've made a scrip. Code is here. <?php $submit = (isset($_POST['submit'])) ? $_POST['submit'] : ''; $firstname = strip_tags((isset($_POST['firstname'])) ? $_POST['firstname'] : ''); $lastname = strip_tags((isset($_POST['lastname'])) ...
  12. S

    Notice: Undefined index: albumdescription in C:\wamp\www\createalbum.php on line 12?

    I am making picture albums site. In this site, user enters the name of album first then description at very next page. Name of the album works good but then when user goes on description page this line appears on page Notice: Undefined index: albumdescription in C:\wamp\www\createalbum.php on...
  13. S

    Warning: mysql_fetch_assoc() expects parameter 1 to be resource, integer given in

    C:\wamp\www\login.php ? Warning: mysql_fetch_assoc() expects parameter 1 to be resource, integer given in C:\wamp\www\login.php on line 21 login.php code here <?php session_start(); $email = $user = (isset($_POST['email'])) ? $_POST['email'] : ''; $password = $user =...
  14. S

    How to make add friends system in php mysql?

    I want a tutorial on how to make friend request and add friends system using php mysql. Anyone tell me if know about any tutorial? Thanks in advance.
  15. S

    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given

    in C:\wamp\www\view.php on line 8.? view.php <?php include("connect.php"); $email = $_SESSION['email']; $query = mysql_query("SELECT FROM users WHERE email = '$email' "); if(mysql_num_rows($query)==0) die ("User not found!"); else { $row = mysql_fetch_assoc($query); echo...
  16. S

    How to make the variable of current logged in user's id in php?

    How to make the variable of current user's id to update data in the row exactly against the current logged in user's id?
  17. S

    How can I select in php the id which is logged in?

    I made a user registration page in HTML and PHP. The data of user registration(id auto increment and other information) stores in mysql table called "users". I also have another table called "profile". When user get registered, the id of user also goes into "profile" id field. The "profile"...
  18. S

    How can I INSERT data in two or more tables in mysql using single query in php?

    Hi all. I have two tables in mysql database. Database Name: "mydatabase" Table1 Name: "users" Table2 Name: "profile" In "users" Table I have these fields. id firstname lastname email password sex dob date In "profile" Table I have these fields id firstname lastname sex dob city country Now...
  19. S

    How to INSERT mysql data in multiple tables using one php command?

    I have two tables "users" and "profile" in my "registration" database. I want that when user click register, the email of user should go in both tables("users"and"profile"). i have these fields in "users" table: id firstname lastname email password sex dob date "profile" table id...
  20. S

    I want to redirect my website users to member.php page right after logged in.How

    can I code it? I want to redirect my website users to member.php page right after logged in.How can I code it? HTML SYNTAX FROM INDEX.PHP <html> <form id='para' action='login.php' method='POST'> <table> <tr> <td><p> <p> Email<br> <input name='email' type='text' size="20" /> </td> <td><p> <p>...
Back
Top