39,402 Topics
![]() | |
I'm not sure it this is a post for PHP or the database forum, but since my question deals with php functions, i put it here. In the past when i would page results i do the following: 1) get the count of my full resultset 2) calculate limit and … | |
This error cropped up in another thread as I was trying to solve the problem. Problem: I am unable to use: [code] test.php code header("Location: test1.php"); and echo "<meta http-equiv='refresh' content='0;url=test.php'>"; [/code] Goals: For test.php to open test1.php in a new window and then test.php is refreshed. Solution: Ill leave … | |
My code below don't show me any name and address (only show <d> ) : [CODE] <html> <body> <H1>Testing</H1> <table border="1"> <tr bgcolor="Blue"> <th>Name</th> <th>Address</th> </tr> <?php $db = array( array("Binladen","los anger"), array("Harry","NY"), array("Ghost","lust caution") ); /** * return string * params int $i * return 'white' even and 'yellow' … | |
Hi all, I am new to PHP.. I want to paginate the result of a search query... can any one give me an example of the concern codes... u can post it on daniweb or u can send it on [email]jinojoseph07@gmail.com[/email] Please help me.. Jino.. | |
hello...anybody.. i want develop booking system using event calendar style, like at [U][url]http://www.vcalendar.org/site/demo/index.php[/url][/U].... but i don't know how. i'm using php,mysql,phpmyadmin(xxamp) help me... thanks.. | |
Hi This is ScorpionZ I have created my Webpage in Which i want to show a randomly generated banners... The Scenario is simple I have a banners name stored in Database.. Now I want to call them at Particular place with selected Id's, Like there are 1 to 100 banners … | |
I want to add an image to my php script: [QUOTE]<?php $sql = "select * from Prod_listing"; $result = mysql_query ($sql); while ($row = mysql_fetch_array($result)) { $field1= $row["Product_Name"]; $field2= $row["Product_Id"]; $field3= $row["Product_Description"]; $field4= $row["Product_picurl"]; echo "<h1> <strong> $field1 <br> </strong> </h1>"; // Header Tag, bold.tag echo "$field2<br>"; echo "$field3<br>"; echo … | |
i am beginner. if this error occur ; [B]Undefined variable: oCustRes [/B] what suppose i do? i want to use the variable in javascript. when i define the variable, a database error will occur. where should i define the variable? in the javascript or outside? :( | |
$query = "select * from 'ciste_media' where ".$medium."= ".$medium." and ".$typ."= ".$typ." and ".$kusy."= ".$kusy." and ".$obal."= ".$obal." and znacka like '%".$vyraz."%' order by kusy ASC"; $result = mysql_query($query); [B]this is line 38[/B] Please, is this correct form and syntax for this selection? Wrote me :Supplied argument is not a … | |
I have a script that displays data from Mysql server, what i hoping to do is display the data in a HTML Table. I would like to create the table in deamweaver purley cause i am not great at HTML. [CODE]<table width="65%" height="404" border="1" align="left" cellpadding="0" cellspacing="0"> <tr> <td height="16" … | |
I know, this is a weird question, but... I am working right now on an inherited project, and finding this quite a bit. [code] $objSomething -> $object [/code] I have had it explained to me that this is similar to the dot in javascript's [code] element.style [/code] This concept in … | |
I attached the 2 script I have a script that retrieves a file from my database with an option of providing a path Now the appendPath Will "tack on" the contents of appendPath to the front of the file name. For example, :if appendPath is set to: $appendPath = 'http://www/path/to/'; … | |
when i insert a image from tinymce, it sets default to 550px X 550px from where can i change these default setting in tinymce ------------------------------------------------------- Sorry guys it might relate to php ... but actually i've problem with tinymce WYISWYG during my php site | |
Helo... Thanks for read my thread... i have problem to make a web page like my.yahoo.com where a news click, a new pop-up window show and the web-page(background) become more darker and pop-up window willbe focuss... Anyone can help me...? Thanks, Ardy Satria H [email]forzadraco@gmail.com[/email] | |
I have a string in my database as [B]in' out"[/B] now i need to show this in input textbox i did <input value='in' out"'> output only: in also <input value="in' out""> output only: in' out the real output should be in' out" Actually i need to do like this encode … | |
hi i have a form where the user will giva a key word ...based on the keyword i wabt the user to fetch all the rows in the table | |
Hi all, I saw your guys site while browsing forums for help and you guys seem most knowledgeable. Here is my problem, I just uploaded some script to a site of mine, and now I'm getting this error message: Parse error: syntax error, unexpected T_LNUMBER, expecting '{' in /home/mickeylo/public_html/index.php on … | |
i need to have null date from php and send to mysql how to make a null date so that i could insert it the database it should be in the format '00-00-0000'; | |
Could someone please tell me how to change a text format in php for example if have a question like this in your code: Which of the following form element names can be used to create an array in PHP? [B] foo [foo] foo[] foo[bar] [/B] How do you change … | |
Its been a while but I need your help on this one Daniweb...I am creating request forms (i.e. Conference from Reservation Request, Software & Hardware Installation requests, Network Access Request, etc.) Forms using Code 5 System ([url]www.code5systems.com):[/url] 1. I have a form for Conference Room Reservations. There are 6 conference … | |
[CODE]<? $username="*************"; $password="***************"; $database="****************"; mysql_connect("***************",$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT product_name, url FROM product WHERE product_name like 'Day You Were%' group by product_name order by product_name"; echo "<form action=\"https://www.paypal.com/cgi-bin/webscr\" target=\"paypal\" name=\"mygallery\" method=\"post\">"; /* You can add order by clause to the sql statement if the names are … | |
Can someone help me? I have a enquete script with checkbox answers for question when more than one anwer can be choisen but de script will only write de latest answer to my txt file. Can someone help me? This is the first time i work with PHP. <?php # … | |
If you have a column, of data type = INT, with the following numbers as separate rows. 1 3 4 5 7 10 How can you write a sql statement where you can calculate the nearest number to any give input. Example , if the input is 9 ? (the … | |
When i log on to my site and click a link in it. It is logging out automatically. [url]http://thelittleguynetwork.com/index.php[/url] username: demo and Password: demo can any one say me what may be wrong with this site. Please reply me. | |
Alright this is my code, the error im getting is in red [CODE]<?php include("dbinfo.inc.php"); $tut_name = $_POST['tut_name']; $tut_link = $_POST['tut_link']; $tut_program = $_POST['tut_program']; $tut_category = $_POST['tut_category']; $tut_video = $_POST['tut_video']; $tut_download = $_POST['tut_download']; $tut_image = $_FILES['tut_image']['name']; function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) … | |
I will start this thread with a problem that I am trying to solve. I have searched for a solution, and can't find one, and daniweb.com users have been a great help in the past. This is a tricky one for me.. I hope we can find a solution. All … | |
mysql4.X is installed on my system.while i tried to install Phpbb forums in my personal computer it is giving the following error: Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Program Files\Apache Group\Apache2\htdocs\phpBB2\db\mysql4.php on line 48 Warning: mysql_error(): supplied argument is not … | |
I have a page that allows you to add images to the server. As of course you are able to add them to the server you should be able to delete them. Now the problem I have is that. I cannot delete the folder if there are contents in it. … | |
[code=php] echo "<td align=center style='width: 30px'><strong><a href='' . $link1 . '' style='color: red'>CID</a></strong></td>"; [/code] Is this part properly coded [code=php] <a href='' . $link1 . '' style='color: red'> [/code] I tried like [code=php] <a href="' . $link1 . '" style='color: red'> [/code] but not working. Pls advise. | |
Hi all, Does any one know of any good web development team for web 2.0 and ecommerce? If you have any idea so please let me know. Any help will be greatly appreciated. Thanks! | |
I require to refer to a Variable through the use of a variable is this possible? Thankyou Regards, X | |
I want to write a code that will view all the records within a table and assign a checkbox for each record.. the check box will be used for deleting the records just like in emails. can anyone help me on this? | |
Can not get the following code to delete Jack.... What is wrong with the code? <?php ===QueryString=== delete.php?q=169|170|171| $arr = explode('|', $q); for ($i = 0; $i < count($arr); $i++) { $query .= "DELETE FROM aCar WHERE aID = '".$arr[i]."'"; $result =mysql_query($query); } ?> Thanks in Advance! | |
is it possible let php run under python?? since i really don't understand how to connect database using odbc with python... what i mean is... can i call php file from python? can anyone help? i have tried in the url call setting.php but my php code can't run... | |
Hi There, I am trying to get the information that i have put in the database to be displayed on the screen but i am getting this error Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\capat\result.php on line 44 The error doesn't seem to go … | |
[code=php] <?php // auth.php // start session session_start(); // convert username and password from _POST or _SESSION if($_POST){ $_SESSION['username']=$_POST["username"]; $_SESSION['password']=$_POST["password"]; } // query for a user/pass match $result=mysql_query("select * from users where username='" . $_SESSION['username'] . "' and password='" . $_SESSION['password'] . "'"); // retrieve number of rows resulted $num=mysql_num_rows($result); … | |
I want to pass the below string through a url.... It is the result of a search query... $query_string=reg_personal.personal_sex='Male' AND reg_personal.personal_matrital_status = 'Single' I had used this statement <a href='{$_SERVER['PHP_SELF']}?pageno=1&query_string='.$query_string1.'>FIRST</a> for passing the $query_string variable via the url .... But i am not getting the 'Male' part after the equal(=) … | |
I'm trying to input an image in a code i have but i tried using the html way which is [code=html]<td><a href="<?php echo $section_link[1]; ?>"><img src="../images/icons/graph.gif" width="32" height="32" alt="" /></a></td> [/code] But it doesn't seem to show the code in the page..How do i do this please HELPPP!!!! | |
I've been working with a PHP site and below is the code for my index page.. how can i check the data first before going to POST? can i do it with a javascript? if the textboxes are blank it will not POST and just give a message.. and How … | |
How to implement a digital library for my web site..can anyone help me | |
hi i have two mail function in my page.when a aggrement is signed ,mail will be sent to both the clients. Error: when there is some problem in sending mail to one client the mail is getting delievered another client.if there is a problem i want to stop sending to … | |
Hello everyone, I have been learning how to code a simple message board (or 'forum') and have really been proud of what Ive achieved so far. However, I want to include these message boards in my online community but currently members will have to add their name as a field … | |
hi, I don't know how to send a mail in localhost ? anyone help me! | |
My form was working fine in the past, and now it is not. I'm not sure why. I've been through the code several times and have yet to find anything. The form posts with the general error that is in the code. So, something is breaking, but I'm not sure … | |
Hey, I've got some values that don't seem to be calculating correctly. I've got two numbers, subtracting one from another, and instead of the answer being an exact number, like .06, it's coming out as like .0599999999. For some background, I'm working with monetary values, and since I'm so new … | |
Hi there, (is this the right forum for this? If not, a moderator could move it it would be really appreciated) I'm looking for a programmer who'd be interested in programming from the ground up a online simulation game like those such as [link], [link], [link], etc. Concepts are simple, … | |
[code=php] <?php // connect to database include("inc/connect.php"); // include auth and nav //include("inc/auth.php"); // begin content //include("inc/nav.php"); // close mysql connection //mysql_close(); // Check if the form has been submitted. if (isset($_POST['Submit'])) { $brandC = $_POST['brandC']; $typeC = $_POST['typeC']; $styleC = $_POST['styleC']; $frameC = $_POST['frameC']; $groupSetC = $_POST['groupSetC']; $errors = … | |
I'm looking for some PHP scripts that be able to search into the Database and retrieve all the records that matches the user input string in the search form. Please advise. | |
Hello Im looking for a real simple way, if possible with no databases involved, to send an email to a hosting account on godaddy. I believe they use smtp.secureserver.net for the smtp server. I have a form that asks for the persons name and their email..I am later going to … | |
hi i want to fetch username from another table based on the id generated in the temopary table. [CODE] <?php @ $rpp; //Records Per Page @ $cps; //Current Page Starting row number @ $lps; //Last Page Starting row number @ $a; //will be used to print the starting row number … |
The End.