38,019 Topics

Member Avatar for
Member Avatar for lewashby

In an php/html document could I create a loop to create html table rows as long as there is a rows to be read from a MySQL database table? I could then populate the html table with the data but I first need to know if I can make a …

Member Avatar for lewashby
0
3K
Member Avatar for chaitu11

This is my array Array ( [33] => Array ( [for sale] => Array ( [1] => villas [2] => plots [3] => flats [4] => houses ) ) [34] => Array ( [for rent] => Array ( [5] => in house [6] => appartment [7] => godams ) ) …

Member Avatar for diafol
0
175
Member Avatar for josek1

Hi All, On php.net i read this"The maximum execution time is not affected by system calls", does this also mean that when i run a cronjob from direactadmin max_execution_time does not kick in? or any other time outs? thanks a lot for answering this!! Gr josek

Member Avatar for cereal
0
138
Member Avatar for anmol.raghuvanshi1

There is long registration form I have one auto-complete box like StackOverflow tag bar will have multiple tags of country. Now I want without redirecting to another page or any thing else. I want names of country to be displayed from database. I am successful in displaying without database like …

Member Avatar for anmol.raghuvanshi1
0
254
Member Avatar for paul-lucas

Hello, please tell me how to make auto filter between two search inputs? For exemple: while I choose a Zip code on list, then list of City name is filterd automatic according to this Zip code. These are my code: // Connect to db: $dsn = "mysql:host=".DB_HOST.";dbname=".DB_NAME; $db = new …

Member Avatar for diafol
0
181
Member Avatar for rani_4

I have record with strings: record id value type sn 1 aaaa181c1c3e9997 single sn 2 caca381c1c3e6483 masculine These are almost 500+,they are stored in mysql which i fetch,converting record to 64bit(bitcout work only integer),they are returned as all queires stored,not most like.I use code: SELECT * FROM MY_TABLE ORDER BY …

Member Avatar for cereal
0
341
Member Avatar for bops

Hi there, My question isn't strictly about programming, it's primarily a question of how to approach my problem with the tools I have. I am building a website where a user can sign up and create their own profile/portfolio so to speak. Let's say this is `mysite.com`. Say Joe Bloggs …

Member Avatar for Keimpe
0
245
Member Avatar for Neon Tetras

My web hosting plan does not include a database. Is there a way i can get around this? Like upload a .sql file or ms access db into my server and connect to it using php?

Member Avatar for cereal
0
425
Member Avatar for SivaShankar

Hi Guys I am beginner in PHP i am getting Warning: mysql_fetch_array(): Eror... anybody help me Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home4/kksivash/public_html/drngpit/student-portal/admin/model.php on line 76 function get_deptbyID($id=""){ $sql = "SELECT * FROM department where id = ".$id; $result = mysql_query($sql); $row = mysql_fetch_array($result); …

Member Avatar for rch1231
0
324
Member Avatar for SimonIoa

Hello i want to create a countdown with numbers for example 1. (some data from database) 2. (some data from database) 3. (some data from database) 4. (some data from database) 5. (some data from database) and so on.... I have done the ORDER BY and retreive the data i …

Member Avatar for SimonIoa
0
314
Member Avatar for UK-1991

Hello, I am loking for a concept to geting started is there a way of creating a notification like on user end any one updates his post update or upload an image then on admin panel it notifies the admin like on menu bar it shows 1 and when the …

Member Avatar for jkon
0
142
Member Avatar for praba_web

Hi there, I have a login form.which contains two input parameters. login_id and password. login_id may be mobile or email. user may use mobile no or email as login id. my table structure is uid email mobile password status when i login through mobile no it is validating and showing …

Member Avatar for diafol
0
450
Member Avatar for Greg_8

<?php session_start(); $username = $_POST['username']; $password = $_POST['password']; Notice: Use of undefined constant username - assumed 'username' if (username&&password) <?php session_start(); $username = $_POST['username']; $password = $_POST['password']; if (username&&password) { $link = mysqli_connect("localhost","root","","phplogin") or die("Error " . mysqli_error($link)); mysql_select_db("phplogin" , $link); $result = mysql_query("SELECT * FROM username" , $link); $num_rows …

Member Avatar for broj1
0
497
Member Avatar for janicemurby

Hi im wondering if someone can help me i have a checkbox options to choose more than one item and ive done the html bit one the registration page for the php i have this bit that i think needs to go in the profile page but when i do …

Member Avatar for diafol
0
124
Member Avatar for fobos

Hello all, i am stuck on this.. i want to be able to play a video from a mysql database. Currently i can upload the video to mysql (name, type, size, content) and download the file. i have a media player that shows a video, but i have to use …

Member Avatar for diafol
0
2K
Member Avatar for rpv_sen

Hi I am trying to clone a row with dependent dropdown. first row is working fine. Once i click add row button, if i select the project option its not working on client select option. can anyone please help me to fix. Note: I used trying using id="client[]" and id="project[]" …

Member Avatar for diafol
0
981
Member Avatar for mimiaes

Hello, everybody! I have learned a lot by reading others questions and your solutions. Now it's time to ask one myself. I have a dynamic form (with dynamically adding rows). This form has 2 normal input fields which send data to table 'orcamen' and 4 dynamic fields which are stored …

Member Avatar for diafol
0
186
Member Avatar for Raakesh399
Member Avatar for gacha23

hi guys pls help me with this problem i realy can't fix this problem <?php function protect($string){ $string = mysql_real_escape_string($string); $string = strip_tags($string); $string = addslashes($string); return $string; } function connect(){ $con = mysql_connect('127.0.0.1','root', '') or die(mysql_error()); $db = mysql_select_db("users",$con); } ?> // this is for the protect function and …

Member Avatar for zebnoon1
0
394
Member Avatar for rpv_sen

HI I need a information for the below, If i send a mail to ticket@domainname from gmail or other mail providers, it has to generate the ticket number and update in the ticket system. Please guide me on this.

Member Avatar for rpv_sen
0
147
Member Avatar for Stefce

Hello i want to make upload button so users can upload images/gifs/videos/music but i cannot understand how i can do that i fuond a code on w3schools but it just uploads the image to folder in my computer called `/uploads` i want to store the images into database which they …

Member Avatar for jkon
0
599
Member Avatar for Lonestar Jack

session start has been evoked. I need the value of $v. $key = $_SESSION['sys_var_key']; $v = $_SESSION[$key]; echo '<br>key =>'.$key; echo '<br>value =>'.$v;

Member Avatar for Gideon_1
0
171
Member Avatar for hallianonline

hello I am facing a problem with my htacess i have two php files that are used for URL rewriting first one is video.php and second one is channel.php. on homepage when I click any video its properly works for rewriting the url e.g. `mysite.com/video.php?url=1234` changes to that works properly …

0
104
Member Avatar for zebnoon1

Hello Dears Friends, I want to make aRegistration form for users, and save data of user in my database.I tried my best best but cannt Please, check my Code. <?php include "conn.php"; //database connection file if($_SERVER["REQUEST_METHOD"]=="POST"){ $username=filter_input(INPUT_POST,'uname',FILTER_SANITIZE_SPECIAL_CHARS); $sql = "SELECT username FROM usersystem WHERE username = '$username'"; $result=$conn->query($sql); if (!$result) …

Member Avatar for zebnoon1
0
342
Member Avatar for Syed Asim Ashiq

I want to integrate Paypal functionality in my website. Plz provide some easiest way to do so. or sample code.

Member Avatar for pritaeas
0
35
Member Avatar for hell hansen

Hi Guys, can someone explain me, the advantage using .html or .php Look i know exactly what each extension mean, what im trying to get is in term of website performance. I know that we use it every time but i thing no one ever think about it. Please some …

Member Avatar for hell hansen
0
185
Member Avatar for lewashby

My head is starting to hurt just thinking about all the possabilities and impossabilities of mixing html and css with php and I'd like to understand how's this works. I did a php project for a guy one time and I came close to shooting myself in the face and …

Member Avatar for almostbob
0
358
Member Avatar for Hilal2009

The following on the attachment below are the page feeds with its comments returned by facebook PHP sdk and Graph API. What I want here is to get number of comments per user on each feed. Here are the codes $helper=new FacebookRedirectLoginHelper($url); try{ $session=$helper->getSessionFromRedirect(); if(isset($session)) { $request=(new FacebookRequest($session,"GET","/357971644373038/feed"))->execute()->getGraphObject()->asArray(); $comment=$request["data"]; $counter=count($comment,1); …

Member Avatar for pritaeas
0
380
Member Avatar for OtepTheThird

Hi Php'ers, I'm new to Php. I have some issues INSERTING date to MySQL by PHP. here's my code snippet: //date format $date1 = mysqli_real_escape_string($_POST['j_avail']); $d1 = date('Y-m-d',($date1)); $date2 = mysqli_real_escape_string($_POST['j_expir']); $d2 = date('Y-m-d',($date2)); the query: $sql = "INSERT INTO table (....,j_avail,j_expir) VALUES (....,'$d1','$d2')"; the HTML: <td id="ititle">Availability :</td> <td><input …

Member Avatar for Hilal2009
0
11K
Member Avatar for connoisseur2010

I am working on a multi-level marketing (matrix type) web application for a friend. I need assistance with a code snippet for generating a tree view of the downlines and the income calculations. The width is 3 and depth is 4. Thanks

Member Avatar for pritaeas
0
174

The End.