133 Posted Topics
Re: Dear labibah, I will consider that you are not using "admin" as username, because this is in the first if which doesn't contain the echo for the menu.php link. else { $db= connect_db(); $sql= "SELECT id,judge_name,category_code,cellphone FROM judges WHERE email='$email'"; // $db= connect_db(); $rs = mysql_query( $sql); /*TRY TO ECHO … | |
Re: Dear junji, I googled some bubble logos [Google](https://www.google.com/search?num=10&hl=en&site=&tbm=isch&source=hp&biw=1301&bih=649&q=logo+bubble&oq=logo+bubble&gs_l=img.3..0l2j0i5j0i24l4.1891.3683.0.3870.11.11.0.0.0.0.228.1172.5j3j2.10.0...0.0...1ac.1.My2GkakGQ3c), personally I found 2 things that may not look good in this logo. Lot of small bubbles: try to make them bigger - Decrese the number of bubbles Not realistic and color: Bubbles doesn't look realistic, I don't think realistic bubbles will … | |
Re: Dear bassznapper, you can learn this kind of coding by reading the documentation in Smarty or any other php template sys. Personally I don't like this kind of (not real programming). If you learn a php template system you will not be able to learn or understand any programming language. … | |
Re: Dear 'garyjohnson', I think you are talking about something like this: The user enters: hello this is amir bwb When echoing this, it will be displayed on one line only: hello this isamirbwb to fix this, you should use the function nl2br(); echo nl2br($description); Hope this respond to your question. … | |
Re: Dear SPeed, try to remove the padding-left: 11px; or padding-right: 11px; for the td this will fix the size. | |
Re: Dear anandschiru, I googled it: http://jsfiddle.net/cUUCW/ Modify it, but replacing the text which another radio form Good Luck :) | |
Re: Dear 'bradly', you forgot to float the div, this will work: <div id="Mid_Content"> <div id="Left_Content" style="float:left;"> <h2>Best Rates </h2> <p> 2012 has been a great year for cheap mortgage deals. The Bank of England rate is at an all time low and mortgage lenders having to compete for your business, … | |
Re: Dear Chinmay, if you want to modify the code or test new codes on wordpress, you can copy the folder that contain all the wordpress files and paste it anywhere you want in public_html folder .. name it something that no one can guess it (you can protect it with … | |
Re: Dear Aniketayachit, I just googled your question, and here's what I found: http://stackoverflow.com/questions/6524196/java-get-pixel-array-from-image | |
Re: Without putting some self effort we can't help you, and from this question, it looks like you are not serious in learning how to code. ![]() | |
Re: Dear "Proglearner", Frist of all here's a link to the best HTML web tutorial: (IMAGE TAG) http://www.w3schools.com/html/html_images.asp After reading this I think you will be able to more understand what is the src and how to use it. I'll try to explain it in my own words: <img src="images/test.jpg"> This … | |
Re: Dear 'garyjohnson', since you posted this topic in the webdesign html css section, I will concider that you are not using the dynamic programming language PHP. Using html css you just have to make another HTML page let's say the album is in file named: albumName.html Copy and paste this … | |
Re: Hello 'Violet_82', we can sometimes get rid of the constructor, the example you looked at may not be the best to judge if constructors are important or not. Look at this example, it may makes more sense: Person.java public class Person{ private firstName; private lastName; private age; Person(String firstName,String lastName,int … | |
Re: Dear cristian.stilpeanu.3, may you try this: <div align="center" style="height:3em"> <label for="">Nume de utilizator: *</label> <input class="bar curved5" name="user" type="text" id="user" maxlength="16" value="" onFocus="change(1)" class="validate[required,custom[noSpecialCharacters],length[5,16]]" /> </div> | |
Re: Creating a website and buying a domain name are two totally different things. If you want to create a website, you have to know how to code in HTML CSS (Minimum), and if you are planning for a more dynamic website you have to know PHP & MySQL. Concerning the … | |
Re: Hello, is the problem with closing parenthesis, or other, maybe logical errors ? | |
Re: Hello you can use the printf(); float num = 1.23456; System.out.printf("the float number is: %.1f",num); %f prints the full float number %.1f prints 1 decimal %.2f prints 2 decimal %.3f prints 3 decimal etc .... | |
Re: Hello 'viveksraman'. You have to debug this by echoing before and after the conditional statements, and by adding the "or die(mysql_error());" after a function (check later in my code). Or try to put this $row = mysql_fetch_assoc($retr); just before the while. Anyway you can add this to your code $row_num … | |
Re: Dear Amiyar ... What is happening to you is very logical. Lets debug what you are doing: echo $s_country; $sql2="SELECT prod_id FROM tbl_order_item WHERE order_id='$order_id'"; $res=mysql_query($sql2) or die(mysql_error()); $i=0; $j=""; while($rs=mysql_fetch_array($res)){ $j .= $rs['prod_id']; $i++; } No syntax error ... but a logical error exists. in the while loop you … | |
Re: Where did you defined this variable 'operationsPrioriteToDoListModel' ? May you provide us with the full code? Thank you | |
Re: Hello ... I think all of these are O(n) O(n) is when you have 1 for loop or while loop if you for loop inside a for loop u will get a O(n^2) and every time you put for loop inside another you will increment the power number ex: O(n)for(){} … | |
Re: $sql="name, price from table1"; echo "<tr><td>Name</td><td>>Price</td></tr>"; if ($result=mysql_query($sql)) { while ($row=mysql_fetch_assoc($result)) { echo "<td>".$row['name']."</td>"; echo "<td>".$row['price']."</td></tr>";}} Try this: Dunno the if condition what it does but anyway: while ($row=mysql_fetch_assoc($result)) { if($name == $row['name']){ echo ", ".$row['price']; }else{ echo "<br/>"; echo $row['name'] . ", "; echo $row['price']; } $name = $row['name']; … | |
Re: Hello 'meowmonkey', not sure if that what you want ... Print a rectangle of y lines and x item on every line Anw here's the code: int Y = 4; int X = 12; for(int y=0; y < Y; y++){ for(int x=0; x < X; x++){ System.out.print("#"); } System.out.println(); } | |
Hello!!! mmm am learning OOP in Java ... and now I'm facing a prob in reading/writing .txt file here's my code: import java.util.Scanner; import java.util.Formatter; import java.io.File; import java.io.FileNotFoundException; public class Tester { public static void main(String[] args) { Scanner scan = null; Formatter formatter = null; File fileI; File … | |
Re: @arctushar I had the same problem understanding function and class, and how do they differ ... Ok now I have 90% understood what does the class exactly offer us! Function example: [CODE] function CommentHtmlentites($comment) { 1)make the comment htmlentities 2)echo the comment } fcuntion CommentNl2br($comment) { 1)make the comment nl2br … | |
Heyyy!!! I saw yesterday some projects for computer scientists, they connected the computer to a light that turn on/off on a submit button click from a webpage (locahost) ... It's not all, there is a team who created a trafffic light sensssorrr!!!! the lights switch automatically depending on the move … | |
I am trying to create an application that will: 1) ask the person to enter a number (ex: 321) 2) the application will display each number on a line ex:3 2 1 Rules: Don't use looping and don't use arrays Someone told me it could be done but I can't … | |
Hello, does all php versions accept the <?= ?> or no ?? Don't you think for designers <?= ?> is easier than <? echo ?> Thank you | |
Hello, it's me with oop again, So now I understand what are oop and how to use it, but I have 2 questions: [1] - How to use controllers models views libs [2] - Is there any tutorial on how to create a cms using oop even if I should … | |
Hello, I have created many websites using only classic php and functions But now I decided to learn classes, I understood how it works but haven't used it yet. I have phpcake tutorials, but don't know if it is good to learn it or it is not a good idea … | |
Hello, I want to know if I am doing a list of students, which are executed from database (mysql), does the number of data influence in the speed of the page load? if yes: What to do ? And for how much data should I start to think for a … | |
Hello, I want to display all data from database (repeat) and not only the last one: In classic php I do this using: [CODE]... $row_record = mysql_fetch_assoc($record); do { echo 'Record <br />'; }while($row_record = mysql_fetch_assoc($record))[/CODE] In advanced php (using class) I decided to create my own way, so here … | |
Hello, Am not new to PHP but new to OOP, I have watched lot of tutorials for oop and as I saw, class is almost a new language!! To be a pro programmer, I should learn existing class attributes or I should create my own?? example of default class attribute: … |
The End.