i can't get my head around how i am suposed todo this really i am stuck i have looked on tons of forums mostly this forum and what i would like to do is if a person goes on this link play?p=rLoYvtMNlO then it will load the data from that row the video_id rLoYvtMNlO it will load things like title tags media links
and because alot of these video_ids are being made they need to connect to the right id and load the right page
i hope you get where i am coming from
Thank you if you can help me with this
videoscape
0
Newbie Poster
Recommended Answers
Jump to PostHello, maybe I didn’t understand something correctly. With $_GET["p"] you will have the video_id that you are looking for {you could check first that there is a p var in url { if(isset($_GET["p"]) } } . Then the flow is simply MySql commands that if you need help with them …
Jump to PostA prepared statement query to do using PDO
Lets say that
Data Base name: $database
Host: $host (localhost)
Data Base User Name: $dbUser
DB password: $dbUserPasswod<?php if(isset($_GET("p")) { $db = new Pwf_Data_Db('mysql:dbname=$database;host=$host,$dbUser,$dbUserPasswod'); $query = "SELECT * FROM videos WHERE video_id = ?"; $statement = $db->prepare($query); $statement->execute($_GET("p")); …
Jump to Postsorry
not$db = new Pwf_Data_Db('mysql:dbname=$database;host=$host,$dbUser,$dbUserPasswod');
but
$db = new PDO('mysql:dbname=$database;host=$host,$dbUser,$dbUserPasswod');
All 11 Replies
jkon
602
Posting Whiz in Training
Featured Poster
videoscape
0
Newbie Poster
jkon
602
Posting Whiz in Training
Featured Poster
jkon
602
Posting Whiz in Training
Featured Poster
videoscape
0
Newbie Poster
jkon
602
Posting Whiz in Training
Featured Poster
videoscape
0
Newbie Poster
jkon
602
Posting Whiz in Training
Featured Poster
vaibhav1983
1
Junior Poster
jasonslater
0
Newbie Poster
videoscape
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.