39,393 Topics

Member Avatar for
Member Avatar for thearts.beach

I am trying to update the shirtnumbers in table crew, by the ID from the .php page before. <?php include('conect.php'); $page = (isset($_GET['page'])) ? $_GET['page'] : 1; $startPoint = $page - 1; $data = "UPDATE crew SET shirtnumber=$POST['shirtnumber'] WHERE ID=<?php $_GET['ID']?>"; $query = mysql_query($data); $data2 = mysql_fetch_array($query); $rowCount = 0; …

Member Avatar for thearts.beach
0
161
Member Avatar for khushhappy

Dear Respected Members/Users, I Cannot add/insert mysql last insert id in the third table. Kindly please help me out in adding the para_id into the last insert query. I have demonstrated in the Image file which will help alot in getting my point. Waiting for response. thanks. ![94fea611ba93443aecd1d5f13b6b82c8](/attachments/small/2/94fea611ba93443aecd1d5f13b6b82c8.gif "align-left")

Member Avatar for khushhappy
0
178
Member Avatar for old_apache

i developed a system in xampp 1.7.2, and now i run it in xampp 1.8.2 (lastest version) i got this error Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\ hint: in xampp 1.7.2 no error anybody can tell me why?

Member Avatar for old_apache
0
245
Member Avatar for Priti_P

I have an array which contains data as: array(name,contact1,e_mail ,reference_type,resume_source,current_employer,highest_degree ,skill_set,track) now i want to create an excel sheet(.xls file). In short I want to generate a reropt for query. Array is nothing but the query result. I want to just put this data rows into excel sheet. How can …

Member Avatar for iamthwee
0
210
Member Avatar for LD-005

Hi! I have a table with few thousand records on few pages in a simple html table.. I made a search function that works fine apart from one thing... It displays only one result in a table (which is great cause it means it works!).But... I was wondering is there …

Member Avatar for diafol
0
370
Member Avatar for keishawndavid

<html> <head> <title>Form Sheet</title> <style> </style> <script type="text/javascript"> </script> </head> <body> </body> <form name="formsheet" action="grade.php" method="post"> <table width="300" border="5"> <tr> <td>FirstName:</td> <td><input type="text" id="fname" name="fname"/></td> <tr> <td>SurName:</td> <td><input type="text" id="sname" name="sname"/></td> </tr> <tr> <td>Age:</td> <td><input type="text" id="age" name="age"/></td> </tr> <tr> <td><input type="radio" id="gen" name="gen" value="Male"/>Male <input type="radio" id="gen" name="gen" value="Female"/>Female</td> …

Member Avatar for Zagga
-3
204
Member Avatar for newbie26

help. all of a sudden, UPLOADING of files in all my forms didnt work. i tried may things as i had googled it. i tested the code, $_FILES seemed to be empty. > free-up /tmp folder > check php.ini; increase post_max_size, upload_max_filesize, memory_limit > restart apache after each configuration > …

Member Avatar for pritaeas
0
174
Member Avatar for bradly.spicer

Hey guys, just a quick one. Got this: $memmath = $memcache + $memfree; $memmath2 = $memmath / $memtotal * 100; $memory = round($memmath2) . '%'; Which finds the % free. How would I find the % used? Been messing with algorithms and I'm screwed in the head now

Member Avatar for bradly.spicer
0
103
Member Avatar for sanbhu2105

hello guys i have created the below codes. the first one is the mysql select statement which works fine when i echo. the second one is an html/css table i created. i am stuck to the point where i can merge both of them so that i get a nice …

Member Avatar for broj1
0
985
Member Avatar for austin.datong

Please I want to know. between ASP and PHP, which is better for web development?

Member Avatar for spiralclick
0
114
Member Avatar for cguan_77

hi guys, I have this code which I get from the link below. http://stackoverflow.com/questions/3826963/php-list-all-files-in-directory Need your help, why the current directory is the directory of the root server. Like i'm using WAMP for windows. The current directory for this code below that is recognizing is: c:\wamp I want the code …

Member Avatar for cguan_77
0
622
Member Avatar for winbala5

i have create a table for analytics purpose month wise. so how can i fetch the all the tables in dynamic. help me how to form the query for fetch the records from multiple tables

Member Avatar for diafol
0
276
Member Avatar for deepak.fugo

