39,323 Topics
| |
Hi, I think by now I have the right syntax for joining 3 tables, but please correct me if it is wrong. The tables I am joining a as follows: PRODUKTER (GENERAL PRODUCT INFORMATION) VARE_TYPE (SHIRTS, JEANS ETC) SIZES (PRODUCT SIZES) What I want to do is to let the … | |
Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\xampp\htdocs\xampp\display.php on line 5 Connection Failed: php is working fine, ran other simple php scripts... but this is the error when i connect to a ms … | |
Hello, I am creating a site (for practice). It is a site that works like the '9gag.com' where users can see images stored on the page. So far, I have successfully retrieved and posted image files from the server but I wanted to put on a limit on how many … | |
Hello, I don't know if I am violating any rules, I am currently making an online teacher's evaluation system for my final laboratory project in Web Development course. I think I already got the logic (though still a mess) of the part where the values of the radio button is … | |
I have spent the last few days trying to optimize my site for the uploading of large video files. I have changed all the php.ini settings way over the time that it would take to upload the videos but nothing seems to work. It gets to about 30% and then … | |
I am trying to pull some data from a report that is simple called an API link. I am not familiar with the data format. Hopefully, I can find out the format and see if someone has already developed some PHP code to access and manipulate this. I thought it … | |
i have random mobile number with text messages, how would i go about only viewing the numbers i want for example 1234 i have [CODE] foreach($message as $msg) echo $msg; [/CODE] which displays all the messages | |
How would i make a text area like Facebook's comment text box's. I want it to auto expand when they type to a new line. And just hit enter to post the forum. How would i make it do this? | |
Hey guys. I need your advice on how to pass critical data from page to page. It's just one data. It's an ID from a list. It has to be secure because this data needs to be concealed. I've used: the anchor tag. I did it like this. anchor($link . … | |
Hi i would like to know how i add the ... when you cut a string in php. For example a string gets cut that exceeds the character limit and gets added with ... You can find this anywhere like on youtube or any big media site. I have searched … | |
i have a page for user registration where i a form with a image tag to it. i want the user to fill the form but as soon as he uploads the image i want the image uploaded to be displayed on the image tag. Then i want all these … | |
Hi, I want to know. How to filter data. I have two mysql table as follow name: task_id task my_id 22 aaa 1 22 bbb 1 23 ccc 3 23 ddd 4 24 fff 5 subname:: task_id task my_id 24 fff 1 now my id is 1. I want to … | |
Hello, I have a form that I really don't want to use captchas with. The problem I have is that people cURL my site and send messages on my system slowing it down for my legit users. I am looking for a way to change the name of the form … | |
My PHP pagination code is quite messy. I use something like this: [CODE]$display = 8; if(isset($_GET['p'])&&is_numeric($_GET['p'])) { $pages = $_GET['p']; } else { $q = "SELECT COUNT(image_id) FROM images"; $r = mysqli_query($dbc, $q); $ps = mysqli_fetch_array($r, MYSQL_NUM); $broj_redova = $ps[0]; if($broj_redova <= 8) { $pages = 1; } else { … | |
I want to create a blog type site where I post stories and users are able to comment on them. In order to do this must I create a CMS? If so how difficult would it be? Would I only need to use PHP and MySQL? Thank You | |
What shall be done in order to avoid access to a particular website on my laptop?? | |
Hello potential problem solvers! I want to apologize ahead of time if this is a repeat of a similar question that I did not find, but here's my issue. I have a form I recently have been asked to try to make work seamlessly(no page refreshes), so of course I'm … | |
Hi, I am making a website for a car database. I made a table called Cars with fields Name,Make,Model,Color,Doors. I have also made a search function: [CODE]SELECT * FROM Cars WHERE Name LIKE '%$search%'[/CODE] This is a general search that will search the whole table, but what if I wanted … | |
Hi I am having problems with authenticating session. I moved this over from a different site where I was testing it and didn't change anything but now it doesn't seem to be working. The site connects to the MySQL data base and if the info is wrong it says so. … | |
This is my first post on Daniweb. I am developing a social networking site and the register form isn't quite working as expected. Here is the PHP code : [CODE]<? $title = 'Register' ?> <?require ('scripts/top.php'); ?> <link rel='stylesheet' type='text/css' href='scripts/form.css'/> <div id='content'> <h1> Register an account </h1> <div id='form'> … | |
I am making a page that uses a login and contact page. Everything is working fine, but I have a small hiccup at one point. The scenario is: When the user isn't logged in, the contact form is to be filled completely and will be sent to a particular email. … | |
I have been having some issues with a date compare I have been getting a date from a database in YYYY-MM-DD format, and trying to compare todays date to that date to see if it has expired, then also a 30 day from the YYYY-MM-DD to check if it is … | |
I am working on a project like Google calendar.I want to send email on a particular time(defined by client) to the client's email ID using PHP-SMTP protocol.Can i do it using php only, or i have to use java for it? tell me the code and flow of the program? … | |
Dear Experts, I'm newbie in php. Can anyone please help to check my code as below: Blank value inserted to Mysql using dropdownbox. Thanks in advance. [CODE] <?php mysql_connect("localhost","root","") or die("Error: ".mysqlerror()); mysql_select_db("project_Test"); $Serial_Number = $_GET['Serial_Number']; $sql = "select * from `TestTable` where Serial_Number = $Serial_Number"; $query = mysql_query($sql); $row … | |
heyy guys...really could use some help here... my table is not updating its value, but there are no errors...the syntax seem to be correct [CODE] <?php session_start(); $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="testing3"; // Table name $invoice_no=$_SESSION['invoice_no']; $container_no=$_SESSION['container_no']; // … | |
hey people please tell me what to do , when ever i use mysql_fetch_array(data) i get this error : [CODE] Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in C:\xampp\htdocs\awah.biz2\classes\class_lib.php on line 34 [/CODE] please tell me what to do , here is the class_lib.php: [CODE] <?php class … | |
Hi, I am making a website for a car database. I made a table called Cars with fields Name,Make,Model,Color,Doors. I have also made a search function: [CODE]SELECT * FROM Cars WHERE Name LIKE '%$search%'[/CODE] This is a general search that will search the whole table, but what if I wanted … | |
If php file cannot be viewed from users browser, what are the advantages and disadvantages of having to process a form in same php file or processing a form with a different script? ie mail_form.php or with process_mail.php thanks! | |
In my website i want to download the current page's content as pdf whenever i press download button on that page.what will be the php code?? please help me.. |
The End.