Jump to content

mrlankee

Members
  • Posts

    24
  • Joined

  • Last visited

mrlankee's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ah =] thanks! I appreciate all the help!
  2. this is hurting my brain lol where i cannot figure it out?
  3. I switched up the code still getting the error Parse error: syntax error, unexpected '{' in /home/xxxxxxxxxxxxxxx/xxxxx/account.php on line 100 I did add a ?> to close out the PHP after the image was taken.
  4. still shooting the error. Parse error: syntax error, unexpected '{' in ......."removed".../account.php on line 96
  5. Parse error: syntax error, unexpected '{' in ......."removed".../account.php on line 96 Which is the first { after "if"
  6. how do i fix it? :\ lol
  7. www.rpproject.net/useraccount.php As you can see.. no matter what you enter.. the "else" does not show up as "Sorry, that username does not exist in our database.";" I cannot figure out whats going on.. exact code. <form action="account.php" method="GET"> In-Game Name:<br> <input type="text" name="username" value="Username"> <br> <input type="submit" value="Submit"> </form> <?php $username = $_POST['username']; $pdo = new PDO('mysql:host=xxxxx;dbname=xxxx', 'xxxx', 'xxxx'); if ($pdo->query("SELECT * from TABLENAME where username='".$username."'")->fetchColumn() > 0){ foreach($pdo->query("SELECT * from TABLENAME where username='".$username."'") as $row) { echo $row['Player_Name'] . $row['Time_Online']; } $pdo = null; } else{ echo "Sorry, that username does not exist in our database."; } ?> Any ideas?
  8. Sorry what i ment is .. If i enter username Alpha instead of Bravo.. it'll show Alpha's row's... it's basically drawing data from a game MySql
  9. Hi, I'm trying to figure this out.. I am creating a user search on my website thats connected to mysql. What I have does not work :\ <form action="useraccount.php" method="post"> <input type="text" name="username"/> <input type="submit" value="submit"/> </form> <?php $username = $_POST['nome']; $pdo = new PDO('mysql:host=myhost;dbname=mydb', 'user', 'pw'); if ($pdo->query("SELECT * from TABLENAME where username='".$username."'")->fetchColumn() > 0){ foreach($pdo->query("SELECT * from TABLENAME where username='".$username."'") as $row) { echo $row['Player_Name'] . $row['Time_Online']; } $pdo = null; } else{ echo "Sorry, that username does not exist in our database."; } ?>
  10. Looking for someone to create a client side script to meet the following requirements: Client side Login to multiple affiliate accounts of mine (around 30) Gather information required log out Display results client side in a nice and organized fashion Please PM me or e-mail me with approximate price given the requirements above along with your experience. Payment will be through paypal. e-mail a3lankee@gmail.com
  11. Is it possible and how difficult is a script to go into my login accounts on multiple websites .. collect the data in my account and show it all on my own page for easy moderation and to save time from login into 20 + websites every day?
  12. Exactly I REALLY appreicate that, made the process make so much sense. I'm new to the whole SQL db, How would one call from a search form results from the whole table in a nice chart?
  13. I say different tables because (Game servers, ded servers, vps, and VOIP servers) my question is how do I go about code a sorting process to only insert the pricing, hardware, and other pertinent information into the DB of the HTML source?
  14. Hi What is the best recommended way to "sort through" and "place certain data" into a sql table? For example, I create a input form.php Company Name: The Blah Company Product/Industry Dedicated Servers HTML Source Code <div class="allservers"> <div class="serverType" id="server1"> <div class="myFeaturesBox"> <ul class="tabination"> <li><a href="#" class="activeTab" data-tab='feature'>FEATURED</a></li> <li><a href="#" data-tab='single'>SINGLE PROCESSOR</a></li> <li><a href="#" data-tab='dual'>DUAL PROCESSOR</a></li> <div class="clear"></div> </ul> <div class="feature myTab activeTabs"> <table class="table"> <tr> <th></th> <th>Processor</th> <th>RAM</th> <th>Hard Drive</th> <th>Price/Mo</th> <th></th> <th></th> </tr> <tr> <td><img src='img/server.png' alt='Server' width="20" height="20" /></td> <td>Intel Xeon E3-1230 (4x3.2GHz)</td> <td>8 GB DDR3</td> <td>1x500 GB SATA</td> <td>$98.00</td> <td><a href="https://portal.securedservers.com/wap-jpost3/UP011013E31230" target="_self"><img src='img/deploy.png' alt='Deploy Now' width="86" height="18" /></a></td> <td class="wB"></td> </tr> <tr> <td><img src='img/server.png' alt='Server' width="20" height="20" /></td> <td><div style="position:relative;">Intel Xeon E3-1240 v3 (4x3.4GHz)</div></td> <td>8GB DDR3</td> <td>1x1 TB SATA</td> <td>$128.00</td> <td><a href="https://portal.securedservers.com/wap-jpost3/UP031013E31240" target="_self"><img src='img/deploy.png' alt='Deploy Now' width="86" height="18" /></a></td> <td class="wB"></td> </tr> <tr> <td><img src='img/server.png' alt='Server' width="20" height="20" /></td> <td><div style="position:relative;">Intel Xeon E3-1240 v3 4-bay (4x3.4GHz)</div></td> <td>8GB DDR3</td> <td>4x500 GB SATA</td> <td>$148.00</td> <td><a href="https://portal.securedservers.com/wap-jpost3/UP431013E31240" target="_self"><img src='img/deploy.png' alt='Deploy Now' width="86" height="18" /></a></td> <td class="wB"></td> </tr> <tr> </table> Submit Button --> sends to the "sorting process?" than into proper DB tables for search query. Ultimately, there I require to be able to pull from my DB upon query, pricing, hardware, processor, etc.. Any recommendation for me to try? I'm new to PHP but I want to learn and do it myself (better after effect feeling than paying someone)
×
×
  • 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.