Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
Hehe, not I have first dibs!!!
-
Not sure... Did some research and found this piece of code from LinuxQuestions. $ch = curl_init("http://www.example.com/"); $fp = fopen("example_homepage.txt", "w"); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); fclose($fp); ?>
-
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
Lol! His site has already been hacked? -
Let's do a poll. Are Mac fanboys annoying?
-
Starcraft?! You can run that off of 256 RAM. I used to play that all the time. Now SC2 is a different story, but I don't think that's out yet... If you have no need to upgrade why not wait, let's say 6 months, until you have a valid reason and you can get either a better deal or more for your money.
-
I don't know what application you're using how this $r object is form OR what the class looks like. But going by the pattern from the working ones use this for the last 4 that aren't working... $r->add_textbox("feature_values_6", TEXT, "County"); $r->parameters["feature_values_6"][REQUIRED] = true; $r->add_textbox("feature_values_7", TEXT,"Ireland"); $r->parameters["feature_values_7"][REQUIRED] = true;
-
Do you have a need to upgrade? Your current system sounds pretty good.
-
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
Submitted Form State: * huid: ++ * htpwd: ++ * hcode: ++ * ribtn: ++ Change / Refresh Image * cbe: ++ * jbs_indx_submit: ++Open Results: Server Status Code: 302 Found Tested value: 1' OR '1'='1 Server Status Code: 302 Found Tested value: 1' OR '1'='1 Server Status Code: 302 Found Tested value: %31%27%20%4F%52%20%27%31%27%3D%27%31 Server Status Code: 302 Found Tested value: 1 UNI/**/ON SELECT ALL FROM WHERE -
*NOT TESTED This should remember the selection from the drop down menu. All you do is create an associative array with the values from the drop down and use the POST method to find out which one was SELECTED and assign it a string "SELECTED". ini_set('display_errors', 1); error_reporting(E_ALL); if(isset($_POST['select'])){ $category = $_POST['category']; $selected[$category] = " SELECTED"; $query = "SELECT id, name, label, tekst, datum, category FROM upload WHERE category = '$category' ORDER BY datum DESC"; } else { $query = "select id, name, label, tekst, datum from upload ORDER BY datum DESC"; } $result = mysql_query($query) or die('Error : ' . mysql_error()); ?> KLANTEN while ($row = mysql_fetch_assoc($result)) { extract($row); ?> </pre> <form method="post"> Alles >3-5 >6-8 >9-12 </form> <br><br> <ul class="submenu"> echo $label; ?> </ul> <br> <br>}<br>?><br><br><br><
-
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
I posted that, sorry , what does "+ve" mean? -
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
I posted a message and somehow it worked... Did I just get a virus? I still don't understand the whole point of this site? -
$pass_check = "SELECT id AS id " . I don't think you need id AS id, just SELECT id . Yes, it should. I'm not sure how you get $current_id, session maybe? Anyway, it's called a ternary operator. Basically it translates to: if($some_row['id'] == $current_id) { $flag = 1; } else { $flag = 0; } Let me know how it all turns out.
-
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
I'm lost too. I just logged in and had no clue what to do. I finally clicked on MySpace and saw the message board and again I was stuck on how to post. I don't even see the point of your site... -
Return an array instead. function blah() { $filename[] = "somefile1.php"; $filename[] = "somefile2.php"; $filename[] = "somefile3.php"; return $filename; } $filename = blah(); foreach($filename as $key) echo $key . " ";
-
Read some posts on conditionals in MySQL but also read that it is not supported in general. So, sorry I'm not sure how to do this in MySQL but you can do this in a combination of PHP and MySQL: $sql = "SELECT password FROM usertable WHERE id = 1234"; $result = mysql_query($sql) or die(mysql_error()); $row = mysql_fetch_array($result); $flag = ($row['password'] == "blahblah") ? 1 : 0; $sql_update = "UPDATE usertable SET flag = $flag WHERE id = 1234"; $mysql_query($sql_update) or die(mysql_error());
-
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
Sorry, I don't understand this statement. You SHOULD convert your site to XHTML so it's up to the latest standards. Don't complain if your site is not supported or looks different in certain browsers... -
Or if you want to copy the database to the same server, click on the DB>>operations>>copy database (make sure you select Structure only) and copy it with a new name.
-
Do you have PhpMyAdmin? Just click on your database and export it with no data.
-
noob in need of help. look to created dynamic variables
Maq replied to SteVis's topic in PHP Coding Help
I assume by "return" you mean output? Also, does "$this_cat_class" have a value? Try this: $num_names = array(1, 2, 3, 4, 5, 6, 7, ; foreach ($num_names as $num_name) { $output_2 = "</pre> <li class="'cat_lev_".$level."'"> echo $output_2; } ?> -
Why can't you just do what CV said and return a sorted array? return sort($info);
-
*Not tested. This code will probably contain errors, just post them and I will fix it. Assuming there are always 5 values separated by " || " in my example and there is a field called "userid" (auto-increment) and a field called "values" which is a string. ini_set ("display_errors", "1"); error_reporting(E_ALL); $get_all = "SELECT * FROM table WHERE userid = 1"; $result = mysql_query($get_all); $row = mysql_fetch_array($result); $all_nums = explode(" || ", $row['values']); $get_matches = "SELECT * FROM table WHERE user {$row['userid']}"; $result2 = mysql_query($get_matches); while($row2 = mysql_fetch_array($result2)) { $matches=0; $comp_arr = explode(" || ", $row2['values']); foreach($all_nums as $key => $value) { if(in_array($value, $comp_arr)) { $matches++; } } echo $row['userid'] . " - Matches " . $matches . " out of 5"; } ?>
-
Kindly dont spoil my site but try to find flaws and report to me
Maq replied to om's topic in Beta Test Your Stuff!
Good news om, you pass the 4.01 transitional but fail the xthml 1.0 strict. Click to view your errors. -
Can you show me the whole code? That portion works fine for me.