-
Posts
9,409 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MadTechie
-
[SOLVED] Importing data from excel 97-03
MadTechie replied to salman_ahad@yahoo.com's topic in PHP Coding Help
CSV would be easier, via MySQL it would be something like this LOAD DATA INFILE 'datafile.csv' INTO TABLE tbl_name FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n' IGNORE 1 LINES; -
[SOLVED] how do i fwrite a user profile AKA an entire php page?
MadTechie replied to emopoops's topic in PHP Coding Help
No offence intended BUT.. Your be better of using my first example, and a mod rewrite the mod rewrite could redirect domain.com/MadTechie to profile.php?user=MadTechie that would yield the same results. -
[SOLVED] Sorry for double posting, PHP Live Search code question
MadTechie replied to gene99's topic in PHP Coding Help
Its kinda unclear what your asking for, it sounds like you want to parse a XML, Can you provide an XML sample/link -
Depends on the password type, however you should be able to do it via cURL, (of course a CAPTCHA would hinder this)
-
If you ran it twice it would..(kinda) maybe add $this->Topics = ""; before the while loop
-
So now its down to you to write the code.. This is the "Help" section after all, if you want someone to do all the work your need to use the freelance section and pay for it. I have given you a few bug fixes for you to apply, let me what problems you get and I'll try to help.
-
Its not the code it the logic! read it!
-
[SOLVED] Computer hardware information with C#
MadTechie replied to HaLo2FrEeEk's topic in Other Programming Languages
As a side note .NET will only get the hardware details from installed drivers, if you want to peek/poke the devices your need to inject some asm -
Okay review this code.. Checks what ? ezip doesn't return a list of files! Re-check this logic! as a side note the steps I gave you where a better approach!
-
See my first post! I assume you wrote the code in the first place!
-
Exactly.. The post will be client based NOT server thus its NOT on the same server! Why not have the Flash file open the php script directly instead of having it as a parameter, you could also create a handshake and a authentication method, However as everything client side can be controlled by the client this is not secure either, but without knowing what your trying to do it will be almost impossible to resolve.
-
Let me ask you one question.. Do you understand the code and/or the logic of the code you have ?
-
Well I assume $extractedFilesList should contain a list of extracted Files, have you checked what it returns, also I don't see what part i haven't covered you have all the parts to complete that list in this one thread
-
I have already stated that reason for those errors!
-
seams to be missing alot of code, why not just use the ZipArchive example above ?
-
Oops missed the link See MultiViews
-
if($_SERVER['REMOTE_ADDR'] == $_SERVER['SERVER_ADDR']){ echo "I am Self!"; } But isn't flash client sided!
-
I will move this to the correct section, Oh and yes I know, what the problem is an how to fix it!..
-
I would probably code it like this (untested) <?php //check a decision has been posted if(!empty($_POST['decision'])){ //loop thought the decision's foreach($_POST['decision'] as $ID => $decision){ $ID = (int)$ID; //Apply decisions switch($decision){ case "delete": mysql_query("DELETE FROM comments WHERE id = '$ID'"); break; case "approve": mysql_query("UPDATE comments SET approved=2 WHERE id = '$ID'"); break; } } } $query = 'SELECT * FROM `comments` WHERE `approved` = 1'; //1 = new, 2 = approved $result=mysql_query($query) or die(mysql_error() ); ?> <form action="" method="post" name="test"> <?php while($row = mysql_fetch_array($result)){ echo $row['name']. " - ". $row['email']; $id = $row['id']; ?> <input name="decision[<?php echo $row['id']; ?>]" type="radio" value="approve" /> Approve this comment<br /> <input name="decision[<?php echo $row['id']; ?>]" type="radio" value="delete" /> Delete this comment<br /> <?php } ?> <input name="Submit" type="submit" /> <input name="Reset" type="reset" value="Reset" /> </form> Hope that helps, any questions ?
-
Did you fix the logical errors ?
-
can someone hack my site... dont break it though!
MadTechie replied to zulugogogo's topic in Beta Test Your Stuff!
Very True, its like they don't have a backup or a sandbox.. its not like we have any higher access level than the rest of the people on the net! -
PREVENTING Piracy of web based applications
MadTechie replied to canadabeeau's topic in Miscellaneous
Yep, almost 15 years ago Sun released the first public implementation as Java 1.0 and released Microsoft Windows 3.2 (followed shorty by Windows 95) Anyone remember anything else released 15 years ago ? -
Here are some helpful hints
-
Well it was announced late 2005, and yet theirs no release date (that i know of) a few things to keep in-mind, when developing (don't rely on magic_quotes or register_globals and update ereg's to preg's here is a list of changes in PHP6 magic_quotes, register_globals, register_long_arrays,safe_mode are all removed YAY removed ereg (update to preg people) Improved Unicode support Namespaces (well that's now in 5.30)