38,023 Topics

Member Avatar for
Member Avatar for toxicandy

By default the page after login.php is authorize.php which just checks the information then sends it off to index.php. From index.php I cannot get to my page 'volunForm.php', it just redirects me back to the login page. This is my first ever login system and my first time using sessions. …

Member Avatar for toxicandy
0
195
Member Avatar for davy_yg

Hello, Can anyone help me troubleshoot this problem: This code suppose to work in someone else server, but when I place in my own server this code doesn't work I wonder why? I am using smtp.gmail.com and port 587. contact.php <!DOCTYPE html> <html lang="en"> <head> <!-- Basic --> <meta charset="utf-8"> …

Member Avatar for mattster
0
253
Member Avatar for scaiferw

I'm converting old MySQL code to MySQLi, and running into some questions. When selecting data from the database, is it necessary or strongly advised to use prepared statements, or can I safely escape my user-derived parameters like the sample below? In a perfect world I'd have all the time I …

Member Avatar for scaiferw
0
234
Member Avatar for ankit1122

hello, i wanna know whats the best way to show query results from mysql onto a webpage.. some says this can only be done in form of table.. but nowadays table less design is preferred..tell me teh most demanding way if somebody knows..

Member Avatar for ankit1122
0
225
Member Avatar for bradly.spicer

Hey guys, I have a Table which utilises Twitches API where the offset needs to be in increments of 25. I want to make it so everytime you click next in a table of data it reloads the query but adds +25 to the offset. Here is what I have: …

Member Avatar for bradly.spicer
0
209
Member Avatar for mokshi

Hi i need to use the below query in PHP to generate PDF but its not displaying what are all the supporting files i need to put for running the below (XML path) query in php,Its running successful in sql but when i put in php its not working can …

Member Avatar for mokshi
0
278
Member Avatar for RikTelner

http://pastebin.com/6xbfquFz It answers with: ID is: . Resulting is: 1 Redirection failed. Please redirect yourself to main website. Redirection isn't a problem. I disabled auto-redirect so that I can see error at work.

Member Avatar for veedeoo
0
181
Member Avatar for berserk

i have an issue with this new form im using based roughly on a design template that i found online, it looks great for the purposes that i need it for, but the problem is i cant seem to get the input data from the form to pass to the …

Member Avatar for berserk
0
423
Member Avatar for Nollyvenon

I'm creating a query which checks if a client made payments for a given month and if not set charges of 20% of the agreed monthly payment. this is what i currently have: SELECT DAY(paydate) AS PayDay, clientid FROM transactions,clients where transactions.clientid=client.clientid and transactions.product=invoices.product and DAY(paydate)> 10 order by client.clientid …

Member Avatar for Nollyvenon
0
110
Member Avatar for R0bb0b

I am building a selenium test suite which pulls a list of tests to run and then forks those tests to multiple parallel processes. Each process needs its own connection to the database because of two reasons: one, when the child process ends the connection is closed and two, when …

Member Avatar for veedeoo
0
260
Member Avatar for fornandakishore

Hello to all, I am working on PHP, HTML, CSS and Joomla since 6 years, but now a days in INDIA many companies are looking for the Drupal Developers, I am lacking skills in Drupal, so can any one guide me to learn Drupal and start building websites using Drupal. …

Member Avatar for jeffmarkel
0
315
Member Avatar for RonKevinT.Manuela

