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

71 Posted Topics

Member Avatar for garyjohnson

Hello I have a simple for and PHP that uploads multiple images to a file. The problem is I want these images to be resized when they are uploaded. Does anyone know of a simple way to resize these images with PHP? I am not a professional so further explaining …

Member Avatar for haree54
0
3K
Member Avatar for garyjohnson

I am trying to allow my users to upload videos to my site and i have the php file upload but it will not work, it worked with images but once i changed it to video it stopped working this is the code <?php $allowedExts = array("mp4", "mov", "avi", "flv","mpg", …

Member Avatar for diafol
0
3K
Member Avatar for garyjohnson

I am doing a start up and am figuring out my stack. I've been using php for around 5 years now and am extremely familiar with it. However, I've recently been introduced to node.js and have seen it is on the rise. I'm not sure what to use for server …

Member Avatar for Kyle Wiering
0
288
Member Avatar for garyjohnson

Here is a link to a list of college names and their .edu email http://pastebin.com/LND21t5F I want to take those lines of code and put the .edu part into one coloumn of a database and the name of the college into another coloumn. My database is structure like this (id, …

Member Avatar for broj1
0
119
Member Avatar for garyjohnson

Okay I have a html upload form here, What is does is displays a browse button so users can upload files to my site, what I want them to be able to do is completly rename the file that they are uploading once they upload it to my site, but …

Member Avatar for Thobby
0
15K
Member Avatar for garyjohnson

I have a domain name lets say. mydomain.com and it has a hosting account. But I also have another domain name, mydomain2.com that doesnt have a hosting account. How can I make mydomain2.com go directly to mydomain.com? I am using Host Gator

Member Avatar for vps9.net
0
194
Member Avatar for garyjohnson

I have a div that has an image as its background. But the image only covers up about 80% of the screen. I want to make the extra 20% of the screen to be black but its only coming up as white. How can I set the background images and …

Member Avatar for shophiarajan47
0
428
Member Avatar for garyjohnson

I have an account with Host Gator that allows me to create my own email address's. I created my own email address, lets say its called "myemail@mydomain.com". Now I have a PHP script that automatically send out emails to users but when the emails are sent they are sent by …

Member Avatar for jKidz
0
323
Member Avatar for garyjohnson

I have a link that once clicked is suppose to make a div visible. So far it does but it only makes the div visible for a second then it returns to being invisible. I gave the div the value `display:none;` in Css and the javascript gives it the value …

Member Avatar for hericles
0
1K
Member Avatar for garyjohnson

I am trying to create a website where users post onto a forum and leave and email adress so others can respond to the forum post but I want the email adress they leave to be encrypted like Craiglist does. So if my email is myemail@gmail.com it will be posted …

Member Avatar for cereal
0
111
Member Avatar for garyjohnson

I have a database which has multiple tables. I want all the table names to be displayed in a drop down html menu. I have a php function which I call on my html document. function namealbums() { $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); …

Member Avatar for dukumanis
0
3K
Member Avatar for garyjohnson

Hello, I have a few links that I have given a relative position. They have the widths set to 200px, however they do not follow this at all and only have the width wrap around text. When they had the position of float, they followed the width rule of 200px. …

Member Avatar for nauticalmac
0
242
Member Avatar for garyjohnson

Okay so I have an android app called Rate My Plate and it needs users. I mean it needs a lot of users. It's an app where if there are a low amount of users then it's pointless but the more users the better it is. Now I have tried …

Member Avatar for jafrain_jaff
0
183
Member Avatar for garyjohnson

I have a query that collects multple ID numbers and stores them into a php Array. I then want to make a mysql query for every result in the php Array. I believe I am on the right track but am getting an error saying the `join()` method has invalid …

Member Avatar for broj1
0
443
Member Avatar for garyjohnson

OKay so this my have been asked before but I have more of a general question than an issue. I don't understand Mysql_num_rows() becuase I don't have any information within my database table so the number or rows should be 0 but what happens is I get an error and …

Member Avatar for diafol
0
122
Member Avatar for garyjohnson

I can not access the database with Mysqli_connect(). I have all the correct information into the funciton but it wont let me. This is the syntack that I use $link = mysqli_connect("hostname", "username", "password", "db_name"); I get this error 10-01 22:20:27.182: E/JSON(8700): <br />n<b>Warning</b>: mysqli_connect() [<a href='function.mysqli-connect'>function.mysqli-connect</a>]: (42000/1044): Access denied …

Member Avatar for <M/>
0
149
Member Avatar for garyjohnson

Hello, this is a broad question but I need help selecting a webhost. Currently I am with GoDaddy and they are a great hosting site. The problem I have is they only allow 1GB how data to be stored in a database. They do allow unlimited databases but I am …

Member Avatar for mmcdonald
0
350
Member Avatar for garyjohnson

How can I replace <br>, \r, \n with " ". Which is an empty space. Is there a way to detect these characters in a string and replace them with a single white space?

Member Avatar for mmcdonald
0
1K
Member Avatar for garyjohnson

I want to remove all enters from an input and replace them with a single space. By that I mean something as </br>. So if someone places the input like this Hello, my name is bob. How are you? It will look like this, Hello, my name is bob. How …

Member Avatar for buzzfire
0
170
Member Avatar for garyjohnson

I have a query that selects data and places it into an array. This array can contain 'null' as a results. I want to remove all the varaibles that say 'null'. I have a code that is suppse to remove all the null variables but instead it replaces them with …

Member Avatar for diafol
0
372
Member Avatar for garyjohnson

I have a code that places the time into a database in the format Year-Month-Date Time. The time isnt in Pm or Am. I want to change the code from that into Month/Day/Year and the time in am or pm. Is this possible? Or should I be using a different …

Member Avatar for diafol
0
373
Member Avatar for garyjohnson

I have a database that contains multiple comments. Each comment has their own ID. I want to select 5 comments from the database, store the last comments ID into a variable and then select 5 more comments at a later time. When I collect 5 more comments at a later …

Member Avatar for pritaeas
0
139
Member Avatar for garyjohnson

I have a mysql query that seperates an array of variables and uses each variables to compare inside the database. The query uses a OR clause and I want to make it so it can also use an AND clause. The trick is I want the left side of the …

Member Avatar for garyjohnson
0
253
Member Avatar for garyjohnson

This is my xml layout for the log in page <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillViewport="true"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingBottom="@dimen/activity_vertical_margin" > <!-- Logo --> <TextView android:id="@+id/headText" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="60dip" android:textSize="45sp" android:fontFamily="sans-serif" android:textColor="#FFFFFF" android:textStyle="bold" android:layout_gravity="center" android:gravity="center" android:text="@string/logo" /> <!-- Email TextField --> <EditText android:id="@+id/loginEmail" android:layout_width="fill_parent" android:layout_height="wrap_content" android:inputType="text" android:hint="@string/username_text" …

Member Avatar for bCubed
0
4K
Member Avatar for garyjohnson

I have a query in php that has an offset in it. I want the offset value to be a variable but I am not sure how to do so. This is my query but it comes up as an error. $query = "SELECT * FROM comments WHERE `commenter_username` IN …

Member Avatar for diafol
0
183
Member Avatar for garyjohnson

Hello, I have a mysql query $query = "SELECT * FROM comments WHERE commenter_username IN (" . join(',', $list) . ") Or Number IN (" . join(',', $list) . ") ORDER BY comment_id DESC"; I want the query to select one row, the row with the highest id. Then store …

Member Avatar for Atli
0
301
Member Avatar for garyjohnson

I know this has been asked a thousand times in other locations but I have tried many solutions and can not get an answer. I have two divs, one called overlay and one called image_case. The overlay covers the entire page, then the image_case is suppose to be in the …

Member Avatar for JorgeM
0
328
Member Avatar for garyjohnson

Hello, I have a php script which detects if an image is vericle or horizontal. Then it resizes it to my certian specifications. An issue is I want the script to resize the image and then create a thumbnail image as well. The script works when resizing an image but …

Member Avatar for garyjohnson
0
137
Member Avatar for garyjohnson

Hello I have made a website for a cake making business and its my first website I am making for a customer and would like some input from some outsiders. I have only made the home page because I am not sure about my layout and if it looks good. …

Member Avatar for Lincoln65
1
220
Member Avatar for garyjohnson

I have a website that has 2 jquery sliders. This webisite works perfectly fine with both of them. I then created another site with the same exact code for 2 jquery sliders and this site will only run one slider and I can't find the problem! This is the html …

Member Avatar for garyjohnson
0
301
Member Avatar for garyjohnson

Hi, I have a question about web hosting. I want to purchase a hosting package from web.com, and they have mysql database. But the web hosting package says i can only have 300mb, but the issue is theres a 25 in front of the 300mb, it looks like this 25 …

Member Avatar for garyjohnson
0
221
Member Avatar for garyjohnson

I am only asking How do I display the first frame of a video in a small box near the videos name onto my browse webpage?

Member Avatar for pixelsoul
0
153
Member Avatar for garyjohnson

Hello, I have been trying everyhting and I still have not gotten any good results for my cholor sheme. I need the scheme to go well with yellow, green, and red. I know random colors that dont really go well together. But Ive tried black but it makes my site …

Member Avatar for pritaeas
0
122
Member Avatar for garyjohnson

I have a div, which is a contanier. Inside is another div that displays numbers. <div class="commentie_box"> <div class="commentie_number"> 1234567890 </div> </div> Here is the css .commentie_box{ float:right; width:260px; padding-top:10px; height:49px; border:1px solid #0FF; } .commentie_number{ position:relative; margin:0 auto; padding:5px; padding-top:2px; padding-bottom:2px; width:auto; height:35px; background-color:#fff; border-radius:5px; text-align:center; font-size:25px; } I …

Member Avatar for garyjohnson
0
218
Member Avatar for garyjohnson

Hi, I am wondering if php is able to add text to an image once it was uploaded by a user. The user would type the word 'cool' and upload a picture then once they push submit it would send the image to a serperate file and imprint the words …

Member Avatar for LastMitch
0
135
Member Avatar for garyjohnson

I have tried every solution I have come across and am still not getting any results. I have a comment box and I am trying to remove all repetative new lines or `/r/n` from the input. if (isset($_POST['comment'])) { $comment = mysql_real_escape_string($_POST['comment']); $comment = filter_var($comment, FILTER_SANITIZE_STRING); $comment = nl2br($comment); //this …

Member Avatar for garyjohnson
0
2K
Member Avatar for garyjohnson

Hi, I am using the Like %$search% clause in my query to find results in my database, and I was wondering if this is the most effective and efficent way to do this?

Member Avatar for diafol
0
161
Member Avatar for garyjohnson

I know there are other post conserning this but they dont seem to help me. When I run the varaible `$results` through the function `Mysql_num_rows()` it returns as an error saying its not a valid result. Also same for the `mysql_fetch_array()`. function results(){ if ($_POST['search'] != "") { $search = …

Member Avatar for garyjohnson
0
214
Member Avatar for garyjohnson

I am making a mysql query that gathers comments for a user, it works properly, I connect to the database and recieve the comments for a user, but it is not showing the first comment for the user. Here is the code function comments(){ //connect to db connect_db_members(); //start query …

Member Avatar for garyjohnson
0
307
Member Avatar for garyjohnson

Hello, this is just a general question. I always look at every website source when I visit it and I notice they are very robust and complex. Then I look at my site and think wow, mine is nothing like that. Is there an issue with that? Am I not …

Member Avatar for LastMitch
0
198
Member Avatar for garyjohnson

I have javascript code with displays the placeholder attributes on browsers which dont support HTML5, I am testing the code in IE. It works on every field which is type text. But when its type"password" it displays the placeholder as a password and not text. I need to it show …

Member Avatar for LastMitch
0
882
Member Avatar for garyjohnson

This is my java code, all the id's are the ids of divs on the page. They are all labeled respectiviley. It takes the input of the form. There are six possble errors that can occur which are, the emails dont match. First name contains characters other than letters, last …

Member Avatar for garyjohnson
0
236
Member Avatar for garyjohnson

Hi, I was wondering if I am going to make a social networking site if it was neccesary for me to understand how classes are used? Do i need to use classes or can I just use a series of functions?

Member Avatar for diafol
0
146
Member Avatar for garyjohnson

Okay so I have a PHP script that creates user acounts and encrypts the password then saves it into the database. The login form just compares the users password with a password in the database. The database has a password to connect to and user name. Is this enough security …

Member Avatar for garyjohnson
0
256
Member Avatar for garyjohnson

I am trying to insert data into the database. It is a text area from html which looks like this where is says description. Everything else works fine. <table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <form name="form2" method="post" action="uploadmachine.php" enctype="multipart/form-data"> <td> <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td …

Member Avatar for garyjohnson
0
318
Member Avatar for garyjohnson

This code is suppose to take the images array and use its value for the name of the table. When I echo the images varaible I get kids, which is what $images[3] is set to equal, but when I put it in the query the $result2 is echoed as resource …

Member Avatar for AARTI SHRIVAS
0
293
Member Avatar for garyjohnson

Okay, I dont have any code for this I am just not sure at all on how to do what I want. I have a website which displays pictures. There are albums and when you search the album it brings up all the pictures of that album. Now lets say …

Member Avatar for garyjohnson
0
276
Member Avatar for garyjohnson

Okay what I am trying to do might be hard to understand, but I will give it my best shot. I have created a script which selects data randomly from a table called albumname in a databse called characters. This array is then used again in a mysql_query to select …

Member Avatar for diafol
0
238
Member Avatar for garyjohnson

I am trying to make an array which has a random selection of database results in it. This is what I have so far, <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("photos", $con); $query="SELECT album FROM albumname ORDER BY RAND() LIMIT 9"; $result= …

Member Avatar for garyjohnson
0
3K
Member Avatar for garyjohnson

Okay so I have created a function which brings up a column of information into a html drop down menu from a certain table. Now I want the data selected to be put into a value so it can be used in an upload form. This is the function. Thanks …

Member Avatar for garyjohnson
0
530

The End.