Jump to content

jebadoa

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jebadoa's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I am working on a site for a teachers' association. Moderate experience with PHP/MySQL. I just installed Wordpress and will use a database from a different server. PHP, and SQL are installed on the site that has Wordpress installed, but not MySQL. The server with the database I will be using has MySQL. My question is: Do both servers need MySQL? Because right now, Wordpress won't work.
  2. Thanks! That works, and now I am trying to pass a value in so that it will select videos from a certain category: function displayVideos($cat) and my query is $data = mysql_query("SELECT * FROM videos WHERE category='$cat'") I call the function with: <?php include('sbfunctions.php'); displayVideos("pitching"); ?> but it displays videos from another category ??? (not sure how you displayed code in blocks....
  3. Hi gurus, I am just getting started in PHP and trying to figure this out. I have a clip from a page that repeats in several places. It would be good as a function, but it has html in it. How do I deal with that? Here is the code: <div class="panelScrollBox"> <?php $data = mysql_query("SELECT * FROM videos WHERE category='br'") or die(mysql_error()); while($info = mysql_fetch_array( $data )) { ?> <div class="panelDivider"> <a href="of.html"><img src="/images/<?php print $info['thumb']; ?> " alt="ALTDATA" border= "0"class="panelVid" /></a> <span class="videoTitle"><?php print $info['title']; ?></span> <br /> <?php print $info['price']; ?> (Quicktime) <strong><?php print $info['length']; ?></strong>. <br /> <a href="<?php print $info['buymovbtn']; ?>" target="ej_ejc" class="ec_ejc_thkbx" onClick="javascript:return EJEJC_lc(this);"> <img src="images/buyMOV.png" border="0" alt="Add to Cart"/></a><br /><br /> </div> <?php } ?> </div>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.