delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

How would I get this page(s) to display this data. How would I get the html/php etc code for the page to request the data from the database and display it how I want it to be displayed. I'm at a complete loss. I have a fair knowledge of html and little knowledge of php, the latter of which I believe is what I need?
Any help would be greatly appreciated.
Many Thanks! http://bbs.prog365.com/images/sites/smile.gif



Hi everyone!
I apologise if this is the wrong section for this topic. Please move it if so.
With that said, I have a query that I've been searching for online for ages and am hoping someone can help.
I have created a database in phpmyadmin, and I'll say right now that I have enough knowledge to navigate round that area.
Say that I have a blank page on a website. I want to build this page; and however many it takes, to display items for a shop (the items are in the database as a large set of data in the single table within the database.)
How would I get this page(s) to display this data. How would I get the html/php etc code for the page to request the data from the database and display it how I want it to be displayed. I'm at a complete loss. I have a fair knowledge of html and little knowledge of php, the latter of which I believe is what I need?
Any help would be greatly appreciated.
Many Thanks!

TOP

what determines what data to display? i.e., are you presenting a search form of some kind? or maybe a list of links etc?
regardless...you will use a script (preferably php) of some sort that will query the database then display the results...
more information is needed to help you with said script/query...
BTW...phpMyAdmin...will show you the "php" for queries you run from the interface...

TOP


  what determines what data to display? i.e., are you presenting a search form of some kind? or maybe a list of links etc?
regardless...you will use a script (preferably php) of some sort that will query the database then display the results...
more information is needed to help you with said script/query...
BTW...phpMyAdmin...will show you the "php" for queries you run from the interface...
I want to present it like this for example:
With an image (where the image link is specified in a column in the database), details about the product, price, name etc all formated on the website to look like any other retailer like such:
ht/tp://i222.photobucket.com/albums/dd204/XCPsy/example.jpg
(without the / in the http protocol.)
I know that this was taken from amazon and I'm not looking for anything that big, but with the same format for my data.
With the scripts that phpmyadmin provide.. where are they located.. and what do I do with them when I find them?
Many Thanks.

TOP


  you will use a script (preferably php) of some sort that will query the database
ok...? could you possibly elaborate on this statement with regard to the post above?
Many Thanks!

TOP

abstract:

How would I get this page(s) to display this data. How would I get the html/php etc code for the page to request the data from the database and display it how I want it to be displayed. I'm at a complete loss. I have a fair knowledge of html and little knowledge of php, the latter of which I believe is what I need?
Any help would be greatly appreciated.
Many Thanks! http://bbs.prog365.com/images/sites/smile.gif


OK...for starters...phpmyadmin does provide scripts...what it does is show you the php for a query. A query is SQL (not php)
What I suggest is finding an existing application (free) that is similar to what you're looking for...they will have everything you need including the database and the query/display scripts...
Even if you are not a php programmer you should be able to glean the concept...if you are just a so-so hack you should even be able to adapt an existing app to get you going...
try sites like 'hotscripts.com' (many free apps) or 'sourceforge' (mostly free open source)
by finding an existing application it will be much faster for you rather than the piece meal Q&A it would take to here...
Not trying to put you off...if you have some specific questions or code snippets you don't understand post away (that's what devshed is all about)
Good Luck

TOP

This is some sample code to get you going. To pull stuff out of the database you connect to the server/database. Query the database. Display the results.
PHP Code:
<?php
$dbservertype
=
'mysql'
;
$servername
=
'mysql.x.com'
;
$dbusername
=
'user'
;
$dbpassword
=
'password'
;
$dbname
=
'database_name'
;
$Conn
=
mysql_connect
(
$servername
,
$dbusername
,
$dbpassword
,
true
);
mysql_select_db
(
$dbname
,
$Conn
);
$SQL
=
"SELECT supplierno FROM tbl_users WHERE username = '$user'"
;
$result
=
mysql_query
(
$SQL
,
$Conn
) or die(
mysql_error
());
while(
$row
=
mysql_fetch_array
(
$result
)) {
    echo
$row
&#91;
'supplierno'
];
}
?>
These are the key functons used:
mysql_connect()
mysql_select_db()
mysql_query()
mysql_fetch_array()
...make sure you read up on them in the php documentaion (php dot net).



How would I get this page(s) to display this data. How would I get the html/php etc code for the page to request the data from the database and display it how I want it to be displayed. I'm at a complete loss. I have a fair knowledge of html and little knowledge of php, the latter of which I believe is what I need?
Any help would be greatly appreciated.
Many Thanks! http://bbs.prog365.com/images/sites/smile.gif

TOP

Back Forum