39,320 Topics
| |
I am trying to create a form that exports my mysql database , and can also reimport the mysql database using like a form. I am trying to do this in PHP any ideas on how it can be done or if it''s already been done? I know there is … | |
So I'm trying to create a PHP and MySQL program where users can add, update, delete, view and search records. But the problem is I can't update records whenever I click update button. Here's my code --> [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Update Record</title> </head> … | |
| Im creating a community website and have a little problem working out what my if statment should look like. there is a default profile image and the one that is stored in the users directory. so basically i want to display the image which is in the users directory, but … |
Hi, i have this code which is a table with login form, history of website and the news. ths news are here: [CODE] <td> <h2>DESTAQUES</h2> <table> <tr> <td> <?PHP include "db_connect.php"; $sql_destaque = "SELECT data_destaque, descricao_destaque FROM destaques ORDER BY cod_destaque DESC LIMIT 4"; $executa=mysql_query($sql_destaque,$connect); $dados = array(); while ($linha … | |
I have three table that are linked like this. Each content is linked to a category and each category is linked to a section. Like this sections_table -section_id -section_name categories_table -category_id -section_id -category_name contents_table -content_id -category_id -content_title -content_description I want to write a query to display only content from a … | |
Hey guys, I have this code which grabs categories from my category table of the database and populates the category drop-down box. I was hoping someone could tell me how I could populate the second drop-down box depending on what was selected in the first box. E.g. If "Networking" is … | |
Hi everyone! So, I'm trying to create a program which users can add, update, delete, view, and search records but I am having a hard time about updating records in my database. In my Update form, I've got 1 dropdown menu or option that contains ID number and when I … | |
Hi my php code is not working on my computer, i cannot see any problem with my code either. when loading my code, it just shows my code printed onto the browser <?php $yourname = check_input($_POST['yourname']); $email = check_input($_POST['email']); $likeit = check_input($_POST['likeit']); $comments = check_input($_POST['comments']); ?> <html> <body> Your name … | |
I'm new to regular expressions. could any one suggest where to start and any tutorials or books they can recommend. Also need to start learning frameworks I'm good with PHP with mvc pattern but need to learn RegX and frameworks is Zend good? | |
Hi all I am writing a points system for a event that is coming up and the client would like results for each member printed on 1 page for each account the results will fit on 1 page for the user how would i go about doing this. i dont … | |
Hello everyone. I am working on a site that has a backend allowing the client to use a rich text editor to change the content of her pages. The editor page has a form that looks like this: [code=html]<form name="edit" method="post" action="processedit.php"> <textarea name="editor" id="editor" cols="50" rows="10"> <?php echo $content; … | |
Parse error: syntax error, unexpected $end in /home/wmsumo/public_html/student_profile.php on line 394 IN THIS PROGRAMME.... <?php @session_start(); include('mysql.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/style.css"/> </head> <body> <div class="overall_container"> <div class="div_head" style="border-bottom: 0px solid red;"><img src="images/header.jpg"/></div> <div class="div_menu"> <div class="div_menu_right"> <?php $id = $_GET['user']; $query = "SELECT … | |
I'm using int type in my database, what I should put in order to catch the input data by users? mysql_real_escape_string is not working because I think he can cater only the string values. here is my codes. [CODE]<?php /* NEW.PHP Allows user to create a new entry in the … | |
Hello i am new to php and i need some help. I'm looking to delete a section of a php file (start - end) from another file with a submit button. So lets say i have logdata.php and index.php. The submit button would be in the index.php and on the … | |
I have a php code that suppose to have a user enter a number in and it out puts all people in my database who is the same age or younger. Instead of it working it give me the error: Error: You have an error in your SQL syntax; check … | |
| Hey everyone, I am trying to develop an addon for my admin area to send a text to my clients. I am trying to populate a select menu that will list clients that have added their mobile phones. I am using the following tables. [LIST] [*]tblclients [*]tblcustomfields [*]tblcustomfieldsvalues [/LIST] At … |
Hey friends, I have installed 2.2.22 version of apache which I think is not completely compatible with windows, because after configuring http.conf file for php and also configuring v-host , it doesn't work properly. I have used .msi installer with ssl compatibality from apaches authorised website. Please give suggestion if … | |
Hey guys, using a dynamic div here to spit out definitions based on final dispositions of records. I have a database that contains all dispositions and the definitions of each disposition. I want to break after so many characters, so i use the php wordwrap() function but get an odd … | |
Hi can anyone tell me how I add a row to a database table (gamescores) that will record a userID and the number of points they have gained. I also have to update two session variables and use them to update values that appear on the screen by adding code … | |
I am trying to create an add command in my system............i know I wrote the write codes but it is still not working.......here is my the story... I am supposed to create a reservation form that will add to the database and will display your reservation has been saved, but … | |
Hello. I need some help with summing up the total price each company owe to us. Basically it's looking like this currently: [url]http://i.imgur.com/7kkdt.png[/url] For English speakers, Företag = Company Datum = Date Artikel = Product Antal = Amount Pris = Price And then the last row Företag = Company Total … | |
hi all I am new to php and curl.How can we create cookies using curl.What is the advantage of creating cookies this way,instead of creating from php's normal way (Setcookie()); Thanks to all | |
can anyone help me how to create a search command....I am just new to php and I cant find any sites or tutorials to help me.... here is the story.. I want make a search box that will post all the scheduled trips with the corresponding destination, origin, date of … | |
Hi I need regular expression for 9 digit number example - 800443142 In php Thanks | |
Hi guys! I have company website created using PHP and mysql database. I am not a programmer but know few things about ftp transfer etc. We happen to change our web server and for that had to transfer the file to new location. All the files are intact and even … | |
Hello I am trying to add an app to my site, innovationalgaming.com and keep getting the following errors; Warning: Invalid argument supplied for foreach() in /home/innovati/domains/innovationalgaming.com/public_html/hooks/pinAwardsProProfileButton_626f463af659d41a2aeeef50026da9e9.php on line 67 Warning: Cannot modify header information - headers already sent by (output started at /home/innovati/domains/innovationalgaming.com/public_html/hooks/pinAwardsProProfileButton_626f463af659d41a2aeeef50026da9e9.php:67) in /home/innovati/domains/innovationalgaming.com/public_html/admin/sources/classes/output/formats/html/htmlOutput.php on line 114 Warning: Cannot … | |
[CODE]$stack1 = array(); for($i = 0; $i < sizeof($stack1); $i++) { $data1[$i] = mysql_query("SELECT Co FROM levels WHERE IDLevel='1' AND N='$stack1[$i]' AND IDEmotion='1' ") or die(mysql_error()); $d1[$i]=mysql_fetch_array($data1[$i]); $_SESSION [$i]['G1']=$d1[$i]['Co']; }[/CODE] When I echo $_SESSION [$i]['G1'], it prints correctly but it gives the following notice: ( ! ) Notice: Unknown: Skipping … | |
Ive an application that displays tracks from a cd and the user has to select which artist it is, how do i modify the code so that it finishes after 5 albums have been guessed. It should then force the user to login again. | |
Hi all, I have a small piece of code to check that a field is numeric only, [code] function validate_numeric($variable) { return is_numeric($variable); } [/code] How can I check that text entered is text only ? so to protect against malicous attacks. . . Thanks | |
Hi, First Problem: I have a PHP script that export CSV with Japanese text, for example I download the CSV on the website then save to desktop of my computer and Open it on NOTEPAD... that works fine I could still see all the japanese text OK with no problem, … |
The End.