Jump to content

pneudralics

Members
  • Posts

    241
  • Joined

  • Last visited

    Never

Everything posted by pneudralics

  1. What do I need to add in if I didn't want mike.jpg to be displayed as a random image? Thanks.
  2. Got this from the random pic tutorial here. I'm getting Parse error: parse error, unexpected '\"', expecting ',' or ';' The following is line 23: echo "<img src="".$file_dir."/".$arry_txt[rand(0, sizeof($arry_txt) -1)]."">"; So what went wrong? I'm still really new at php. Tried taking out the / and quotes, but nothing. [code]<? // #### RANDOM PIC #########################################     $thumbstring = '';     $file_dir="pics/a10";    // DIRECTORY WITH THE PICS     $f_type="tm.jpg";    // FILE EXTENSION YOU WISH TO DISPLAY     $dir=opendir($file_dir);     while ($file=readdir($dir))     {         if ($file != "." && $file != "..")         {             $extension=substr($file,-6);    // THIS DIGIT MUST MATCH THE NUMBER OF CHARACTERS SPECIFIED IN THE FILE EXTENSION ABOVE             if($extension == $f_type)             {                 $thumbstring .= "$file|";             }         }     }     srand((double)microtime()*1000000);     $arry_txt = explode("|" , $thumbstring);     echo "<img src="".$file_dir."/".$arry_txt[rand(0, sizeof($arry_txt) -1)]."">"; // #### END RANDOM PIC ######################################### ?>[/code]
  3. I was trying to make the row larger, but I was just wondering if I can add rowspan inside the <td stlye> instead of doing a new td tag.
  4. Is there a way to add a rowspan to the following? Since <td> has stlye in it is there a way to add rowspan? <TD ROWSPAN="2" > [code]<table style="width:100%;" cellspacing="0" cellpadding="0">             <tr>                         <td style="width:98%;font-size:8pt;vertical-align:middle;" class="mainmenu3">                 <div style="padding-left:10px;">                 <span style="vertical-align:middle;"> <b>{%TITLE%}</b></span>                 </div>             </td>             </tr>             </table>[/code]
  5. [!--quoteo(post=354136:date=Mar 12 2006, 06:06 AM:name=keeB)--][div class=\'quotetop\']QUOTE(keeB @ Mar 12 2006, 06:06 AM) [snapback]354136[/snapback][/div][div class=\'quotemain\'][!--quotec--] Can you give some context.. code example you're trying to look at, something? [/quote] I just wanted to know what the % is for. It's in a table and when you view it it shows the word TITLE. [code] <table style="width:100%;" class="mainmenu5" cellspacing="0" cellpadding="4">             <tr>             <td style="font-size:8pt;">                 <b>{%TITLE%}</b>             </td>             </tr>             </table>[/code]
  6. {%TITLE%} Can someone tell me what that means? Couldn't find a search for it. Very newbie, but I am a newbie. :)
  7. List what you do to receive revenue from your site? How much have you made so far? I'm looking at other places out there to make money. I'm using google adsense and revenuegateway, but I'm not really making that much money. At the time being I have a little over 300 members on my site. I just want to know what everyone else is using and if they've been successful.
  8. I'll like to get some games on my site that will be able to integrate with the users on my database. I'll like to be able to keep highscores, top players etc. Anyone know of any good sites?
  9. Is vps and dedicated servers the same? Seems like you can make vps out of a vds. The only difference is that only you can add sites to the dvs? Let's say I have a vps with Mike's vds. Mike also has 5 other people with vps under his vds. Does that mean that all 6 of us are sharing the space and bandwith from Mike's vds or do we have our set space and bandwith from Mike's vds? Does unmetered bandwith equal unlimited? Thanks in advance.
  10. Thanks I figured out what it was.
  11. I'm starting to learn php and trying to create a simple form. This is my html page: [code]<form action="handle_post.php" method="post"> First Name: <input type"text" name="first_name" size="20" /> <br /> Last Name: <input type="text" name="last_name" size="20" /> <br /> Email Address: <input type="text" name="email" size="20" /> <br /> Posting: <textarea name="posting" rows="3" cols="30"></textarea> <br /> <input type="submit" name"submit" value="Send My Posting" /> </form>[/code] This is my handle_post.php page: [code] <?php $first_name = "$first_name"; $last_name = "$last_name"; $posting = "$posting"; $name = $first_name . ' ' . $last_name; echo "thank you, $name, for posting the following: <br /> <p>$posting</p>"; ?>[/code] When I click the submit button it downloads instead of going to the php page. What did I do wrong? Thanks for helping this newbie out.
  12. [!--quoteo(post=351134:date=Mar 2 2006, 06:22 PM:name=markduce)--][div class=\'quotetop\']QUOTE(markduce @ Mar 2 2006, 06:22 PM) [snapback]351134[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi, Yes, you can create a list of master variables. Say you set up a file called mastervariables.php and put it in the same folder as me.php. Then list your variables in there eg <?php $variable1="hello"; $variable2="hello2"; ?> Then on me.php, simply include the file with the following code: <?php include ("mastervariables.php"); ?> Hope that helps Mark [/quote] So once I add: <?php include ("mastervariables.php"); ?> me.php will use those variables? If I want to add variables in a different directory I'll just have to do this: <?php include ("/newdirectory/mastervariables.php"); ?> Correct? Thanks in advance.
  13. I'm new to php and still trying to learn it. If I had me.php do I have to assign the variables and values to me.php? Can I create some kind of master list of variables and values so I can use those in me.php?
  14. I'm thinking about installing a forum like phpbb with my website. I have users already on there and would like to know if I can integrate something like phpbb with the current user database? Will the users have to relogin to phpbb even though they're logged in my website? Is there a way to bypass the login to phpbb if they are logged in already through the website?
×
×
  • 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.