- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 59
- Posts with Upvotes
- 50
- Upvoting Members
- 41
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 4
how do you extract all email addresses from a string and put each extracted email address as an element of a simple array? <?php // define and implement your php function here function get_all_emails($text_field) { // ---- Beginning of Green Section --- // create an empty array $emails = array(); … |
|
Hello, I am trying to create a round circle with css with an image inside the circle. Yet, when I try to do so the circle turns out not perfectly round. I wonder why that happen? Check this out: www.fresway.com See the facebook button. This is the codes: #circle1 { … |
|
Associative Array <html> <body> <?php /* First method to associate create array. */ [b] $salaries = array("mohammad" => 2000, "qadir" => 1000, "zara" => 500);[/b] echo "Salary of mohammad is ". $salaries['mohammad'] . "<br />"; echo "Salary of qadir is ". $salaries['qadir']. "<br />"; echo "Salary of zara is ". … |
|
I'm thinking of going down the route where members can actually get paid to answer questions. Here's how I am thinking the concept might work, and you tell me if you think it makes sense: Currently, when you create a new thread, you can donate $1 to have the article … |
|
i have a simple php login script with session but all i get is just a white blank page after running my login,php script. Here is the login,php page <?php error_reporting( E_ALL ); ini_set( 'display_errors', 1 ); include('connect.php'); session_start(); if (isset ($_POST['submit'])) { $UserName=$_POST['uname']; $Password=$_POST['pswd']; $result=mysql_query("select * from bizness_profile where … |
|
I have the following: <div id="main" class="site-main"> <div id="primary" class="content-area"> <div id="content" class="site-content" role="main">Main</div> </div> <div id="secondary" class="widget-area">Secondary</div> <div id="tertiary" class="widget-area">Tertary</div> </div> It displays on the page as a series of rows, one beneath the other, each row taking the full width of the containing div. What I want is … |
|
Why do the nested `li`'s in the Navigation ribbon disappear before I can get my mouse to them in IE. It only doesn't work in IE (9 and 8 are the ones I've tested). Here is the site: http://www.seventhheavenvintage.com |
|
store sting values in single field not id below that code i tried but it stored id.and in database which type i have to use $lid= mysql_insert_id(); $cityid = trim(ucwords(strtolower(mysql_real_escape_string($_POST['city'])))); $city = trim(ucwords(strtolower(mysql_real_escape_string($_POST['city'])))); $num=count($_POST["place"]); $ids = array(); foreach($_POST['place'] as $val) { $ids[] = (int) $val; } $ids = implode(',', $ids); … |
|
there are two properties for my bike method.front gear and rear gear.i want another property which will be a new property called gear ratio property which can be obtained by multiplying front and rear gear numbers.the code i have written giving continuous error.how it can be fixed. <html> <head> </head> … |
|
I have some previously written code that I am trying to modify. This is a portion of code to retrieve entries from a database and then edit inidivual sections, as required. Everything seems to work well with one exception. The code to create the drop down box to select the … |
|
gud day! why my upload files not really uploading in my online server? im using this ref. http://www.tizag.com/phpT/fileupload.php but in offline its working the file upload was move to my localhost folder. |
|
Hey there. I'm building a project in PHP/MySQL and it is a sort of [FaceMash](http://en.wikipedia.org/wiki/History_of_Facebook#Facemash) project. I am able to call the images (with image name and points) from the database. I have managed to use the MySQL Update query in order to increase the points that each image gets … |
|
Getting a little tired of my current host so I've been looking around at some other hosts. It's hard to sort through all the fake reviews out there these days so thought I'd turn to my local DaniWeb community for suggestions :) Anyone have any recomendations for a quality shared … |
|
Good day everyone Not sure if this is the right place to ask this but im trying to connect to my database online "Control Panel of my hosting site" from my local machine basically the webpage is running locally. but i want the data to be fetch online. my question … |
|
I have prob with my code its working fine bur, i want to add url to Row Name, When i add them it show error. Exapmle and code: <strong><font size="3"> <?php mysql_connect("localhost", "rooot", "123") or die("Error connecting to database: ".mysql_error()); mysql_select_db("Search") or die(mysql_error()); $query = $_GET['query']; $min_length = 3; $max_length … |
|
Im tryin to add an admin to my database. Its not working but im not gettin any error messages ive tried a hundred different ways but its always the same it appears to be working but never actually does. Im hoping a more skilled eye can spot my mistake. Thanks … |
|
Hi all I have a textarea I would like to validate the same for empty spaces and on no input. Please find my jsfiddle [here](http://jsfiddle.net/Varun_Krishna/jJh8q/). How do I validate for empty spaces in the text area? what am I missing in my fiddle? Thanks Varun Krishna. P |
|
|
Hello How do we call the attack that consists in inserting PHP/JavaScript codes within a remote website's pages ? Thank you |
how to display last login date? for an example, we log in to the system on 11 april 2014. then, log out. when we log in back the system on other day, for an example 26 april 2014, it will display back where the last date that we were log … |
|
Trying to figure out how to have 2 sets of images display randomly on the same page. I know I have to rename something, but nothing I try is working. Any help would be greatly appreciated. Thanks. For now I just have the two scripts repeated back to back before … |
|
Can i use $_SERVER['DOCUMENT_ROOT'] to put the path of a img? Why this wont work? $imgLocation = $_SERVER['DOCUMENT_ROOT'].'/images/logo.jpg'; echo '<img src="'.$imgLocation.'" alt="logo.jpg"'; |
|
I have developed a registration page for users and now I wish to include a login page l. how do I go about it. Help me |
|
Using IE and I've noticed that any member that does not have an avatar is showing a broken img box in it's place as default linking to http://www.gravatar.com/avatar/ac4f8177e88d582007f3333d1ce6efc0?d=identicon&s=80 |
|
hello my lovely friends of daniweb commuty. i have i jquery code of login popup basicaly it work when we click on a link to call it. but i want to excute it if a field is empty for it, i have add a code before `$('a.login-window').click(function()` and that code … |
|
I know jQuery is recommended to write to the DOM, I want to understand how to write to the DOM in Javascript, considering how many programs use Javascript as there language, never know what I want to or need to develope for (*maybe a smart phone app in the future*) … |
|
Hi, I am trying to insert data into 3 tables using mysql.. At first, I was able to insert in the first table (staffinfo), after coding for the second table insert (empinfo), It inserted into second table without inserting in first table AND finally it echoes 1 record added Successfully … |
|
Hi there, I have a problam with my code, and i cant fix it, please help. The problam is with the mysql_num_rows on line 4 ; Here is the code: $sql_query = mysql_query("SELECT * FROM upload WHERE MATCH(username,text) AGAINST('$search_term')"); //additional check. Insurance method to re-search the database again in case … |
|
Hi, How to calculate hours in PHP in when time is coming in Am - PM format ? for example, 1] start time: 9AM end time: 12PM 2] start time: 9PM end time: 1AM 3] start time: 12.30PM end time: 1.25PM any formula please |
|
Hi all, I have one problem on selecting larga data from mysql. I have inserted large data to mysql, and all data was inserted. I see it from phpmyadmin. but when i select that record from database it cannot display whole data.it doesnt show the end part of the data. … |
|
I am about to begin protecting a yet to be launched site againt injection attacks.(And other possible attacks) I am making use of a large database and must fortify this fully. I am researching this but am here to pose the question: **What should my main concerns be**? Please be … |