Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~17.0K People Reached
Favorite Tags

55 Posted Topics

Member Avatar for jakx12

if($_SESSION==""){ header("location: pleaselogin.php"); }else{ //is session is equal to something }

Member Avatar for wadeshuler
0
4K
Member Avatar for morteza_ipo
Member Avatar for sacarias40

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

Member Avatar for sacarias40
0
130
Member Avatar for sacarias40

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 …

Member Avatar for diafol
0
1K
Member Avatar for sacarias40

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

Member Avatar for diafol
0
87
Member Avatar for sacarias40

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

0
59
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
226
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
356
Member Avatar for jmonit
Member Avatar for sacarias40
0
2K
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
87
Member Avatar for tgr0ss83

'your', 'string', 'should', 'appear', 'like', 'this' right? your first arg in implode should be [ICODE]implode('', '', $value);[/ICODE]

Member Avatar for tgr0ss83
0
1K
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
150
Member Avatar for ryan311

[CODE] if(isset($_POST['delete'])) { foreach($_POST['checkbox'] as $id){ mysql_query("DELETE from rent WHERE cno = '.$id.'"); ) }[/CODE]

Member Avatar for celz
0
191
Member Avatar for sacarias40

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.

Member Avatar for gcornejo
0
101
Member Avatar for sacarias40

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 …

Member Avatar for kooia
0
98
Member Avatar for raju_boini525
Member Avatar for morkat
0
108
Member Avatar for sacarias40

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

0
48
Member Avatar for philip.s

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

Member Avatar for diafol
0
123
Member Avatar for sacarias40

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 …

Member Avatar for phpuser
0
62
Member Avatar for QWaz

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 "."

Member Avatar for sacarias40
0
117
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
133
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
168
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
123
Member Avatar for sacarias40

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 …

Member Avatar for abdul8919
0
99
Member Avatar for wisorac
Member Avatar for sacarias40

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!

Member Avatar for studentcredit
0
179
Member Avatar for k2k

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 …

Member Avatar for MehdiAnis
0
545
Member Avatar for CSquare93

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]

Member Avatar for MidiMagic
0
117
Member Avatar for sacarias40

i have a string like this: [CODE]location = '#http://www.website.com';[/CODE] how can i take off that hash sine? regards

Member Avatar for essential
0
143
Member Avatar for juanki09
Member Avatar for csharplearner

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.

Member Avatar for sacarias40
0
258
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
183
Member Avatar for sacarias40

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"

Member Avatar for Narue
0
76
Member Avatar for sacarias40

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:

Member Avatar for sacarias40
0
132
Member Avatar for sacarias40

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

0
86
Member Avatar for jonow
Member Avatar for asiyeh

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.

Member Avatar for sacarias40
0
116
Member Avatar for sacarias40

Does anybody know where i could get some information or guides on designing my own CMS???

Member Avatar for sacarias40
0
108
Member Avatar for tirso

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.

Member Avatar for sacarias40
0
115
Member Avatar for sacarias40

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.

Member Avatar for bryansmith123
0
122
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
307
Member Avatar for sacarias40

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 …

Member Avatar for superchris
0
101
Member Avatar for sacarias40

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

Member Avatar for sacarias40
0
119
Member Avatar for sacarias40

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.

Member Avatar for sacarias40
0
70
Member Avatar for sacarias40

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

Member Avatar for mwasif
0
85
Member Avatar for sacarias40

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

Member Avatar for sacarias40
0
95
Member Avatar for sacarias40

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

Member Avatar for roryt
0
138
Member Avatar for sacarias40

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 …

Member Avatar for kanaku
0
232
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
66
Member Avatar for sacarias40

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

Member Avatar for timothybard
0
118

The End.