39,320 Topics
| |
I am trying to replace mysql fields with this code... But unfortunatly it is not working... I do not know why... Here is the code please help me. Thank you. [CODE] <?php session_start(); if ($_POST['txtName'] != ''){ $host="****"; $username="****"; $password="****"; $db_name="****"; $tbl_name="****"; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select … | |
hi, when the user selects more than one from a list box,i want to store all the values in the db table. i want the user to select only five,if more than five are selected it should display message thanks | |
hi friends, i got a problem for displaying image from the following source code [code=PHP]<?php include "connection.php"; $id=$_GET['d'];// value of 'd' is getting from the another page //$image_folder='http://192.168.0.39/OldLiveHelp/images/'; //absolute path to image folder $msql="SELECT * from client_logo where client_id='$id'"; $mresult= mysql_query($msql) or die(mysql_error()); $row=mysql_num_rows($mresult); if($row > 0) { while ($row1 … | |
New to PHP and MySQL, any help would be appreciated. Using PHP, I'm pulling fields from my MySQL database into a table and I would like to link one of the fields (club_id) to another web page. How would I do that? | |
Hi all, I am looking for a software to index my images. Essentially just having keywords are not enough, I would like there to be customizable fields which I can add text and it is stored into database and can be searched. Fields I would like are: Number of people … | |
[code=PHP]$dosya = "index.php"; $fh = fopen($dosya, 'r'); $gercegi = "<[B]? [/B][B]include("sfpg.php"); sfpg(); echo $data;[/B] [B]?>[/B]"; if ($dosya != $gercegi) { echo "olmaz"; }[/code] I want to do this but I cant. I do not want to run the bold text. I only want to use it in text. How can … | |
Hi everyone. I know how to make image in php, but I want to make url like this [url]http://my2.statcounter.com/project/standard/graph_summary_barchart.php?rand=193244925&PHPSESSID=[/url][B]1eb9e464667493b2a1a7038ce4b9f69c[/B] Especially, the randed code. For example, I have this script uret.php [code=PHP]<form action="uret.php" method="post"> <input type="text" name="siteadi" value="http://" size="35" \> <input type="submit" name="submit" value="Kodu Al"> </form> <? $web = $_REQUEST['siteadi']; [B]$weble … | |
Hello, I'm new in coding in php I want to transfer a webpage (news5.html) to another webpage (in a table). (Like it is done on the news websites "www.domain.com/index?ID=4343" How can I do it? I read about passing variables through url, but if it is how it should be done … | |
Hello everyone! Ok i have a question, I have a php calandar and when you click on a date a pop up comes up and you are able to add entrys to the main calandar. That works just fine, but i need help figureing out how to refresh the main … | |
how do i define dynamic array in php like in c or cpp if any body find this pls reply me soon regards zainul | |
I have a database called "App" and a table called appinfo. I am able to connect to the database. It has only two entries since I am just trying to learn how to use php and sql together. The first column in the appinfo table is called [B]ID[/B] followed by … | |
This maybe an old chessnut to you old sweats but I am a newbie to this.. I getting this error:- [B]mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\dsg\Mytest.php on line 9[/B] the database is called Camsdb the table is called DBF the fields of which there … | |
I'm looking for a php/mysql customer service module that will do two things: [LIST=1] [*]manage user login/session without self registration [*]allow customer to download document packages in pdf [/LIST] Our customers are overseas. We want to provide documents to them online to save document shipping costs. Ideally, I will provide … | |
What does this line do? Can anyone explain it to me. ob_start(); | |
hello, im using a delete function but some how i want to use an if statement; for example if the current server date matches the date from a row from a database table and if the date is 2days from the current date it can't be delete. [CODE] Delete from … | |
Hi, I am hoping someone can explain to me a better way of coding than I currently do right now. It concerns accessing the results of a SQL query stored in an array. OK so right now I do somthing similar to this: [code=php] $rows = @mysql_query("select count(*) from debate_queue") … | |
Hi. I'm trying to search multiple DB fields with a Select Menu and I don't know where to start. for example, from the code below I would like the value ='strAuthorname' to actually search the fields 'AuthorFirstName' AND 'AuthorLastName'. [code] <form method='post' action='{$_SERVER["PHP_SELF"]}'> <!--select tag --> <select name='metode' size='1' > … | |
Hi, the code below is trying topull out the image from the database. When the image code is taken before the text that is being displayed from the database then it pulls out the image. if the code is written after the text being displayed from the database then it … | |
I have managed to get previous and next links working on my photo gallery but need to tidy it up. My link works when coded like this [CODE]<? echo "<a href='" . $PHP_SELF . "?photo_id=$prev'>Previous</a>" ?>[/CODE] But when I do this I get various errors. Obviously my syntax is wrong … | |
i have done little bit of research on this but all the information i could find was about unlinking text file i need to unlink an image. i have a variable which store the path to an image stored in file on the server which is what i am trying … | |
Sir, I am facing a problem with a Malayalam (IN) font developed here. Apart from the characters defined under Unicode for Malayalam, additional characters are added after U-FFFF. While using makefontuni.php of TCPDF-php5 it is not accepting the new values. A portion of the .ufm file is show here. From … | |
i am having problem in inserting data into my database,because says to me that query is not executed. the codes are shown below [code=php]<?php //include("connection.php"); //print_r($_POST); $firstname = $_POST['txtfirstname']; $lastname = $_POST['txtlastname']; $email = $_POST['txtaddress']; $date = $_POST['txtdate']; $user="killer"; $host="localhost"; $password="killer08"; $database="register"; //creating connection $Con = mysql_connect($host,$user,$password) or die("couldn't connect … | |
Can anyone explain the concept and guides and show some codes as how one does use only signup.php only for getting different information only by passing at the example: first page: [COLOR="Green"]signup.php?fer=1[/COLOR] Example: Username: Password: [Button:Save AND Next] next page sequence: [COLOR="Green"]signup.php?fer=2[/COLOR] Example: Please Input Your Personal Information: Address: Zipcode: … | |
[CODE]<html> <head> </head> <body> <?php $days_array = array(""); for($_GET['days'] as $val2) { $days_array[] = $val2; echo $days_array[0]; } ?> <form name="fors" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>"> Enter text:<input type="text" name="days"> <input type="submit" name="submit" value="submit"> </form> </body> </html>[/CODE] get the text box value using array and display the value using array. | |
I wrote this script and I was wondering if their was an easier way. It's basically for dynamic links [CODE]<?php $currents = $_GET['page']; function paginator($current , $link, $getpre, $firstimg , $lastimg, $endimg, $startimg, $totalitems, $maxperpage){ // $current is the current page should be dynamic // $link is the url , … | |
can anyone tell me why this code does not work? it's suppsed to give back a name from the database but it always returns blank. [code] <?php //connect to database $mysql = mysql_connect("localhost", "root", "") or die ("couldn't connect to server"); $mysql .= mysql_select_db("addressbook", $mysql) or die (mysql_error()); if (!$_POST) … | |
Hi all, I have just upgrade from php 4 to 5 and now I get a hole lot of weird text on my site. I have try to disable all errors and warnings, but I cant get it to dissapear. hope somebody can help me. [url]http://demo.topnordic.com[/url] [url]http://demo.topnordic.com/info.php[/url] Thanks | |
Hi, I'll explain my problem so you could picture it clearly. I do a complex query to fetch some information from the database and the problem is that the query takes some time. Fortunately, the result of the query doesn't change often, so I thought of a solution to store … | |
I'm trying to update multple queries but the update is not working. here is the code.... [code] if (isset($_POST['btnSub'])) { // Preset counter $p and switch $sw to 0 $p=$sw=0; // Create UPDATE queries foreach($_POST["entry"] as $data) { $sql[$p]="UPDATE major SET "; foreach($data as $key => $value) { // Save … | |
I am new to php and am getting the following error; Parse error: syntax error, unexpected '+', expecting T_VARIABLE or '$' in… on line 14. Here is the code; [code=php]<?php /* Subject and Email Variables */ $emailSubject = 'Monthly attendance report'; $webMaster = 'phil@coxwebink.biz'; /* Gathering Data Variables */ $ChurchField … |
The End.