Hi All, I want to select rows from dynamic created tables i.e we have tables like web_analytics_mm_yy(ex: web_analytics_06_13, web_analytics_05_13, web_analytics_04_13 and so on) web_analytics -> table name mm_yy -> month_year. I know this can be acheived in PHP by using for loop { // CONSTRUCTING SQL STATEMENT USING // UNION …

Member Avatar for diafol
0
293
Member Avatar for Shikha_1

*login.html* <html> <head> <title> login </title> </head> <body> <fieldset> <legend title=login>login</legend> <form action="login.php" method="post"> Username:<br /> <input type="text" name="username" value="" /> <br /><br /> Password:<br /> <input type="password" name="password" value="" /> <br /><br /> <input type="submit" value="Login" /> </form> </fieldset> <a href="register.html">Register</a> <a href="forgotpassword.php">Forgot Password</a> </body> </html> ***login.php*** <?php session_start(); …

Member Avatar for broj1
1
158
Member Avatar for Priti_P

Hello All, need one help! How can I send iwo invitation in one mail only? two inivitaion has diffrent time obviously! So how can I do this in PHP? Help is needed urgently :(

Member Avatar for diafol
0
317
Member Avatar for elamigosam

Hi I am interested in a basic, and simple code for to check for a user and make sure he only has access to such pages, I am just starting to undestand PHP, if you can help me and not make it really complicated, it would rally help . tanks.... …

Member Avatar for pp0007
-1
320
Member Avatar for yavindu

I've created a web app using PHP version 5.12.If I host this in a server which supports PHP version 5.3+ will it be a problem.If so how can I update PHP version.I'm using Apache2triad as my server. Thanks.

Member Avatar for Atli
0
269
Member Avatar for mmcdonald

Good'ay all, I'm looking for a method of saving a users session (I.e. automatically logging them back into the same page they logged out from). But I have a few things to consider: 1) Will they logout or will they just close the browser? This means I can't add the …

Member Avatar for mmcdonald
0
177
Member Avatar for aido89

Hi Please see code below, when I query my db I am getting an unefined variable issue, any ideas? I am quiet new to PHP so please help. mysql_connect("localhost","root",""); mysql_select_db("db"); $id = intval($_GET['id']); $res = "SELECT * FROM table WHERE id=$id"; echo "<table>"; echo "<tr>"; echo "<td>"; echo "<h4>".$row['item']."</h4>"; echo …

Member Avatar for broj1
0
230
Member Avatar for mmcdonald

There has got to be a better way of doing this. First of all pay no attention to the lack of validation and error checking. I just want the core of the script to work first. Also, Block 1 and Block 2 execute, Block 3 does not. Whats the best …

Member Avatar for mmcdonald
0
1K
Member Avatar for keishawndavid

<table width="300" border="5"> <tr> <td>FirstName:</td> <td><input type="text" id="fname" name="fname"/></td> </tr> <tr> <td>SurName:</td> <td><input type="text" id="sname" name="sname"/></td> </tr> <tr> <td>Age:</td> <td><input type="text" id="age" name="age"/></td> </tr> <tr> <td><input type="radio" id="gen" name="gen" value="Male"/>Male <input type="radio" id="gen" name="gen" value="Female"/>Female</td> </tr> <tr> <td>Subject:</td> <td><input type="text" id="subject" name="subject"/></td> </tr> <tr> <td>Score:</td> <td><input type="number" id="score" name="score"/></td> </tr> …

Member Avatar for diafol
0
346
Member Avatar for jspence29

I have this contact form that I use for everything and for some reason it is not working on this one site. If you could visit it and see what is wrong. http://www.spencedesign.netau.net/lori/me.html the php code is here <?php $field_name = $_POST['cf_name']; $field_email = $_POST['cf_email']; $field_message = $_POST['cf_message']; $mail_to = …

Member Avatar for jspence29
0
287
Member Avatar for wallflips

Hello dear DaniWeb users and thanks for reading this thread. Eight months ago I started a forum CMS project, but alone it's very hard to develop fast and quality. My intentions of writing this thread are to make some interest over the developers of this massively huge website and to …

Member Avatar for vanessa001
0
666
Member Avatar for devianleong

Hi, how to make a category tree in php? Recently I've a table called 'category' and inside containt ID,Name,ParentID. Please give me a simple example code to do it. Very appreciated if you could help me to solve this problem.

Member Avatar for pritaeas
0
188
Member Avatar for a.dhamumca

hi, i want to store date time whan i click radio button(name login time)in mysql. if i click logout radio button it should store logout time. ples help me... php and mysql code ...

Member Avatar for pritaeas
0
254
Member Avatar for mmcdonald

Now this one always bugs me! I'm dealing with a lot of checks that result in redirection dependant on certain results. **Example:** 1) If session exists and users lands on login.php they are pointed to index.php. 2) When landing on any page after loggining in, if their account isn't complete …

Member Avatar for Atli
0
477
Member Avatar for flynismo

Hey guys, here is the table structure: Table name: globalsettings column names: setting, value, description An example query could be this: $query = "SELECT * FROM globalsettings WHERE setting = 'name'"; Okay, so here is what I am trying to do (I am using PDO for DB activity, but just …

Member Avatar for pritaeas
0
192
Member Avatar for cgull

Hello, I am developing a web site with codeigniter 2.1.3 I am using an ajax call to post data to my controller, but for some reason the data is not being sent. I am using ajax calls all over the application and they all work well just not this one. …

Member Avatar for cgull
0
3K
Member Avatar for L-D

Hi again, I have a cash gifting script that I converted to advertising instead of "gifts". So no host should have issue with it. I went thru the session is registered thing but I don't know how to insert the newer coding. What exactly do I replace? I know about …

Member Avatar for Zagga
0
263
Member Avatar for bobtutos

Hi everybody! I would like to ask for your help if it possible, I have a long sting and I want to chop it to small pieces. My string is:- $longstr = “Str1.htmlstr2.htmlstr3.html”; And I want the result to be like; $firstchoppedpiece = “Str1.html”; $secondchoppedpiece =”Str2.html”; $thirdchoppedpiece =”Str2.html”; Is it …

Member Avatar for bobtutos
0
113

The End.