It seems it only executes the first line in which for example in uploading a .PNG photo it changes the format to Jpeg....I guess it has something to do with my if elseif else statement.....help :p <?php if (isset($_POST['submit'])) { $name= $_POST['name']; $album_id=$_POST['album']; $file=$_FILES['file']['name']; $file_type=$_FILES['file']['type']; $file_size=$_FILES['file']['size']; $file_tmp=$_FILES['file']['tmp_name']; $random_name=rand(); if(!empty($name) or …

Member Avatar for RonKevinT.Manuela
0
174
Member Avatar for druzzy

hello :) I am new to PHP. I was going through the example on w3schools. i managed to retrive my data and display nicely. my problem is i don't know any code that i can use to paginate the data i am displaying. Please help me . the code from …

Member Avatar for diafol
0
134
Member Avatar for 9tontruck

okay.. what I wanna do is, 1. upload an image into temp folder -- done 2. create a folder -- done 3. create an index.html in the new folder -- done 4. create thumbnail image in the new folder -- page dead without errors 5. copy(rename) the original image into …

Member Avatar for 9tontruck
0
132
Member Avatar for kakalahori

Hi i am having an issue with my website. My friend wrote the codes using codeignitor. I am a beginer just to add up . now the index page is only visible and i cannot access any other page than that. Not the admin pages as well. The live codes …

Member Avatar for kakalahori
0
229
Member Avatar for RonKevinT.Manuela

Okay so a few days ago I finished a tutorial of photo gallery...I'm having problems of putting images other than jpg format...the one who made the tutorial said that you can add formats to be uploaded but he didnt show it..here was his code in his upload.php...I tried experimenting on …

Member Avatar for mattster
0
187
Member Avatar for gampzz

image is uploading in directory and in db also but when i refresh image disappear database.php // i know i should not to use mysql but i have the it into mysqli so no big issue in this <?php //Connection $con=mysql_connect("localhost","root",""); if(!$con) echo "Failed to connect with MySQL.".mysql_error()."<br />"; //Create …

Member Avatar for mattster
0
941
Member Avatar for davy_yg

Hello, I am trying to create a table with a checkbox for each row to delete the row that checked. Then after the user press the delete button the row that is checked must be deleted. This is the code that I have so far, but I do not think …

Member Avatar for mattster
0
211
Member Avatar for rani_4

In a query say i have a image path that have multiple images stored as path=http://localhost/images/xyz.When i run the code: <?php //Retrieves data from MySQL mysql_connect("localhost", "root", "") or die ("Could not save image name Error: " . mysql_error()); mysql_select_db("dawat") or die("Could not select database"); $data = mysql_query("SELECT 'images_path' FROM …

Member Avatar for rani_4
0
559
Member Avatar for RikTelner

`while ($row = mysql_fetch_array($result))` Is nice command which iterates through every line, if `$result` is a MySQL query. It iterates every single line, one by one. See, I've got situation like: <tr> <td>Source 1</td> </tr> <tr> <td>Source 2</td> </tr> And it is kind of part of design, I can't really …

Member Avatar for RikTelner
0
165
Member Avatar for VShaw12

Hi i take a project of my client said that you have to develope this project by using Code Igniter and Yii.. I don't Know what are these .. please tell me some thing about these but in simple ..

Member Avatar for mattster
-5
235
Member Avatar for mcdczzz

how can i count or merge same data from the database? here is my code but this wont work..help please.. <?php $result = mysql_query("SELECT category FROM inventory"); while($row = mysql_fetch_array($result)){ $cat_array = array($row['category']); foreach ($cat_array as $value){ if ($value<=1){ echo $value . "</br>"; }else{} } } ?> and my output …

Member Avatar for mcdczzz
0
150
Member Avatar for radostin.angelov.370

So I looked into other threads but didnt find a solution that worked for me. Here is my problem: the first page is supposed to get information from a form, look for it in a database, store it in a variable $_SESSION['$dataArray'] and send it to the second page. http://codepad.org/VhblM76K …

Member Avatar for mattster
0
314
Member Avatar for bolfescu

Hy how can insert in this echo function, return confirm ? echo "<input type='submit' name='submit' id='submit' class='btn btn-primary' value=Cancella onclick=window.location='delete_article.php?id=".$row['id']."'; /></p>"; i've already have onclick....

Member Avatar for mattster
0
793
Member Avatar for mastermind2

Hi, I have a table `id - Product_Name - Price - image` Some value like : `1 - My Product A - 50 - mpa.jpg` `2 - My Product B - 10 - mpb.jpg` `3 - My Product A - 40 - mpc.jpg` `4 - My Product C - 20 …

Member Avatar for mastermind2
0
200
Member Avatar for Sophia_1

Hi,am new in php and appreciate your help in this matter....tried to save the record below into mysql database but couldn't.The field are blank and the Targetid field is always 0.Below is the coding...Please advise...Tqvm <html> <body> <form action="progress1.php" method="post"> <p> Quantitative Progress: <input type="text" name="Quanprogress1"></p> <p>Qualitative Progress: <input type="text" …

Member Avatar for veedeoo
0
516
Member Avatar for davy_yg

Hello, I am trying to create a login page and after I enter the username and password this error appears. I still wonder why? Notice: Undefined index: username in C:\xampp\htdocs\SquprimeRevise\loginproses.php on line 95 Notice: Undefined index: password in C:\xampp\htdocs\SquprimeRevise\loginproses.php on line 96 line 95: $username=$_POST['username']; line 96: $password=$_POST['password']; The login …

Member Avatar for hex20dec
0
260
Member Avatar for deshazer.jad

Server information: Ubuntu 14.04 Apache2 I installed PHP5 on my webserver and tried to run a script that contained a call to the function curl_init(). The server responded with an error indicating that the function curl_init() was undefined. I installed PHP-CURL and restarted my webserver and encountered the same error. …

Member Avatar for deshazer.jad
0
1K
Member Avatar for ravi142

Hello, I am New about **API Connection** in PHP So i need help for the How to connect and get **Facebook Friends**. Thank You.

Member Avatar for pritaeas
0
253
Member Avatar for vishal sata
Member Avatar for diafol
-1
259

The End.