Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
88% Quality Score
Upvotes Received
24
Posts with Upvotes
20
Upvoting Members
20
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
8 Commented Posts
~54.5K People Reached
About Me

IT MANAGER

Interests
womengamingprogramingcomputerscars
PC Specs
new computer6 core 3.2 ghzesxi / ubuntu / winxpblueray burner8 gig's of ddr3 4 x 500 gig hardrives1…
Favorite Tags

177 Posted Topics

Member Avatar for rkskeka

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]

Member Avatar for vishwas_2
0
2K
Member Avatar for phphp
Re: SUM

//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

Member Avatar for HITMANOF44th
0
120
Member Avatar for diafol

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 …

Member Avatar for rsleventhal
0
648
Member Avatar for HITMANOF44th

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 …

Member Avatar for HITMANOF44th
0
126
Member Avatar for AntonyRayan

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', …

Member Avatar for AntonyRayan
0
149
Member Avatar for ITPT
Member Avatar for rjusman90

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)'] …

Member Avatar for Ketul_1
0
157
Member Avatar for safi.najjar1

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 …

Member Avatar for safi.najjar1
0
220
Member Avatar for aadebayo

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, …

Member Avatar for eaton9999
0
2K
Member Avatar for ssfreaky

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'))."' …

Member Avatar for widi05
0
359
Member Avatar for geneh23

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]

Member Avatar for diafol
0
541
Member Avatar for alexgv14
Member Avatar for Waldema

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 …

Member Avatar for Waldema
0
89
Member Avatar for John A
Member Avatar for mikey1234
1
491
Member Avatar for s0bigg

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]

Member Avatar for diafol
0
1K
Member Avatar for Advokat
Member Avatar for simplypixie

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

Member Avatar for simplypixie
0
207
Member Avatar for Que336

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('<','&lt;',$htmlStr); $xmlStr=str_replace('>','&gt;',$xmlStr); $xmlStr=str_replace('"','&quot;',$xmlStr); $xmlStr=str_replace("'",'&apos;',$xmlStr); $xmlStr=str_replace("&",'&amp;',$xmlStr); return $xmlStr; } // Opens a …

Member Avatar for HITMANOF44th
0
240
Member Avatar for showman13

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'];?>" …

Member Avatar for showman13
0
250
Member Avatar for Karlwakim

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 …

Member Avatar for caperjack
0
187
Member Avatar for liphoso
Member Avatar for gilgil2

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( …

Member Avatar for gilgil2
0
84
Member Avatar for davy_yg

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 …

Member Avatar for HITMANOF44th
0
224
Member Avatar for BenzZz

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]

Member Avatar for BenzZz
0
153
Member Avatar for MGadAllah

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 …

Member Avatar for MGadAllah
0
216
Member Avatar for anthonyjpv

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 …

Member Avatar for phorce
0
163
Member Avatar for nakresimin

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]

Member Avatar for nakresimin
0
146
Member Avatar for Virangya
Member Avatar for geneh23

does it only give you that error after you submitt the form or before

Member Avatar for geneh23
0
221
Member Avatar for dalip_007

[CODE] $onlyone = array_unique($array); [/CODE] gets rid of all duplicates now only one is a array and doesnt have duplicates

Member Avatar for dalip_007
0
123
Member Avatar for sirlink99

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 …

Member Avatar for sirlink99
0
479
Member Avatar for eskimo456

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 …

Member Avatar for HITMANOF44th
0
147
Member Avatar for nizam27391
Member Avatar for sirlink99

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]

Member Avatar for sirlink99
0
98
Member Avatar for dalip_007

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 …

Member Avatar for HITMANOF44th
0
271
Member Avatar for s0bigg
Member Avatar for HITMANOF44th
0
189
Member Avatar for jabeen123

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 …

Member Avatar for HITMANOF44th
0
90
Member Avatar for -==Zero==-

try using [CODE] $query = "SELECT * FROM `users` WHERE `username` = '".$_SESSION['username']."'"; [/CODE]

Member Avatar for sohbet
0
275
Member Avatar for whit89

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 ?

Member Avatar for whit89
0
134
Member Avatar for huntaz556

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 …

Member Avatar for diafol
0
106
Member Avatar for accra

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]

Member Avatar for it386
0
127
Member Avatar for cambraydesign

[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"){ …

Member Avatar for cambraydesign
0
195
Member Avatar for chandbasha

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

Member Avatar for HITMANOF44th
0
183
Member Avatar for mastermind2

[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 = …

Member Avatar for HITMANOF44th
0
102
Member Avatar for shamsidah

[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]

Member Avatar for HITMANOF44th
0
88
Member Avatar for klemme

[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 …

Member Avatar for HITMANOF44th
0
118
Member Avatar for mrhankey

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 …

Member Avatar for HITMANOF44th
0
110
Member Avatar for rse

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]

Member Avatar for rse
0
139
Member Avatar for naraza

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 …

Member Avatar for HITMANOF44th
0
111
Member Avatar for HITMANOF44th

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 …

Member Avatar for HITMANOF44th
0
174

The End.