39,320 Topics

Member Avatar for
Member Avatar for CzechRock3

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 …

Member Avatar for amigura
0
108
Member Avatar for queenc

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

Member Avatar for amigura
0
2K
Member Avatar for abhay_pundir

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 …

0
137
Member Avatar for jviney

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?

Member Avatar for jviney
0
135
Member Avatar for Realgy

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 …

Member Avatar for Realgy
0
77
Member Avatar for CasTex

[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 …

Member Avatar for ShawnCplus
0
41
Member Avatar for CasTex

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 …

Member Avatar for CasTex
0
108
Member Avatar for didi00

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 …

Member Avatar for fanaticweb
0
123
Member Avatar for RockyY

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 …

Member Avatar for RockyY
0
87
Member Avatar for zainul.dss

how do i define dynamic array in php like in c or cpp if any body find this pls reply me soon regards zainul

Member Avatar for ShawnCplus
0
319
Member Avatar for desiguru

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 …

Member Avatar for desiguru
0
1K
Member Avatar for Doctoremote

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 …

Member Avatar for Doctoremote
0
139
Member Avatar for gpdrums

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 …

Member Avatar for gpdrums
0
185
Member Avatar for kumar_niten
Member Avatar for ultra vires
0
71
Member Avatar for aran87

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 …

Member Avatar for amigura
0
135
Member Avatar for rickya100

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") …

Member Avatar for rickya100
0
111
Member Avatar for dottomm

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' > …

Member Avatar for dottomm
0
75
Member Avatar for ash112

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 …

Member Avatar for sDJh
0
58
Member Avatar for camdes

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 …

Member Avatar for sDJh
0
62
Member Avatar for kevin wood

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 …

Member Avatar for kevin wood
0
8K
Member Avatar for berkwins

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 …

0
43
Member Avatar for muazuzanna

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 …

Member Avatar for amigura
0
63
Member Avatar for trient

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: …

Member Avatar for peter_budo
0
109
Member Avatar for lydia21

[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.

Member Avatar for peter_budo
0
109
Member Avatar for Dsiembab

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 , …

0
74
Member Avatar for cali_dotcom

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) …

Member Avatar for OriginalCopy
0
85
Member Avatar for pip86

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

Member Avatar for OriginalCopy
0
84
Member Avatar for chronoel

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 …

Member Avatar for OriginalCopy
0
80
Member Avatar for flforlife

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 …

Member Avatar for amigura
0
207
Member Avatar for rotsap

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 …

Member Avatar for mom_of_3
0
213

The End.