diasansley
Members-
Posts
64 -
Joined
-
Last visited
Never
Everything posted by diasansley
-
i am tryin to use google map iframe . the $ts4 and $ts5 from the db. Can i generate multiple markers if not can any1 direct me to a link to do so. <iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.in/maps?f=q&source=s_q&hl=en&geocode=&q=<?php echo "$ts4,+$ts5"; ?>&ie=UTF8&hq=&hnear=<?php echo "$ts4,+$ts5"; ?>&z=14&iwloc=A&output=embed"></iframe> Thanks
-
Thanks a lot... ur great!!!!! btw can u direct me to a site a code/tutorial for google maps with zip codes.As i want to integrate it with my application. thanks
-
yes.. but the link that u have got is from the embed tag coz if i use the top link it dosent play. http://www.youtube.com/watch?v=vFagaB9M6nQ how do i convert the top link to a type below http://www.youtube.com/v/vFagaB9M6nQ?fs
-
enter it in a form ..... i wanted to knw if i can store the link(on top) and display that video in a div. from a db the db contains the path
-
ok that works fine can i store a object tag in the db and show that same obj tag in the div ill paste my code but its hard coded <div id="resultmedia"> <object width="640" height="385"> <param name="movie" value="http://www.youtube.com/v/vFagaB9M6nQ?fs=1&hl=en_GB"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/vFagaB9M6nQ?fs=1&hl=en_GB" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="155" height="131"> </embed></object>
-
ok that works fine can i store a object tag in the db and show that same obj tag in the div ill paste my code but its hard coded <div id="resultmedia"> <object width="640" height="385"> <param name="movie" value="http://www.youtube.com/v/vFagaB9M6nQ?fs=1&hl=en_GB"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/vFagaB9M6nQ?fs=1&hl=en_GB" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="155" height="131"> </embed></object> i want the entire obj to come from the db. thanks
-
while ($row = mysql_fetch_array($result)) { // Begin while $ts = $row["name"]; $ts1= $row["description"]; $ts2 = $row["link"]; $ts3 = $row["tag"]; echo '<div id="resultrow">'; echo '<div id="resultmedia">'; echo'</div>'; echo'<div id="resultdetails">'; echo'<div id="resulttitle">'; echo"$ts"; echo'</div>'; echo'<div id="resultdesc">'; echo "$ts1"; echo '</div>'; echo '<div id="resultlink">'; echo '<a href='$ts2'>'; echo "$ts2"; echo '</a>'; echo '</div>'; echo '<div id="mapid">'; echo "$ts3"; echo'</div>'; echo' </div>'; echo '</div>'; here is the error Parse error : syntax error, unexpected T_VARIABLE, expecting ',' or ',' in C: \ xampp \ htdocs \ wordpress \ wp-content \ themes \ Site info \ results.php on line 92
-
I wanted to store a link in the db and display the same link on the front end which will take me to the site. i tried with href but i get some string error. Also i wanted to add a youtube embed tag to display it again on query to the db. in short is possible to store the url in the db and display the same url. thanks
-
hey guys i am stuck at one part. i am coding a site where on the index page there are 5 categories. Now on click of these it takes me to a page where i can search within a particular category. i can do it by statically giving <href="localhost/xampp/abc.php">and a fixed page path. but i want the name of the category passed when i click and the search page to open when i open search. thanks
-
mysql_fetch_array () expect parameter 1 to be resource
diasansley replied to diasansley's topic in PHP Coding Help
i dnt kwn how but it works now!!!! thanks anyways -
the below is a simple search code.. I have listed the error at the end <div id="searchdiv"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <div id="searchdivtext">Info :</div> <input type="text" name="search" id="searchdivtextbox"> <input type="submit" id="searchdivbtn" name="submit"> </form> </div> <?php if (isset($_POST['submit'])) // perform search only if a string was entered. { mysql_connect('localhost','root','') or die('Could not connect to mysql ' . mysql_error()); // error message mysql_select_db("infosite") or die(mysql_error()); $query = "select * from wp_usermeta WHERE Name='$search'"; $result = mysql_query($query); echo "$result"; if ($query) { echo "Here are the results:<br><br>"; echo '<div id="maincontainer">'; echo '</div>'; while ($r = mysql_fetch_array($result,MYSQL_ASSOC)) { // Begin while $ts = $r["TimeStamp"]; $name = $r["Name"]; $last = $r["Last"]; $email = $r["email"]; $comment = $r["comment"]; echo "<tr> <td>$ts</td> <td>$name</td> <td>$last</td> <td>$email</td></tr> <tr> <td colspan=4 bgcolor=\"#ffffa0\">$comment</td> </tr>"; } // end while echo "</table>"; } else { echo "problems...."; } } else { echo "Search string is empty. <br> Go back and type a string to search"; } ?> </div> I get the following error Warning : mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\wordpress\wp-content\themes\info-site\results.php on line 85 thanks
-
can any1 please give me some more leads thanks
-
It is a open cart project!! the query data is passed to the .tpl to display. and i have given a href as <A href="http://localhost/upload_6dec/index.php?route=common/vodafone">details there are various products displayed in the table. the above link appears on each row. when i click on details it should take me to that particular product detail. Thanks
-
hi all I have a table which i have got results from a database. My question If i want to display the details of a particular row. How do I do that? Thanks Rgds