Having a problem with the addition of dynamic table in Dreamweaver CS6 with MySQL

Hello, I am new get here. So my question is this:

I have sccesfully has created a MySQL user table and a register and Login Page and the Page count of the user can update his information etc etc. But my problem is this, I created another table in MySQL, which the user can add his cars (brand, model and year of manufacture) and I've linked this table to the table user with a foreign key using user name as primary key for table use and as a foreign key to the table of cars. My question is how to display the data for each user so that each user will be able to see its records in this table. Every help is appreciated.

Thank you for your time and help!

I think it works, simply change to the highlighted

$colname_CarUsers = "-1";

If (isset($_SESSION['MM_Username'])) {}

$colname_CarUsers = [["" UserID""]]; $row_User

}

@mysql_select_db ($database_MyCOnnection, $MyCOnnection);

$query_CarUsers = sprintf ("" SELECT * FROM cars WHERE UserID = %s ORDER BY ASC CarBrand ", GetSQLValueString ($colname_CarUsers,"int")");

$query_limit_CarUsers = sprintf ("%s LIMIT %d, %d", $query_CarUsers, $startRow_CarUsers, $maxRows_CarUsers);

$CarUsers = mysql_query ($query_limit_CarUsers, $MyCOnnection) or die (mysql_error ());

$row_CarUsers = mysql_fetch_assoc ($CarUsers);

Tags: Dreamweaver

Similar Questions

Maybe you are looking for

  • New tab reset does not

    I have a hijacking my new tab search engine and tried to go in the About: config, but every time I try and change the browser.newtab.url that will not change. Can someone help me solve this problem, I suspect that it is malware.

  • Extension Auto - Lock 5 min <>never - iPhone

    No option in the list more than 5 minutes, but less than ever.  All work around available? David

  • Upgrade of RAM Maximum X230t

    I have a Tablet Lenovo X 230 (Type 3434) with 4 GB of RAM with a processor Intel Core i7 - 3520 M with the original intention to upgrade the RAM at a later date (it is two years now). He currently runs two operating systems: Linux Mint 17 and Windows

  • I need help my pc does not connect to the internet after installing updates

    My internet does not work after you install the updates so I uninstall and they work fine. It happens all the time as I paid for the program and downloaded on my PC and they need to access the internet at work and when I click on it it say failed to

  • How to fix a missing password.

    I tried to add a password for the only account on my Vista desktop. After you submit the change, I realized that I had forgotten an indication of password. I tried to 'change' the password to the same password by using the password that I had just cr