- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 24
- Posts with Upvotes
- 20
- Upvoting Members
- 20
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
IT MANAGER
- Interests
- womengamingprogramingcomputerscars
- PC Specs
- new computer6 core 3.2 ghzesxi / ubuntu / winxpblueray burner8 gig's of ddr3 4 x 500 gig hardrives1…
177 Posted Topics
Re: haven't done that in awhile but if you have it running on linux here's a example i have saved always helps me out [CODE]ffmpeg –i myvideo.avi -vf "movie=mylogo.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" userdownload.flv [/CODE] | |
Re: //php $total = money_format(number_format($var1,2,"",".") +number_format($var2,2,"",".")+number_format($var3,2,"",".")); //js var total = parseInt(var1.replace(/,/g, "")) + parseInt(var2.replace(/,/g, "")) + parseInt(var3.replace(/,/g, "")); // it might be parseFloat i havent done it in awhile | |
![]() | Re: i use netbeans i use it for more then php but the reason i like it for php is the navigator for class files when you load up one of your class files it will display all the classes to the left plus it will auto complete class names and … |
i am new to c# i have been working on controlling a io card i have no issue writing to turn on / toggle / or get status turn on bits |= 1 << bit; toggle bits ^= 1 << bit; but i cannot get the item pin to turn … | |
Re: your implode has '""' if you need the middle "" you should add addslashes() to allow it to work plus you should refrain from using mysql like traevel said plus if you are staying with the mysql you should clean the post's <?php include('admin/include/connect.php'); $p_id=$_REQUEST['proid']; $cat_id=$_REQUEST['catid']; $name = filter_input(INPUT_POST, 'name', … | |
Re: this is what i would do with your code adda count and test to see if the user has permissions <?PHP if(isset($User_ID)){ $abc=array(); // add a count when grabbing permissions $queri=mysql_query("SELECT *,COUNT(MenuId) FROM `userrights` WHERE `UserId`=$User_ID"); while($cow = mysql_fetch_array($queri)){ //test to see if permissions exists if they dont redirect if($cow['COUNT(MenuId)'] … | |
Re: if your trying to set a number to show how many items are in the cart currently whatever your holder is i would replace that with the current count some where in your post so you add the item and update $("#current_items_count").text(current_count); // or get the previous number and add … | |
Re: i took this from my invoice pdf code you might have to change some sizes and locations but it should show you what you need [CODE=php]<?php require('fpdf.php'); $pdf=new FPDF(); //========================================================== //SET DATABASE //========================================================== $h = "localhost"; $u = "USERNAME"; $p = "PASSWORD"; $d = "DATABASE"; $link = mysql_connect ($h, $u, … | |
Re: back space like 152 so it is with line 151 those are one whole line not two <?PHP // this is bad $string .= "<form method='get' action='".$GLOBALS['bloginfo_url']."/' name='searchBox' id='searchBox'> <input type='text' value='".$PPT->_e(array('head','2'))."' name='s' id='s' onfocus="this.value='';" />"; // make it do this $string .= "<form method='get' action='".$GLOBALS['bloginfo_url']."/' name='searchBox' id='searchBox'><input type='text' value='".$PPT->_e(array('head','2'))."' … | |
Re: wow i just relized theres a second page disregard my post [CODE] $get = mysql_query("SELECT * FROM users WHERE username='$user'") [/CODE] needs to have the ; [CODE]$get = mysql_query("SELECT * FROM users WHERE username='$user'");[/CODE] ![]() | |
Re: export the data into what csv file | |
Re: i can give you help but your gonna have to break it down what you need help with or we can go step by step first setup mysql database to store your data to track product name needs to be purchased and how many already have been purchased have all … | |
Re: nice post usally for me it always ends up ./configure make install some how | |
Re: just like ardav said you can just encrypt your keyword in your case $rr [CODE] $keyword = hash("sha256", 'saltysaltandmoresalt' . $rr . 'evenmoresalt'); echo "<a href=\"http://www.domain.com/alert_unsubcribe.php?email=".$tt."&keyword=".$keyword."\">Unsubscribe</a>"; [/CODE] ![]() | |
Re: there's two ways to do that htaccess or mod_rewrite | |
Re: your website host also provides you with a log for smtp emails in and out i would ask the user what day and around what time it happened to see if there was a error in smtp maybe it got blocked or failed there | |
Re: you get that error if there is something printed to the screen before the header statment if you need to run the header after an echo you can out put the buffer [CODE] <?php ob_start(); require("phpsqlajax_dbinfo.php"); function parseToXML($htmlStr) { $xmlStr=str_replace('<','<',$htmlStr); $xmlStr=str_replace('>','>',$xmlStr); $xmlStr=str_replace('"','"',$xmlStr); $xmlStr=str_replace("'",''',$xmlStr); $xmlStr=str_replace("&",'&',$xmlStr); return $xmlStr; } // Opens a … | |
Re: what you can do is set two image submits with diffrent variables then test them once the form is submitted [CODE]<?php if($_POST['formsubmit'] == "accept"){ // do some thing for accept } if($_POST['formsubmit'] == "decline"){ // do some thing for decline } ?> <form name="<?php print $row_rq[12]; ?>" action="<?php print $_SERVER['PHP_SELF'];?>" … | |
Re: but i think more recent development in vm stuff and ubuntu looking more like the mac os i think sooner or later people will start to use more linux desktops simply because of price that and the awsome desktop cube using compiz linux in my opinion is alot more graphical … | |
Re: ig guessing its when a user presses a logout button or something [CODE] if(logout == "yes"){ // use what you have to kill the cookies $past = time() - 100; setcookie(username, gone, $past); setcookie(password, gone, $past); // also need to kill the session unset($_SESSION['authenticated']); // then refresh the page header( … | |
Re: for the first one [CODE] // start session session_start(); $username = $_POST['username']; $password = $_POST['password']; // make sure there's nto weird code in the post's $username = stripslashes($username); $password = stripslashes($password); $username = mysql_real_escape_string($username); $password = mysql_real_escape_string($password); // also when storing in database your going to want to salt or … | |
Re: this is the only way i think it can be done [URL="http://code.google.com/apis/maps/documentation/distancematrix/"]http://code.google.com/apis/maps/documentation/distancematrix/[/URL] | |
Re: basicly if you can get to a cli and type the commands each line is a seprate command yum install httpd yum install php yum install mysql-server mysql yum install phpmyadmin each command will install something and you usally just have to say yes and it does the rest once … | |
Re: i guess not because you can always add the items once they logged in but i don't know why you would not allow people to add the item before logging then ask them if they have a account if they don't make one i think it would be very bad … | |
Re: are you looking for them to login or just use there facebook login if there logged in if you want to use the login if they are already logged into facebook you have to have the php sdk installed and you run [CODE]$facebook_user = $facebook->getUser();[/CODE] | |
Re: is this part of a website or running in cli ? | |
Re: does it only give you that error after you submitt the form or before | |
Re: [CODE] $onlyone = array_unique($array); [/CODE] gets rid of all duplicates now only one is a array and doesnt have duplicates | |
Re: try setting the char code for the html in browser [CODE]<head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" /> </head>[/CODE] ISO-8859-1 Latin alphabet part 1 North America, Western Europe, Latin America, the Caribbean, Canada, Africa ISO-8859-2 Latin alphabet part 2 Eastern Europe ISO-8859-3 Latin alphabet part 3 SE Europe, Esperanto, miscellaneous others ISO-8859-4 Latin … | |
Re: this might also be caused by faulty ram which could make the computer basicly restart or give you the Dbsod i seen the ram also allow the computer to work fine untill you either start a game or play a video or music then bam restart. also if you didnt … | |
| |
Re: if that is you whole code you didn't login and select your database add this before your other line [CODE] mysql_connect("localhost", "username", "password")or die("cannot connect"); mysql_select_db("database")or die("cannot select DB"); [/CODE] | |
Re: the only way i can see that is either to set all data in cookies so there favorite items [CODE] setcookie("user", $user, time()+3600); setcookie($user."fav1", "fav 1", time()+3600); setcookie($user."fav2", "fav 2", time()+3600); setcookie($user."fav3", "fav 3", time()+3600); setcookie($user."fav4", "fav 4", time()+3600); [/CODE] so then when the user is on your website you … | |
Re: post the mysql insert part and we can probley help more | |
Re: also with yout post if you taking it from the user / webuser you should validate it for code and what not before it goes into your sql and you only have to change your one line to get the year [CODE]</td>"; echo "<td>".year."</td>"; [/CODE] to [CODE]echo "<td>".$row['year']."</td>"; [/CODE] you … | |
Re: try using [CODE] $query = "SELECT * FROM `users` WHERE `username` = '".$_SESSION['username']."'"; [/CODE] | |
Re: how is the table set up is it one column for brand and another for colors or are the colors all separate or is everything in one field ? | |
Re: setup a database create user structure / permission levels use sessions for php login page have user enter info then when he hits submit check the database for user and if password is correct then check permissions table to see available permissions then send the user to another page or … ![]() | |
Re: if your dates have any special characters it might be throwing it off try this [CODE] $last_startdate = addslashes($_POST['last_startdate']); $due_end_date = addslashes($_POST['due_end_date']) ; [/CODE] | |
Re: [CODE]<?php // one way if($_POST['sweets']){ if($_POST['sweets'] == "yes"){ header( 'Location: ../ilikesweets.php' ) }ELSE{ header( 'Location: ../idontlikesweets.php' ) } } echo "<form method=\"post\" target=\"_self\" > do you like sweets</br> <select name='sweets' size=\"1\"> <option></option> <option value=\"yes\">yes</option> <option value=\"no\">no</option> </select> <input type=\"submit\" /> </form>" ?> <?php // another way if($_POST['sweets']){ if($_POST['sweets'] == "yes"){ … | |
Re: i would just phrase the csv to a array then sort the array by the order id then echo it because that would make all duplicates show up coupled with each other | |
Re: [CODE] // you can either set them hard code like this or have them out of a data base into a variable $name = "partha"; $live = "durgapur"; echo "my name is ".$name."i live in ".$live; // also this to break it when it gets to the server $break = … | |
Re: [CODE=php]<?php include 'connection.php'; $data = mysql_query( "SELECT Date,color_code, COUNT(color_code) FROM paintshop WHERE Date BETWEEN '$startDate' AND '$endDate'") or die('error'); $result = mysql_query($data) or die(mysql_error()); echo "<table> <tr> <td>row1</td> <td>row2</td> <td>row3</td> <td>row4</td> </tr>"; while($row = mysql_fetch_array($result, MYSQL_BOTH)){ echo "<tr> <td>".$row['somerow']."</td> <td>".$row['anotherrow']."</td> <td>".$row['otherrow']."</td> <td>".$row['month']."</td> </tr>"; } echo "</table>" ?>[/CODE] | |
Re: [CODE=php]// get last digit from url $grablast = substr($url, -1); // test url if it equals billeder or if last digit is 0 or greater then zero if ($url == "billeder") {$check = "yes";} if(is_numeric($grablast)){ if ($grablast >= 0) {$check = "yes";} } // if check is yes that the … | |
Re: if you are making the script and have it on your server you can run it directly [CODE] */10 * * * * php-f myscript.php &> /dev/null [/CODE] or usally where the script is located [CODE] */10 * * * * php-f /var/www/html/myscript.php &> /dev/null [/CODE] that /dev ending thing … | |
Re: im not really clear what you mean i think you mean you want to put the session variable into a form so user can edit it [CODE=php] <?php echo "<input name=\"email\" type=\"text\" value='".$_SESSION['Email']."' />"; ?> [/CODE] | |
Re: well in widows this would be harder to do because you cant really run system commands but if you are looking to run a scheduler or line windows scheduler i would say to make a bat file to simply to have it $output = exec("c:\\windows\\system32\\cmd.exe /c $batchFileToRun"); but you also … | |
im new to java so if im doing some thing the wrong way please let me know this is the class that connects to data base and grabs all the info from colum 1 and colum 2 that part works now when i try to either make it a useable … |
The End.