39,320 Topics
| |
//I used the following command to hyperlink: $result_id1 = mysql_query("SELECT * FROM query order by case_id"); for ($i=0; $row1=mysql_fetch_array($result_id1); $i++) { //case_no is a field in the table "query" echo "<TD><b><a href='http://localhost/test/details.php?case=$row1[case_no]'> $row1[case_no]</a></b> </TD>"; } //now the file details.php is something like: $case= $_REQUEST['case']; // after the connection and all … | |
Hey there, Now I have my member Logged in, now After he logs in he is taken to his profile, now I want to Show his Full name and Email... knowing that I already created a database and everything... here is the code im talking about: [CODE] $result = mysql_query("SELECT … | |
Hi!! This is some of the code I am using to add dynamic rows when user clicks the Add Row button.I want to show the calculated amount like: line_total=qty*unit_price; sub_total=total of line_total; total=sub_total+tax-advance; [CODE]<script type="text/javascript"> function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; if(rowCount<3) { var row … | |
Alright, another post. This one seems to be the most complex thing I have ever tried. So, I am making a site where a user can post jokes and vote on them. They can only vote up, so a digg like system. I want the users to be able to … | |
Hey. I'm trying to open a dir under safe mode. and i keep getting this error : Fatal error: Uncaught exception 'RuntimeException' with message 'DirectoryIterator::__construct() [<a href='directoryiterator.--construct'>directoryiterator.--construct</a>]: Unable to access /home/mypath/mysite.com/public_html/path/to' in /home/mypath/mysite.com/public_html/site/loaddir.php:7 Stack trace: #0 /home/mypath/mysite.com/public_html/site/loaddir.php(7): DirectoryIterator->__construct('/home/mypath...') #1 {main} thrown in /home/mypath/mysite.co/public_html/site/loaddir.php on line 7 my question is : … | |
Hi! I'm unable to connect to my ODBC data resource from PHP. The code I have written is given below. Secondly, I'm not sure what username and password combination to use in the odbc_connect function when the ODBC data source is MS-Access. Joy. [CODE] $connect = odbc_connect("SerMas", "Joyji", ""); # … | |
Hi I'm trying to parse a recordID from a table of data in one page and pass data based on the chosen record to another page. The data is taken from a database and I've used recordsets: I have one recordset called rs_search which contains data from 2 tables called … | |
Hi! I'm pretty far from the best coder in the world, but I recently moved to a new host and re-uploaded my files. I was clicking around to check that they still worked and noticed one of the pages wasn't loading properly anymore. When I look at the code, it … | |
I have a script that I am using to retrieve zip codes within a certain radius using a foreach php statement. However, with these zip codes that I am getting, I want to add a comma between each value (for example: 11111,22222,33333) to use in a SQL query using the … | |
I am trying to create a page where a registered user can go, view the information from their profile, and update that information if necessary. I've started putting something together however it's inefficient in my opinion. Here's what I'm trying to figure out: [LIST=1] [*]Is there a way to check … | |
I copied this code from some forms that work and changed some information to apply to the new situation but something is wrong. The form "editreg.php" seems to be working fine. It populates the fields correctly. When it gets redirected to "editregsubmit.php" I get the message that the record was … | |
I am in the process of creating a website in PHP/mySQL and the next thing I wanted to tackle was creating an option for users to be able to upload a small avatar (maybe max of 50x50 let’s say). I’m not as familiar with how images are stored/retrieved in a … | |
I suspect there isn't a way to do this, but in case there is: Does anyone know how to pick up all the possible set values for a particular field from php? The reason I'm asking is that it means adding a new set value will not break all the … | |
how it works ? it is activated in Word press Plugin Directory but asking for license is it beneficial for SEO point of view? | |
Hi I have LAMP stack as server and doing my development work on windows. What version system would be perfect in this scenario? Thanks | |
Hi i have a php script that create a new user account on my online backup server via a api, when i open in i.e or firefox i get this error message Parse error: syntax error, unexpected $end in /home/public_html/123-backup.com/test.php on line 297 I' am not sure what is missing … | |
hi guys, i wanted a table to get created with the table name submitted from the form. how shall i go about this, i have tried it with my basic knowledge its here bellow but it dint work well, please help me anyone. [CODE] <?php if (isset($_POST['update'])) { mysql_connect('localhost', 'root', … | |
Hi, I cant sent email using smtp and php. I am using one form with email,subject message, etc i want to sent an email to that email (in form) while submit button click. I am givin the code bellow(only php) [CODE] if(isset($_POST['Submit'])) { require ("req_mail.php"); $from = "support@somecompany.com"; $to = … | |
After successfully creating a Registration/Signin/user profile... now I am assigning a profile picture for a user ... I have a question... Everytime I hit upload it doesnt upload I added an "echo' to say if no file is chosen "Please Select a file", it shows this even when I select … | |
i made a dropdown menu on top of my page, i thaught everything went well. you can see the example @ [URL="http://www.thijscream.nl/wijnkado"]http://www.thijscream.nl/wijnkado[/URL] the only problem is that the page is kinda wide, so the menu isn't centered. is there a solution for this? this is my menu: [CODE]<div id="menu"> <ul … | |
Hi I cannot figure out the results when the code reaches at line 41 (while loop) . ! it throws an error. displaying records of two different tables, want the solution but with the JOIN statement. Thanks, and kindly look into the Attachment file as it contains jpg file. | |
I want to replace a part of a string but ignore some other parts of it. I have pattern but don't know how to use it. [CODE] $message = '<div class="sacred">http://www.daniweb.com/ is inside the div tag so I do not want it replaced.</div>http://www.google.com/ is outside the div tag so I … | |
Hi im new to php and i have been following along on a video on how to create a registration form, but im getting an error "Notice: Undefined index: button in E:\EasyPHP-5.3.2i\www\Survey\register.php on line 3" Please help im new to php and don't know much Here is the code: [CODE]<?php … | |
Is anybody having idea about bar chart in php. I need to import the datas from excel sheet into php. I have created static bar chart. but i have to create dynamic bar chart . The datas should be retrieved from mysql or from excel sheet. If anybody knows kindly … | |
hi can you help me l trying to run a certain php job recruitment system but l am getting the following error: [COLOR="Red"]Fatal error: Using $this when not in object context in D:\xampp\htdocs\jobs\pb_events.php on line 5[/COLOR] and below is the referred pb_events.php script. [CODE]<?php function DoEvents($this) { global $_CONF, $_PAGE, … | |
My question is, if I want to upload 4 files at a time do I néed to store at my database all 4 filesize type and path or can I get away with only storing the file name and upload them. Thanks | |
I use following code to Upload images to Web Server. But it shows successfully uploaded and even it shows image exists when i try to reload the same. But i cant see those in my Document root. I use Godaddy Windows hosting. Please Help me. Thanks. [CODE]if ((($_FILES["file"]["type"] == "image/gif") … | |
Can somebody help me get my lingo and terms correct? I have a website hosted on Godaddy.com (please no criticisms, I know it's not the best. It's temporary). It the most basic hosting option. I need to run a nightly script at a specific time. I know and use php, … | |
I have a simple login module wherein I enter login info to a database. After that, I use another file, loginauth.php which validates the login info. However, I am getting the else statement executed. Can somebody point out what's wrong. [CODE]<?php session_start(); if (isset($_POST['userid']) && isset($_POST['password'])) { $userid = trim($_POST['userid']); … | |
Hi everyone! I am doing in php that among users can be added as friends. When I save the data I keep this name user1 logged and username2 of who wants to be friends. User1 keep the session and when I click on follow me this appears Unknown column 'UserSession … |
The End.