473,509 Members | 4,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

making a query string

Hi, I'm new to Google Groups (this is my first post or topic or
whatever it's called). I'm also new to PHP. My knowledge in PHP extends
to variables, basic fuctions, etc. I have a site with a MySQL 4.1.14
database and I use phpMyAdmin 2.6.3-pl1.

Suppose there's a page called videos.php. What do I need to do to get a
page called:
videos.php?name=matrix-ping-pong

Also, it would be helpful if you tell me how to add more pages (well,
it's really not a page, is it?) such as:
videos.php?name=hamster-dance

Thx!

Mar 15 '06 #1
4 1282
I think what you want to do is build a database driven website. There
are quite a few tutorials for this. Just do a quick search on google
for "php database driven website" and i think you'll find your answer.

Mar 15 '06 #2
The Numerator wrote:
Hi, I'm new to Google Groups (this is my first post or topic or
whatever it's called). I'm also new to PHP. My knowledge in PHP extends
to variables, basic fuctions, etc. I have a site with a MySQL 4.1.14
database and I use phpMyAdmin 2.6.3-pl1.

Suppose there's a page called videos.php. What do I need to do to get a
page called:
videos.php?name=matrix-ping-pong
Firstly, this isn't google groups, it's Usenet.

Second, the page is videos.php. name=matrix-ping-pong is the data passed
to the page. You can access the data though the super global array
_GET[]. In this case, _GET['name'] = matrix-ping-pong.
Also, it would be helpful if you tell me how to add more pages (well,
it's really not a page, is it?) such as:
videos.php?name=hamster-dance


Use a switch statement based on _GET['name'].

--
Ian Collins.
Mar 16 '06 #3
Hi,
Two weeks ago I had never even heard of php. Now I have about half of a
nice (if I do say so myself) MySQL database driven web site coded and
running. I would recommend the book "PHP and MySQL for dynamic web
pages" by Larry Ullman. In less than two weeks that book has taken me
from rank novice to fairly proficient in php. (Although I do have about
a bazillion years experience with C++)

Also, for those reading this on usenet, "Google Groups" is the only
access that a lot of people (myself included) have to usenet, and most
of those people don't even realize that Google Groups is just a front
end to usenet. So, in all fairness, for a lot of people this forum is
usenet, and for a lot of other people, this forum is "Google Groups."

--gary

Mar 16 '06 #4
fiziwig wrote:
Hi,
Two weeks ago I had never even heard of php. Now I have about half of a
nice (if I do say so myself) MySQL database driven web site coded and
running. I would recommend the book "PHP and MySQL for dynamic web
pages" by Larry Ullman.
The O'Reilly book "PHP and MySQL" is also a decent introductory text.
Also, for those reading this on usenet, "Google Groups" is the only
access that a lot of people (myself included) have to usenet, and most
of those people don't even realize that Google Groups is just a front
end to usenet. So, in all fairness, for a lot of people this forum is
usenet, and for a lot of other people, this forum is "Google Groups."

True enough, as long as google groups users read
<http://cfaj.freeshell.org/google/> to keep us cranky old Usenet users
happy!

--
Ian Collins.
Mar 16 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6735
by: David Walker | last post by:
Hi I have a Microsoft SQL database I can use (also mySQL, so if you know how to do this in mySQL that is just as useful). The database can only be accessed from webpages hosted on the same server...
2
2201
by: Tim Simmons | last post by:
I am stumped. I encoded the action = of my form using GET and I can't seem to get the property/value stuff from it using a JavaScript script I got from the web. I want to create a trivia game...
19
6745
by: Christian Fowler | last post by:
I have a VERY LARGE pile of geographic data that I am importing into a database (db of choice is postgres, though may hop to oracle if necessary). The data is strictly hierarchical - each node has...
3
1983
by: shripaldalal | last post by:
hi all, i have the following fields.... Document_Name, Document_No, Document_Date, Order_No, Order_Date, Peripheral The first 5 you can understand, peripheral is a memo field which...
18
1727
by: dbahooker | last post by:
team i'm having a tough time getting these data readers to work correctly I'd just like to be able to centralize my GetDataReader functions; so i can pass a simple SQL statement and be passed...
2
3975
by: googlegroups.dsbl | last post by:
I'm really confused here, and am wondering if someone knows what could be the issue with my TableAdapter query. A few months ago, I created a really neat program that has th ability to search by...
19
2767
by: Genalube | last post by:
I have an application that will produce a Word document based on five separate queries this has required that I create a ADODB connection: 'Create connection to current database Dim Conn As...
1
1395
by: guny | last post by:
I'm new to DAP, I tried to change SQL of a Query by clicking a button in DAP, but don't know how to realize it. What I can do is to change SQL of Query in module. Anybody knows how to write Script...
7
2296
by: MarkNeumann | last post by:
I'm coming from a Corel paradox background and moving into an Access environment. So I'm struggling with something that I think is probably way simpler than I'm making it out to be. Access 2007...
1
5572
by: Doug | last post by:
What is the simplest way to make a report where only the records where a field matches a certain date are included, and the user first selects that date (from form or popup)? (I can write the SQL...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5062
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4732
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.