![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am in the process of updating my static site to dynamic pages using php and SQL. I have set up my sql database, made the tables and imported all the data using a .txt file. I have set up a testing server connection in dreamweaver and it now connects to my database and can see the tables i have made. Now i'm stuck....How do i tell the page that i want it to get a specific piece of data from the table and display it in the right place? Sorry for my ignorance, but i have never done anything with static pages before. Help please. Thanks Steve Very simply, you have to make a database connection - a script that |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
I have already got the connection to my database. I am just having problems with entering the correct php code to get the details off the database. I tried <?php SELECT '*' FROM 'product' WHERE 'catalogid' = '1101'; ?> but get the error message Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/html/TMPf1qlpeog8.php on line 10 |
#5
| |||
| |||
|
|
I have already got the connection to my database. I am just having problems with entering the correct php code to get the details off the database. I tried ?php SELECT '*' FROM 'product' WHERE 'catalogid' = '1101'; ?> but get the error message Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/html/TMPf1qlpeog8.php on line 10 Can you tell me where i have gone wrong? Actually, that looks like a pretty simple query. But I don't think you |
![]() |
| Thread Tools | |
| Display Modes | |
| |