39,323 Topics

Member Avatar for
Member Avatar for lastgame2007

Hi i'am try to insert multiple data on a single submit, but i'm a total noob to Arrays, can any one help me out here... one of the members send me this out, but still i can figure it out how to insert the fields onto my database. it inserts …

Member Avatar for lastgame2007
0
130
Member Avatar for momonq1990

error msg: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mon'@'localhost' (using password: YES) in C:\xampp\htdocs\project\include\connection.php on line 7 Could not Connect ///my connection.php code <?php define("contype","localhost"); define("user","mon"); define("passwd","affinity"); define("db","project"); $con=mysql_connect(contype,user,passwd) or die('Could not Connect'); $dbcon=mysql_select_db(db); ?> //here's my scenario. i add new USER to my mysql in phpmyadmin and its …

Member Avatar for momonq1990
0
175
Member Avatar for ychan623

Hi all, I'm working on a webpage with 2 dropdown menu and a submit button. both the dropdown menu has a default value="" selected. I am trying to figure out a way to filter mysql query. Here is the drop down menu <form action="showJobs.php" method="post"> <select name="Locations"> <option value="" selected="selected">All …

Member Avatar for LethargicCoder
0
1K
Member Avatar for alexgv14

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 …

Member Avatar for vincentwansink
0
178
Member Avatar for aianne

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> …

Member Avatar for rajeevphp2011
0
317
Member Avatar for OldDeveloper01

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 …

Member Avatar for rajeevphp2011
0
140
Member Avatar for PF2G

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 …

Member Avatar for broj1
0
103
Member Avatar for patrick1981

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 …

Member Avatar for rajeevphp2011
0
188
Member Avatar for nonshatter

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 …

Member Avatar for prash21m
0
149
Member Avatar for aianne

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 …

Member Avatar for aianne
0
4K
Member Avatar for thehorseman123

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 …

Member Avatar for weekendrockstar
0
178
Member Avatar for t_thakar

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?

Member Avatar for diafol
0
141
Member Avatar for dualzNZ

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 …

Member Avatar for diafol
0
84
Member Avatar for paldss

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; …

Member Avatar for AcT-Cyrus-COA
0
328
Member Avatar for johnsnrose

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 …

Member Avatar for OldDeveloper01
0
104
Member Avatar for mgd00tz

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 …

Member Avatar for cyverge
0
218
Member Avatar for Tko_1

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 …

Member Avatar for Tko_1
0
65
Member Avatar for whojstall11

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 …

Member Avatar for cereal
0
143
Member Avatar for doctorphp

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 …

Member Avatar for diafol
0
379
Member Avatar for samidha

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 …

Member Avatar for SQLpower
0
85
Member Avatar for Casperjames

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 …

Member Avatar for pzuurveen
0
178
Member Avatar for laura301019

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 …

Member Avatar for Biiim
0
110
Member Avatar for akasekaihime

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 …

Member Avatar for pzuurveen
0
197
Member Avatar for dioz20

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 …

Member Avatar for dioz20
0
108
Member Avatar for aniltc

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

Member Avatar for tdave888
0
4K
Member Avatar for akasekaihime

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 …

Member Avatar for veedeoo
0
262
Member Avatar for adityamadhira

Hi I need regular expression for 9 digit number example - 800443142 In php Thanks

Member Avatar for pritaeas
0
55
Member Avatar for Jack_1978

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 …

Member Avatar for Jack_1978
0
135
Member Avatar for LennyM10

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 …

Member Avatar for diafol
0
686
Member Avatar for hg_fs2002

[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 …

Member Avatar for jkon
0
88

The End.