- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 8
- Posts with Upvotes
- 8
- Upvoting Members
- 8
- Downvotes Received
- 46
- Posts with Downvotes
- 39
- Downvoting Members
- 14
166 Posted Topics
Re: yeah i think browsers open pdfs when u go to the url its at | |
i know how to do the link thing that if u click it it closes the window. but im wondering if theres a way to automatically close a window after the php code is done running. cause i have an inbox and theres a link to delete the message if … | |
i heard that i can customize my webstore more with paypal api. i dont know what it is. am i able to have my own shopping cart page that i made entirely myself and then have the person buying just check out with paypal, so they can buy multiple items … | |
Re: wow, a simple doctype was messing something up eh? i really hate doctype its nice to hear it was on this side of the problem | |
Re: one time i made a password encryption with pure php it went like this: $password = sha1($password); $password = md5($password); $password = ENCRYPTED! | |
Re: i use this one its really cool its jquery. its called jtip ops but u save the tip as a htm file. | |
[CODE]<script> function addText(event){ document.getElementById("insertid").value += (event.srcElement || event.target).firstChild.nodeValue.toString(); } </script> <textarea id="inserid"></textarea> <table onclick=addText(event)><tr><td>[bbcode][/bbcode]</td><td>[bbcode2][/bbcode2]</td></tr></table>[/CODE] problem is whe i click on the bbcode or bbcode2 it inserts it at the end of whatever is in the textarea. im looking to insert it into where the user clicks(where the carat is) like … | |
Re: [QUOTE=julzk;1085743]Hi, I am wanting to Calculate Hours & Minutes between two Dates/Time. I have four fields: ss_datestart, ss_dateend and ss_timestart and ss_timeend. I want to display the hours and minutes between two dates/times. Example: $ss_datestart $ss_timestart --- $ss_dateend $ss_timeend 05-12-2009 13:44:31 --- 05-12-2009 17:55:31 I want it to then display … | |
i am making a webstore and it has a table that has all the items in it. like each item has its own row in the table called like "items" or something right and each column is specific to all items. but im lost what to do with orders. i … | |
can someone please fix whats wrong with the new problem. i really have no idea how to change it. 2 pages. the problem is when i have the ajax pages and i go to the next page, it doesnt highlight the number im on anymore. and then there was this … | |
theres nothgin wrong with my ajax, it works and is sending other variables but whe i want to send "pood" from [CODE]function farmers(pood, happy)[/CODE] i twill not work. now when i call the function it goes like this [CODE]onclick="farmers('pisslet', 'popcocky')"[/CODE] now it will not send PISSLET, what do i do? … | |
| |
is there some script i can put in the webpage to make the video viewable to like the person looking at my site IN windows media player or whatever their media player is(but keep the video on the webpage... not in their program window? does anyone know? i just want … | |
now i know that there is a thing that "you cant stay logged inforever" but isnt there some sort of ultra cookie that doesnt get cleared when a user is clearing their cookies from their browsers? and when someone logs out of my site, i set the session to expired. … | |
Re: yeah just do products and price and category and some other stuff like how many and how much it weighs and how big it is. how many people have bought it how much views its gotten. what people have rated it. how much time it takes to make. what the … | |
will some things not work on my site once html5 is out? is html5 already out? please ive been to the google search results for html 5 related material and i really dont understand what it is. any help from anyone that understands it would be preferred! | |
| |
Re: what the heck is this static:: stuff? never heard of it. i would help but i dont know what ur meaning | |
Re: lol u cant print the $_POST thats not right.u have to echo [CODE]$_POST[name of the text field here]; echo $_POST[creditCard]; make sure to use mysql_real_escape_string() if u are entering it in the databse? [/CODE] | |
Re: hi. you may want to use [CODE]type="hidden"[/CODE] for the one u dont want the user to write in. | |
Re: [CODE]<?php /********************** MYSETTINGS.PHP*************** *********** This updates user settings and password **************************** ********************** **********/ include 'dbc.php';page_protect(); $rs_settings = mysql_query("select * from users where id='$_SESSION[user_id]'"); if(@$_POST['doUpdate'] == 'Update'){$rs_pwd = mysql_query("select pwd from users where id='$_SESSION[user_id]'"); list($old) = mysql_fetch_row($rs_pwd); //check for old password in md5 format if($old == md5($_POST['pwd_old'])){$newmd5 = md5(mysql_real_escape_string($_POST['pwd_new'])); mysql_query("update users … ![]() | |
Re: [CODE]<span onmouseover="this.style.cursor='pointer';" onmouseout="this.style.cursor='default';">hi</span>[/CODE] | |
Re: [CODE]$querypub = "SELECT * FROM art_publish where category='$bnrow[1]' ORDER BY id DESC limit 3"; $qrypub = @mysql_query($querypub,$connect) or die ("Wrong Query");$f = "1"; while ($pub = mysql_fetch_array ($qrypub)) {if($f == "1"){$f++;echo "only image showwn";} else{echo "dont echo image";} echo " <tr> <td> <div class=\"news_title\"><a href=\"art.php? show=art&id=$pub[id]\">$pub[title]</a></div> <div class=\"newssubtitle\">$pub[subtitle]</div> <div class=\"newsdate\">$pub[sdate]</div>"; … | |
Re: u can use javascript setInterval(); and content management systems are dumb. | |
Re: what the heck is the @ doing in the code? i never use that | |
Re: WWHAT? u cant use spaces and have to use ? that doesnt make any sense? what do u have a code or something more specific on what u nee dhelp with? | |
Re: [QUOTE=almostbob;1224126]save the date in a timestamp, not some human-centric text date format, php date(); mysql now(); work on query [icode]if($date+(30*24*60*60) < date()) { /* kill the upgrade level */}[/icode] thought process only very obviously not valid code cron:noun; approximately the server equivalent of windows task scheduler[/QUOTE] u should do this: … | |
Re: if u have a great enough server that it will let u use up so much resorces or whatever that sending an email takes up. do a while statement and send the email to each one. like u would do anything else. just send the email: [CODE]$message = "your html … | |
Re: in adition to checking the valid user session vairbale u should do this as a logout precashionairy: [CODE]$_SESSION = array(); session_unset(); session_destroy(); if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()-55, '/'); }[/CODE] dont change anything, but u can change the -55 to another negatiove number only a negative number | |
Re: might want to use mysql_real_escape_string() before u put it int he session vairballe | |
Re: it doesnt make sense to do it any other way but in the query | |
Re: if u want to get a specific value from mysql database u can use mysql_result();[CODE]$this = mysql_query("SELECT columname FROM tablename WHERE anycolumname = '$variable'"); $columnnamevalue = mysql_result($this, 0); [/CODE] the 0 gets the first result i think if there are more than one result than 2 will get the third … | |
Re: use sessions, if there session variable doesnt match the id in the url deny acces | |
Re: [CODE]if($_SESSION == "true"//or whatever u do to check if the variable is true?){include();}[/CODE] i dont know what u mean by simulatanously but thats all i understand u want tod o | |
Re: u dont put <?php and ?> in php variables. you have to insert a variable like the person above stated [CODE]<?php echo $variable; ?> <?php echo "my variable is ".$variable; ?> or <?php echo "my variable is $variable; ?> sometimes works. and then u can do it this way: <?php … | |
Re: im sorry, but the simplest way to do it is my way, which is [CODE]<input style="background:transparent" onfocus="this.style.background='black';this.style.color='#ffaacc';" onchange="this.style.background='transparent';this.style.color='black';">[/CODE] which can be done for "like" all elements | |
Re: nice code. workd for me enim213! | |
[CODE]<form name="form"><textarea name="message"></textarea> <img src="" onmousedown="(do the prompt box)"> </form>[/CODE] i need help how to figure out how to prompt the user with a javascript prompt() to enter a url(link) that includes an http:// after the user enters the url in the prompt box and clicks OK, i want the … | |
Re: etsys arent artists they are foul. etsy will be banned. | |
[CODE]$dir = opendir ($path); while (false !== ($file = readdir($dir))) { if (strpos($file, '.png',1)) { echo "$file <br />"; } } [/CODE] super short code that lists the .png filenames obviously the $path variable is the path to the directory. how can i list them instead in abc order cause … | |
sorry i figure it out again. really really easy: i really need to know. i got this one script that is alphabetally and minimal. which i luv. but i need it to be numerical because well, if ther is more than 9 images it sorts it wrong with abc order! … | |
for some reason, the exact same code without the added "$i[id]" part is working somewhere else on my site, but this is just rediculously NOT working for what i have here: [CODE]function nimg($directory='.') {return count(glob($directory."/item/".$i[id]."/*"));}; [/CODE] i tried this code when there was no item directory made yet and still … | |
like im at [url]http://www.mysite.com/thispage.php?black=acolour[/url] and i need the whole thing in the variable not just the mysite.com/thispage.php i need the variables. NOW the pages variable names will be changing so i cannot count on them being the same name like "black" everytime. so far i have got [CODE]$fullurl = "http://www.mysite.com".$_SERVER[SCRIPT_NAME];[/CODE] … | |
[QUOTE]$tag = $_GET[tag]; $search = mysql_query("SELECT * FROM `threads` WHERE FIND_IN_SET('$tag', `tag`) = '$tag'"); [/QUOTE]why is this returning all of the rows in the table they all do not have the same tags none of them have the same tags as each other yet the column name is tag. the … | |
i have a dirctory full og images starting from 1.png to like 55.png not skipping a number. im going to keep adding to the directory in consiquative order. how do i have an image show on a page and then it get clicked on and then it turns to the … | |
[CODE]$arr = array(1 => "rambow", 2 => "rambow", 3 => "popcorn", 4 => "rambow");[/CODE] how do i make it in simpler format so i dont have to keep typing "rambow" for every number that => "rambow" ? cause theres a lot of "rambow" for a whole bunch of numbers. isnt … | |
i tried letter-spacing: -.02 em and i like it. but does -.002 work? is there a limit on the decimal things? maybe they arent called points but someone has to know what im refering to okthxbai | |
like theres two pages. page one calls page two and displays the output of page 2 on page 1 via ajax. now can i click on page 2's output(on page one) and have it execute another javascript function to call AJAX(a third page) ? or what? if so... how? |
The End.