39,316 Topics

Member Avatar for
Member Avatar for Th3nutz

I have a database with some tables from a restaurant and users can see if they are [I]free[/I] of [I]reserved[/I]. If [I]free[/I] they cand book that table. Now, my question is this: What can i do so that after (let's say 1 day (or any amount of time) after the …

Member Avatar for xylude
0
104
Member Avatar for artvor

Hello, So here is the story: I'm trying to select from two diferend tables ( bank_wire and visa) [CODE]CREATE TABLE IF NOT EXISTS `bank_wire` ( `id` smallint(6) NOT NULL AUTO_INCREMENT, `method_name` char(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Bank wire', `checked` smallint(1) unsigned NOT NULL DEFAULT '1', `commision` char(255) COLLATE utf8_unicode_ci …

Member Avatar for artvor
0
117
Member Avatar for idane

I have a site that im trying to put together and need some help with a checkbox. I have a form where the user enters data and when the user is finished they click on the submit btn witch populates the database. I want to enter a check box into …

Member Avatar for idane
0
102
Member Avatar for freiheit

Hello , Im struggling lately to insert a variable to a database table. The total columns of the table are 52 :confused: Here is the insert into database script : [CODE]<?php require_once('../Connections/my_connection.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < …

Member Avatar for freiheit
0
100
Member Avatar for JOUATT

Just a quick question. I want to post what is in the database but if the field is empty then i want it to say "No Date" else post the date in the table. At the moment my code only shows the "No Date" even when I know there is …

Member Avatar for EvolutionFallen
0
95
Member Avatar for ilyas_varol

Hi everyone can anybody give me detail information about mission of $_post and $_get and differences between these functions? Also can you give me information about forms and user inputs in php code? Thank you

Member Avatar for test2009test
0
153
Member Avatar for LRNPHP

Hi Everyone. I have MySQL db with images in(MEDIUMBLOB); I would to display the images in a gallery fashion with a MySQL select command. Any help would be appreciated. Regards

Member Avatar for vibhaJ
0
103
Member Avatar for phplover

Hi, Was just wondering how do you developers check for vulnerabilities in your scripts. Apart from doing some manual testing, do you use any tools to check for vulnerabilities in your scripts like forms etc? I am trying to look for some software that i can install on computer or …

Member Avatar for khr2003
0
97
Member Avatar for cristi08

It sais Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given on line74 and I tried a lot of things. here is code [$query="SELECT * FROM specificati,ofertant,suprafete,preturi,manopera WHERE ofertant.id_ofertant=preturi.id_ofertant AND preturi.id_manopera='Montaj parchet' AND preturi.id_manopera=manopera.id_manopera AND specificati.id_camera=suprafete.id_camera "; if (isset($query) && !empty($query)) { echo"<!--" . $query . "-->"; $result=mysql_query($query) or …

Member Avatar for rajarajan2017
0
526
Member Avatar for raju_boini525

hi all, i am new to wordpress , i am using [URL="http://www.deliciousdays.com/cforms-plugin/#download"]cforms II[/URL] plugin in my site. i am getting following error. [CODE]It seems that your ROOT directory for Wordpress is /green. cforms tried to auto-adjust its settings accordingly, however if you still encounter issues with Ajax (form submission & …

0
73
Member Avatar for ilyas_varol

Hi everyone, can you help me how to add update form in this code? [CODE]<html> <head> <title>Eastern Mediterranean University-Student's ID</title> </head> <body> <h3>Edit Student</h3> <?php $num=$_POST['num']; @ $db = new mysqli('localhost', 'root', 'ilyas1987', 'dau'); if (mysqli_connect_errno()) { echo 'Error: Could not connect to database. Please try again.'; exit; } $query …

Member Avatar for ilyas_varol
0
97
Member Avatar for jesus123

Hi, Once I fill contact form details and click submit button,It will redirect to next page on that page menubar the backspace button should be disable. I need javascript for this process....................

Member Avatar for rajarajan2017
0
70
Member Avatar for theighost

Hi, Has anybody use phishtank.com's api? the documentation si pretty poor in their site and they don't reply to emails. The api should help me send a url to phishtank so that they verify if it's spam or not (according to their database) and then return an XML response, and …

Member Avatar for theighost
0
3K
Member Avatar for marrithl2

I am trying to print the results of this code: [code=php]$cmpResult = array_intersect($productList2, $totalProductList); print_r("cmpResult:"); ?><br /><?php print_r($cmpResult); ?><br /><?php[/code] but the output is "Array ( )". How do I get it to output the values of the intersect?

Member Avatar for rajarajan2017
0
81
Member Avatar for swi2
Member Avatar for canterorist
0
202
Member Avatar for hramos

Hi, I am php noob and I have question about the singleton patter in php. I am not sure how the server handles the different users. If I create a singleton class, is that "single" instance shared among all the different users connecting to the server? are there any situations …

Member Avatar for griswolf
0
91
Member Avatar for rahul95
Member Avatar for gaurang4
0
129
Member Avatar for Geertc

Hello everybody, I have a problem with my mysql-server, at least, I think... This is the problem : I use aptana as my editor, in which I have installed QuantumDB as plugin. This allows me to quickly update or delete or insert data in my MySQL-database without having to leave …

Member Avatar for rch1231
0
352
Member Avatar for LRNPHP

Hi There Everyone. Could anyone assist me in the correct method of displaying images from my mysql db. I want to display multiple images on my page. This is the code I have. I got this from a post from DaniWeb. Hope I did the code tags correctly. [code=php] <?php …

Member Avatar for deleted1234
0
155
Member Avatar for paulsimpson

Hi Guys, My first post here although I have been reading the forums here for quite a while now. i was wondering if anyone can help me with this problem I am having. I am trying to use preg_replace to replace text with contact information in the database when sending …

0
51
Member Avatar for Dalelandry

Hello, I am new to php code (month or so) and mysql, I am pretty much teaching myself, I am good with HTML, CSS, JS, etc... I am trying to create a DB for a client that is fairly simple; Add members (got that done); Verify member and post data …

Member Avatar for diafol
0
103
Member Avatar for scrupply

I am having a problem spitting out text saved into a MySQL database and displaying it in an HTML form input field. The text will spit out fine unless there is a single or double quote, then the text is spit out until the quote. The text is all in …

Member Avatar for Fbody
0
150
Member Avatar for omesa

Hello, Salaams from Nairobi-Kenya. I have two problems with some scripts I downloaded a while ago. In script one, the scripts installed OK, but I can't login. If I enter the login name and password, nothing happens, just stays there, I have run the query on phpmyadmin and it returns …

Member Avatar for johnmahugu
0
91
Member Avatar for keval_hack

hi i want to develope a community site plz some one give suggestion which cms system i have to use. -keval

Member Avatar for diafol
0
113
Member Avatar for jaweth_r

Hi... I am new to this community... I am new to PHP... I was doing some basic websites with HTML,CSS,Javascript. I have to do a course registration web form for my department. I need help from you guys.... My question : I host the website from my Univesity web server. …

Member Avatar for crivion
0
78
Member Avatar for ilyas_varol

[CODE]<html> <head> <title>Eastern Mediterranean University-Student's ID</title> </head> <body> <h3>Edit Student</h3> <?php include("sonuc.php"); if(!isset($_POST['edit'])) { $num = $_GET['num']; $sql = "select * from students where num='$num'"; $result = mysql_query($sql) or die('\"'.$sql.'\" Query failed:'.mysql_error()); $row = mysql_fetch_array($result, MYSQL_BOTH); $id = $row['id']; $name = $row['name']; $surname = $row['surname']; $department = $row['department']; $cpa = …

Member Avatar for ilyas_varol
0
91
Member Avatar for mangel.murti

hi all, onclick a link i am exporting all details to excel. it's working well. but when i uploaded this file to my domain and run it,it is fetching data but not all data, columns are exporing to excel but only first 3 value are exporting to excel. any idea …

Member Avatar for mangel.murti
0
114
Member Avatar for faizabest

this is 'pemaju_semakan2.php' coding <?php include("db.php"); ?> <?php $IDSykt=$_POST['IDSykt']; $query = "SELECT * FROM pemaju WHERE PJ_SYKT_NO='$IDSykt'"; $result=mysql_query($query); while($row = mysql_fetch_array($result)) { $IDSykt=$row['PJ_SYKT_NO']; $NamaSykt=$row['PJ_SYKT_NAMA']; } this is 'db.php' coding <?php $hostname_connection = "localhost"; $database_connection = "zaza"; $username_connection = "root"; $password_connection = ""; $connection = mysql_pconnect($hostname_connection, $username_connection, $password_connection) or trigger_error(mysql_error(),E_USER_ERROR); ?> …

Member Avatar for pritaeas
0
181
Member Avatar for goodnohello

Here is the error I am getting: Unknown column 'Lo' in 'field list' Here is my code. Any suggestions to get rid of this error: global $conn,$dal; $customerID = mysql_insert_id(); $strSQLInsert = "insert into Orders (CustomerID, LastName) values (".$customerID.", ".$values["LastName"].")"; db_exec($strSQLInsert,$conn); $rs = $dal->Orders->Query("CustomerID=".$customerID." and LastName=".$values["LastName"],""); $data = db_fetch_array($rs); $idvalue …

Member Avatar for rajarajan2017
0
107
Member Avatar for iWalletMobile

I am trying to write a php code that will determine if a user has viewed the Facebook app before, and if they havent to show a "welcome page" instead of the normal "index" page. Is there a way to read the sql table and forward them to a "welcome …

Member Avatar for crivion
0
98

The End.