- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
55 Posted Topics
Re: if($_SESSION==""){ header("location: pleaselogin.php"); }else{ //is session is equal to something } | |
Re: [url]http://css-tricks.com/dynamic-dropdowns/[/url] You're Welcome | |
Hey Guys, I'm looking for the best way to model my noSql Database to allow for user notifications and activity stream. what would the flow to something like this be? I don't want to annoy the user with 1000 notifications if they don't need that. Activities and Notifications will include, … | |
Hey guys, im working on a website and i need to design the database so that a user can follow another user and it will be easy to figure out the number of people i follow and the number of followers i have. I'm using mongoDb btw. [URL="http://www.mongodb.org/"]http://www.mongodb.org/[/URL] can someone … ![]() | |
I have a project im working on that includes an activity stream. I'm working in php and MongoDb (noSql). The site can post articles, users can promote articles or add them to favorites. How may i include these in an activity stream similar to facebook or twitter? Example: Josh, john, … ![]() | |
I have a project im working on that includes an activity stream. I'm working in php and MongoDb (noSql). The site can post articles, users can promote articles or add them to favorites. How may i include these in an activity stream similar to facebook or twitter? Example: Josh, john, … | |
I'm creating a bot scraper that gathers information off of other websites and i am using html simple dom parser to do it. I have found a bug though. I ran into one website that doesnt parse.\ Here is a sample of the code that it cannot parse: [CODE]<div class="header"><div … | |
Hey guys, I am writing a bot class to scrape some information off of websites. Here are the requirements. [LIST] [*]Specify Url [*]Check for valid url [*]'GET' contents of url with curl [*]check mime type & response status code [*]check for special url [LIST] [*]parse special data [/LIST] [*]parse for … | |
Re: Just use html 5 doctype. its simple as this: [CODE]<!DOCTYPE HTML>[/CODE] | |
I have a modal script. I need the modal box to be centered in the middle of the screen. But there is a catch. The modal box can be of a different sizes and i would like to have a offset dependent on the height of my modal box. If … | |
Re: 'your', 'string', 'should', 'appear', 'like', 'this' right? your first arg in implode should be [ICODE]implode('', '', $value);[/ICODE] | |
Hey guys, I am making a bot for a link sharing site. I am using the request external curl class and i have a dilemma that i think you guys could help with. Query Variables appended on the end of a url such as ?something=234 I do not know how … | |
Re: [CODE] if(isset($_POST['delete'])) { foreach($_POST['checkbox'] as $id){ mysql_query("DELETE from rent WHERE cno = '.$id.'"); ) }[/CODE] | |
is there an existing api for a postal code system? for example, you are at a gas stations website, and you want to find a station nearest you. so you type in your postal code and it returns the result.\ thanks. | |
Does anybody know the most efficient way to attach a location to an object in the database? I would like to allow a search for people in a certain area (as in a certain radius) I was thinking about just letting people specify a city and state instead of sticking … | |
Re: [url]http://net.tutsplus.com/[/url] This place has tons of nice tutorials. | |
I was wondering if anybody knew of a totally free web service that allows you to poll for city and state just by inputting the zip code. Thanks, Zack | |
![]() | Re: [CODE] foreach($data as $link){ mysql_query("INSERT INTO table_name (link, something, something_else) VALUES('".$link."','blah1','blah2')"); } [/CODE] basically when you have your $data it is an array() that means $data = array("http://link1.com", "http://link2.com", "and so on..."); foreach just goes over each item in data array and does something for each item in the array … ![]() |
I already have a mod rewrite directing all traffic in my site through my domain.com/index.php file. i because this is happening, i need another rewrite to make any call to the url of: domain.com/blog to actually go to [url]http://domain.com/blog/index.php[/url] instead of just back to my normal domain.com/index.php is there anybody … | |
Re: You can also use money_format(); or number_format(); [url]http://www.php.net/manual/en/function.money-format.php[/url] [url]http://php.net/manual/en/function.number-format.php[/url] this will do exactly what you want without the math. and yes str_replace() is what you would want to use to take out the "." | |
Hello everybody, Im writing an application that takes various different classes. background: i basically have a bootstrap type of file that requires all the needed classes. inside each individual class file at the bottom, i have instantiated the class. later on in other theme files i want to use some … | |
Does anybody have any ideas of how to make an advanced search function? I would like to accept a string as the search query. i want it to run a query on the string as a whole, and for each word in the query. The problem is here: The results … | |
Ok i have a couple email functions, the one that works, sends an email to the recipiant and the one that doesnt work how i want it sends an email with an activation link in it. the working email says its from [email]support@domain.com[/email] (like i want it to say) but … | |
Ok im working on a site [URL="http://spyn.bychosen.com/"]http://spyn.bychosen.com/[/URL] and this is the splash page. in internet explorer 8 when you hover over the portals they are supposed to get brighter. there is a shadow that is being faded out with js and it makes the color show brighter. in IE the … | |
Re: obj.show makes the text entered in form1 appear visibly in form2 | |
Hello, it has come time for me to be able to accept a credit card/multiple credit cards on a website. I ask you guys to guide me in the correct direction to doing this. I do not want to use pay pal or a payment gateway. Thank you, much regard! | |
Re: wrote this really quick for yah hope this helps. hope i didnt make any errors [code=syntax] <?php session_start(); function make_safe($string){ return mysql_real_escape_string(trim($string)); } //check to see if they pressed the button if(isset($_POST['submit'])){ //get input data $username = make_safe($_POST['username']); $password = make_safe($_POST['password']); //check to see if the fields are filled in … | |
Re: don't use tables, use divs [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>The title</title> </head> <body> <div id="container"> <div id="header"> </div> <div id="navigation"> </div> <div id="main"> </div> </body> </div> </body> </html> [/code] | |
i have a string like this: [CODE]location = '#http://www.website.com';[/CODE] how can i take off that hash sine? regards | |
Re: and you need to escape your parenthesis | |
Re: well you could use a paginator and count the number of words in the entire 'book' then each word i part of an array and you just output a certain number of array items per page.....specified in the paginator settings. | |
I was wondering if it was possible to upload say a picture file and a text file and in the script put them into a zip file programatically. if this is possible could you offer some tips or links please? regards! Thank you it looks like ill be reading for … | |
i need to know how to make a string variable in C++ i need to hold the file path of the desktop on a variable. in vb.net it would be like this: dim path as string = "path\to\desktop" | |
Hello, i was wondering if anybody could tell me how to make my textboxes with the rounded corners. I would like something very similar to this. See the photo attached: | |
[URL="http://www.qblogs.comuv.com"]http://www.qblogs.comuv.com[/URL] go to that site and check out the navbar at the top. i have some problems with it. in firefox, at some zoom levels, the matrix missaligns itself and is out of line and looks like crap. in IE the background with the shiny gradient should go all the … | |
Re: you should look into jquery. its a javascript framework that has a lot of neat functions built in. it makes js much more easy to digest. | |
Does anybody know where i could get some information or guides on designing my own CMS??? | |
Re: all you need to do is have a row in your db called active. then you can run a query on your db with "php" it would look for all members with the value as online. | |
i am new to RSS and for that i have no idea where to start to get it on my webpages. i know i need a reader? and i need a feed, how can i get these? regards. | |
im working on a site and i would like to display the newest members within 30 days. how would i do this. im using mysql database. when the person signs up, it records the current date into their row. my module should show people that have signed up within the … | |
i cant see an error [code] <?PHP session_start(); if (isset($_POST['Submit'])) { $email = $_POST['email']; $password = $_POST['password']; if (isset($email) && isset($password)) { $handle = mysql_connect("localhost","root",""); mysql_select_db("man_of_honor"); $safe_email = sql_safe($email,$handle); $safe_password = md5(sql_safe($password,$handle)); $login_query = "SELECT * FROM moh_members WHERE email = '".$safe_email."' AND password = '".$safe_passwd."'"; $result = mysql_query($login_query); $num_rows … | |
i am designing a few pages. the pages have a few main divs and that is how i am inserting the background(with css) i can render the whole background to the browser but i dont get how to nest divs inside divs with OOP. any help would be greatly apreciated! … | |
i am trying to set up a site and i only need to sell about 3 products. what would your guys' best opinions be that i handle this in. i am using php PS. the products would be downloads. | |
i get this error:[quote]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index, user_id, username, message) VALUES(' ', '4', 'zack', 'jh')' at line 1[/quote] [code]<?php session_start(); $_SESSION['user_id'] = 4; $user_id = $_SESSION['user_id']; $_SESSION['username'] = … | |
i get this error:[quote]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index, user_id, username, message) VALUES(' ', '4', 'zack', 'jh')' at line 1[/quote] [code]<?php session_start(); $_SESSION['user_id'] = 4; $user_id = $_SESSION['user_id']; $_SESSION['username'] = … | |
does anybody have any hints as to how i could make a user profile. smiliar to myspace/facebook/ etc... i would like to use php | |
i have a webpage that i built on my computer. a 1024x768 reslolution screen is what i used. but when i use a bigger monitor, the page is the same size, but its pushed up against the left side of the monitor. could somebody tell me the way to always … | |
im making a website. im using background images in the divs. i am inserting the images through css. the website is livingandlegacy.com the problem im having is in firefox. there is a main spacer its the big green area in the middle. in firefox it does not show up. i … | |
[code]Public Class Form1 Private Sub TextBox1_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.MouseHover ToolTip1.SetToolTip(TextBox1, "Cash Flow") End Sub Private Sub TextBox2_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.MouseHover ToolTip1.SetToolTip(TextBox2, "Account Balance") End Sub Private Sub TextBox1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TextBox1.MouseDown TextBox1.Clear() … |
The End.