Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
88% Quality Score
Upvotes Received
14
Posts with Upvotes
14
Upvoting Members
12
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
7 Commented Posts
~34.2K People Reached
Favorite Tags
Member Avatar for mithesh

<?php printf("This is the first line. \n"); printf("This is the second line"); ?> This is the code but it isnt printing in new line.

Member Avatar for prabhjots226
0
5K
Member Avatar for Namibnat

I am still trying to get a grasp on the php/mysql interaction. Why does something like this not work and without all the error catching, can one do something like this? [CODE] $result = mysql_query("SELECT * FROM stadium WHERE gametime = `$_z`;"); $row = mysql_fetch_row($result); $bababa[name] = $row[0]; $bababa[town] = …

Member Avatar for guruparthi
0
710
Member Avatar for cdes1145

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\classes\Trade.class.php on line 12 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\classes\Trade.class.php on line 19 Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\classes\Trade.class.php on line 70 Line 12 [CODE]while ( $trade_users_row …

Member Avatar for guruparthi
0
657
Member Avatar for davefitze

hi guys working on a little basic forum for collage but i keep getting this error kinda driving me crazy i know its something small but i cant spot it. any help would be great [B]Notice: Undefined index: topic_id in /users/2014/daf1/public_html/cs1109/lab18/showit.php on line 14 Warning: mysql_num_rows(): supplied argument is not …

Member Avatar for Sibzsolutions
0
280
Member Avatar for abelingaw

I can't figure out what is wrong since my codes are correct. [CODE] $host="localhost"; $username=""; $password=""; $db_name="database"; $tbl_name="members"; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("Cannot Find Database"); [/CODE] Keeps on saying the die statement. I'm using WAMP, and yes. my database name is "database" and table is name is "member". …

Member Avatar for abelingaw
0
121
Member Avatar for jonnyboy12

Hello all. I am working with some code like this. [CODE] echo"<div style='background-image: url(boxshadow2small.jpg);text-align:center; height: 266px; width: 225px; '></div>"; [/CODE] I wanted to be able to control the size of this div with php conditions. I thaught i could do it like this, but its not working. [CODE] $someVariable = …

Member Avatar for jonnyboy12
0
116
Member Avatar for ptara1

I have a html form on another page that is automatically filled from data from the table. I then run the the following script on submit to update the row if any information is changed. Here is the code [CODE] <?php $db=mysql_connect ("connection info") or die ('I cannot connect to …

Member Avatar for klemme
0
170
Member Avatar for eduardc

I donĀ“t understand the error: Parse error: syntax error, unexpected T_VARIABLE in /home/eduardli/public_html/web_designer/insert.php on line 21 php file: [CODE]<html> <body> <?php $con = mysql_connect("localhost","eduardli_user","-z.x,c"); if (!$con) { die('Could not connect: ' . mysql_error()); } $description = $_POST["description"]; $price = $_POST["price"]; $quantity = $_POST["quantity"]; mysql_select_db("eduardli_company", $con); mysql_query ("INSERT INTO Products (Description, …

Member Avatar for karthik_ppts
0
565
Member Avatar for perohijo

Hello. Although I have seen someone else having a similar problem here, I got stuck with an error. This is the code and it shows a red parenthesis. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>JumbleMaker</title> </head> <body> <?php function DisplayError($fieldName, $errorMsg) { global $errorCount; echo …

Member Avatar for perohijo
0
150
Member Avatar for pallen

Hi folks, I have 2 very similar html contact forms on my site that run through PHP and get the results to the staff in an email. I use strip_tags to remove malicious content on each step of the form. Recently, a user sent an email that included some URL's. …

Member Avatar for diafol
0
151
Member Avatar for Bar2aYunie

Hello, I've got a MySQL db which contain addresses. I also made a script to easily add new entries to the db with a number of columns. Now, I do know how to make a script to display what's in the db... But I would like to know how to …

Member Avatar for kekkaishi
0
97
Member Avatar for newbi11

i came across a jquery slide out menubar here [url]http://tympanus.net/Tutorials/UIElements/SlideOutMenu/[/url] . its a mouse over menu bar made with jquery . however i would like to know if the slide out can be brought out through a click rather than a mouse over . here is the source : [CODE]<!DOCTYPE …

Member Avatar for kekkaishi
0
215
Member Avatar for chudapati09

I'm creating a calculator, and I'm required to have a feature of key press. Ex: I have a GUI with each numerical value (0 - 9) has a button. Now when the user press 7 on the keyboard, I need buttonSevenActionPerformed to be invoked. The signature of buttonSevenActionPerformed is: private …

Member Avatar for kekkaishi
0
119
Member Avatar for qazplm114477

I have spent about a couple of hours trying to read the pcre regex syntax on the php.net manual but I can't for the love of god grasp the concept of it. If anyone can help me it would be greatly appreciated. I'm trying to split some strings into an …

Member Avatar for kekkaishi
0
105
Member Avatar for ayesha789

Hi, I want to make a form , in which I have 4 input Fields. [LIST=1] [*]Date1 [*]Date2 [*]Calender Days [*]Working Days [/LIST] When I enter date1 as 2011-04-07 and date2 as 2011-04-11 Then I require in Calender Days = 5 inclusive of date1 and date2 and Working days = …

Member Avatar for McLaren
0
226
Member Avatar for Newskin01

So I have an array [CODE]String[] directions = {"n", "e", "s", "w"}; Random dirPick = new Random(); int rNum = dirPick.nextInt(4); String direction = directions[rNum];[/CODE] Now say that one of these doesn't exist and if it picks it I need to take it out of being able to be picked. …

Member Avatar for DarkLightning7
0
124
Member Avatar for error.exe.er

Hi every one ! Guys i am trying to do the Fibonacci numbers without an input just want it to number 8 then stop, But i want to do it using Do While i did it but , i am missing something i can't find what is it its won't …

Member Avatar for error.exe.er
0
97
Member Avatar for jacob21

Hi, query showing error [CODE] "SELECT * FROM admin INNER join category on category.cat_id=admin.cat_id where admin.company=".$_REQUEST['company'].""; [/CODE] thanks

Member Avatar for kekkaishi
0
73
Member Avatar for cnlengr

Hi, I've been learning java, and I have a question about creating an array. Basically, what I want to do is that I wish to create an array with an unknown array length, then ask the user to input values to be stored in the array. The length of the …

Member Avatar for cnlengr
0
111
Member Avatar for debasishgang7

I am using a XXS filter function to filter unwanted code.Here is my function xxs.php [CODE]<?php function clean($data) { // Fix &entity\n; $data = str_replace(array('&amp;','&lt;','&gt;'), array('&amp;amp;','&amp;lt;','&amp;gt;'), $data); $data = preg_replace('/(&#*\w+)[\x00-\x20]+;/u', '$1;', $data); $data = preg_replace('/(&#x*[0-9A-F]+);*/iu', '$1;', $data); $data = html_entity_decode($data, ENT_COMPAT, 'UTF-8'); // Remove any attribute starting with "on" or …

Member Avatar for debasishgang7
0
1K
Member Avatar for dornaled

hi can any body defien HTML Element Syntax and whats use in webdesign. help me. thanks advanced.

Member Avatar for edith135
0
86
Member Avatar for professor123

can anyone help me, l have a laptop an a desktop and a crossover(network cable). l want to be able to connect the 2 and then use the laptop as a server from which l wil run my XAMPP AND THEN SET UP A PROJECT (e.g a website or any …

Member Avatar for professor123
0
98
Member Avatar for Limiter

A very small problem I am having. Here is an example: A class representing a book [CODE] public class Book { private String title, author; //Constructor for book public Book (String name, String writer) { title = name; author = writer; } [/CODE] Another class called Bookshelf representing a collection …

Member Avatar for Limiter
0
2K
Member Avatar for rom.

hi there, I'm having trouble with my project, I can't wrap my head around the code. Any help would be greatly appreciated! in a database you have 2 tables. they look like the following.. table: workflow columns: id, title, content_id table: content columns: id, text list (echo) all the entries …

Member Avatar for diafol
0
113
Member Avatar for virus.exe

Hey im having trouble making the tester part of a program. In the first part I made a class named student: [CODE]public class Student { private String name; private int idnumber; private double gpa; private int credithours; public Student(String studentname, int idNumber, double gradepa, int chours) { name = studentname; …

Member Avatar for kekkaishi
0
183
Member Avatar for sumprit

Hi, i need to find the max value of ArrayList<ArrayList>. I don't know whether it is possible or not? Can anyone please give me some suggestion. Any help from you will highly be appreciated.... Thanks.

Member Avatar for sumprit
0
187
Member Avatar for Sorcher

Hello! I am beating myself up here. I use [CODE]include "header";[/CODE] on all pages, at the top, the header contains everything within <header></header> on a html page. But should i use [CODE]session_start();[/CODE] inside the header or before i include header.php on all pages? The session on my website logs out …

Member Avatar for diafol
0
305
Member Avatar for musfirah

hello, i'm new in PHP coding. Please help me in solving this error. Parse error: syntax error, unexpected T_STRING in C:\wamp\www\test\testdate.php on line 49 Line 49 is :Valid Oxygen:$oxygenmin-$oxygenmax I attach together the whole coding for my project: [code]<?php require("phpmailer/class.phpmailer.php"); $db_connect=mysql_connect("localhost","root",""); if(!$db_connect) { die("Could not connect:".mysql_error()); } mysql_select_db("mpob",$db_connect); /****2)RETRIEVE DATA …

Member Avatar for anilashanbhag
0
2K
Member Avatar for kokfui

http://i325.photobucket.com/albums/k392/sarjan123/name.jpg hi all, for the picture above,i am currently writing a code to check if the seller_name is match with current login user name,it will show the item name in a page, i have following code now <?php $check =$_SESSION['username']; $query = "SELECT id, seller_name "; $query .= "FROM items …

Member Avatar for anilashanbhag
0
106
Member Avatar for sureronald

Hi everyone. I have an application where users submit text files and then based on some rules, the application gives instant responses of whether the submitted text file is right or wrong. What actually happens behind the scenes is that I have the correct text file on the server and …

Member Avatar for sureronald
0
178