From what I can see your using if($result_loop) if(mysql_num_rows($result_loop) > 0) which you should not do instead use ||(OR), &&(AND) for...
Your query inputs the values before they are multiplied in the database, move the code that multiples the qty code before the query to insert them...
You can use $myArray[] = "values" instead of using array_push or array merge because they require more resources to use them(overhead of making a...
This is temperature conversion script, used to convert temperature from Celsius, Fahrenheit, Rankine, and Kelvin. The Code Include the script...
I was wondering what is the best way to do this. I want to be able to store the variable and value in a database but use php to turn them into...
Use whitepages API to get the info, create a xml reader that gets the data you want, save it as either your own xml file or to a database which...
if you want ISP use this $ip = $_SERVER['REMOTE_ADDR']; $isp = gethostbyaddr($ip); echo $isp; cookie + ip is the way to go I dont...
If you want it to keep track of IP's why not have it hold it as an array in a separate file. <?php define('COUNTER_FILE','counter.txt'); //...
simple your first function does not exist in php. Second substr() lets you grab text from another text based on its start point and end point....
it break the original string into characters and shows them on a newline. Of course you dont need a function to get the text thats saved as a...
Fixed a problem that I saw in the first two functions I tried to add a number and a string instead of using it as the array index key fixed that...
This function breaks a piece of text into characters and shows them on a newline. I could not for the love of me get the \n to work so I added <br...
So you just want it to be a like button deal? http://developers.facebook.com/docs/reference/plugins/like...
I dont think you can disable the back button with php since thats a client site thing, and yeah if your script is good all session or cookies will...
I tried to port the Boyer-Moore string matching algorithm from C to php, I have not tested it out yet because I have a project thats taking all of...
Ok you just want to add people who visit the site to the database? Is there a login system or is it that you want them to be logged in from...
These are how you access database info, instead of using the whole function process you can simple use the methods I made. Ok lets say you want to...
ok I wrote a db class for you which includes a config page as well so you can edit that as you wish without having to edit the code in the class....
You need to do $id= $_POST['id']; if(is_numeric($id)) // check that its a real number { $q = "SELECT * FROM table_name WHERE id=$id"; //since...
function db_execute_other($dml_command,$db) { $conn = db_connect_other($db); mysql_query($dml_command); mysql_close($conn); } the...
Separate names with a comma.