39,320 Topics

Member Avatar for
Member Avatar for filipgothic

I have error with this line while($row = mysql_fetch_array($pregled)) in line 42 here is part of code that has problem, can anyone check this out? I need to fix this as soon as possible thanks in advance <p align="center"><font color="#0000FF">Pregled grupa</font></p> <p align="center">Grupa kojoj koncert pripada: <select name="grupa_select2" id="grupa_select2"> <?php …

Member Avatar for filipgothic
0
226
Member Avatar for aseel_1

Suppose I have a tow SQL tables: Fathers id | name ------------- 1 | Clinton 2 | Gates 3 | Bush 4 | Clinton Sons id | fatherid | name --------------------- 1 | 1 | bill 2 | 1 | suzy 3 | 2 | mera 4 | 2 | …

Member Avatar for filipgothic
0
209
Member Avatar for berserk

I am unable to get my text file data.txt to read correctly into my database. This is what my text file looks like 9889483782,6068378394,6069437364... and so on for like 50 numbers I have to get each of the comma seperated values to show up in the database, id like them …

Member Avatar for redalert19
0
512
Member Avatar for AdventDeo

Okay I hope my title is not confusing. I have two checkboxes names Delete[] and Update[] followed by a textbox named Name[]. When I tick checkbox Delete[] and click Submit, I ran a query to delete the data based on that Checkbox's value (which I have set to be the …

Member Avatar for laljaseh
-1
2K
Member Avatar for awahqn

Hi guys, i dont know if this is the right place for me to post this question but I have a wordpress plugin thats supposed to sundicate with my other rss feeds and bring them to my new website. I own a bunch of websites and i am using their …

Member Avatar for jKidz
0
284
Member Avatar for aseel_1

Salam all :) anyone can help me to understand this query in venn diagram SELECT e.id, e.name FROM emp e INNER JOIN deptid D_X ON e.empid = d_x.empid AND deptid = 'X' LEFT JOIN deptid D_Y ON e.empid = d_Y.empid AND deptid = 'Y' WHERE d_Y.empid IS NULL

Member Avatar for diafol
0
80
Member Avatar for garyjohnson

I have an account with Host Gator that allows me to create my own email address's. I created my own email address, lets say its called "myemail@mydomain.com". Now I have a PHP script that automatically send out emails to users but when the emails are sent they are sent by …

Member Avatar for jKidz
0
321
Member Avatar for Bile

->Hi,I hope all is well. Here is what I have difficulties with, I am NOT good in Java Scripts and I wanted to have a Slide show Image on My Page and lucky was I to find these fancy slide shows [here](http://www.dynamicdrive.com/dynamicindex14/shockwave/index.htm). I downloaded necessary associated files and the whole …

Member Avatar for Bile
0
878
Member Avatar for jKidz

Hi All, I have developed php login system. If user successfully logged in system will create a session call, `$_SESSION['username'];` Now I want to redirect user, if not logged in when try to view specific page. Please help me to write a code. I already wrote a code, but it …

Member Avatar for tapananand
0
241
Member Avatar for joachimanderson

Hi there, I just can't figure this out and I hope someone may be kind enough to help me. I am trying to paginate search results from a simple form. The script I am using works fine for the first page of results but resorts to displaying all the rows …

Member Avatar for mark.giles.14
0
207
Member Avatar for Ryan_11

I have three tables i want to search for customer data depending on the equipment type. $test = "SELECT custid, equipment FROM customer WHERE custid='$id'"; $data = @mysqli_query ($dbcon, $test); $equip = mysqli_fetch_array($data, MYSQLI_ASSOC); if($equip['equipment'] = "cellphone" ){ // Make the query: $q = "SELECT custid, cdate, custName, customer.equipment, customer.manufacturer, …

Member Avatar for Topnews
0
285
Member Avatar for davy_yg

Hello, Can anyone help me find the logic behind this program? input_berita_static.php <?php include('../includes/koneksi.php'); $post_id = isset($_POST['post_id']) ? $_POST['post_id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $news = isset($_POST['news']) ? $_POST['news'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $page …

Member Avatar for Topnews
0
390
Member Avatar for aseel_1

Hi all , i have 2 tables first one called emp have 2 columns id and name second one called dep have id and empid and nameOfDep if i want to list all emp that have X dep (But they don't have) Y dep how i can make it ? …

Member Avatar for aseel_1
0
173
Member Avatar for mark.giles.14

Having trouble with header redirection passing variables from the url. <? ob_start(); ?> <?php require_once ("Includes/config.php"); require_once ("Includes/connectDB.php"); include("Includes/header.php"); confirm_is_admin(); $lid = $_GET['lid']; $yr = $_GET['yr']; $gid = $_GET['gid']; $pid = $_GET['pid']; $pn = $_GET['pn']; if (is_admin()) { $aid = $_GET['aid']; $query = "DELETE FROM articles WHERE article_id = ?"; …

Member Avatar for mark.giles.14
0
200
Member Avatar for aseel_1

Hi all why this code doesn't work correctly but php validate without js work correctly and js without php validate work correctly ?! form.php <html> <head> <title>Registration Form</title> <script language="JavaScript" type="text/javascript"> Function validate () { var str=true; document.getElementById("name").innerHTML=""; document.getElementById("username").innerHTML=""; document.getElementById("pass1").innerHTML=""; document.getElementById("pass2").innerHTML=""; document.getElementById("email1").innerHTML=""; document.getElementById("web").innerHTML=""; if(document.frm.nameTxt.value=='') { document.getElementById("name").innerHTML="Please Enter your name"; str=false; …

Member Avatar for aseel_1
0
312
Member Avatar for filipgothic

I have this error upon loading page Parse error: syntax error, unexpected T_VARIABLE in /home/a9752689/public_html/zadatak2/user.php on line 165 can you help me with it? I will post part code, if you need whole tell me 165 line is 28 here <p align="center"><font color="#0000FF">Pregled grupa</font></p> <p align="center">Grupa kojoj koncert pripada: <form …

Member Avatar for filipgothic
0
3K
Member Avatar for filipgothic

How can I do this, not to show only min and max number, but all numbers like 23,45,65,78,34,21,56 I need command to sort this out from min to max and display it, then get avarage number and display it too Thanks in advance

Member Avatar for filipgothic
0
186
Member Avatar for rjusman90

if(isset($_GET['Id'])){ $Id=$_GET['Id']; $query = mysql_query("SELECT * FROM page WHERE ID='$Id'"); $row = mysql_fetch_array($query); $PageId=$row['PageId']; $MenuName=$row['MenuName']; $ParentMenuId=$row['ParentMenuId']; $LinkWidth=$row['LinkWidth']; $OtherUrl=$row['OtherUrl']; $Status1=$row['Status']; $OnMainMenu=$row['OnMainMenu']; $FooterMenu=$row['FooterMenu']; } ?> <form style="width:100%" action="" method="post" id="form1"> <table class="viewjob" align="center" > <tr class="tableheader"> <td align="center" colspan="4"> Update </td> </tr> <tr class="tablerow"> <td>Page Id</td> <td><select name='PageId' class="select"> <option value='0' >select …

Member Avatar for pzuurveen
0
216
Member Avatar for rjusman90

$query1= mysql_query("select PageId FROM page"); $result = mysql_query("SELECT * FROM page"); echo "<td><a href='http://localhost:1234/usman/page_update_insert.php'> <img src='IMG/create.png'>Add New Record</a> </td>"; echo "<table border='0'> <tr class='tableheader'> <th>PageName</th> <th>MenuName</th> <th>ParentMenuId</th> <th>LinkWidth</th> <th>OtherUrl</th> <th>Status</th> <th>CreatedDate</th> <th>OnMainMenu</th> <th>FooterMenu</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr class='tablerow'>"; echo "<td>" . $row['PageId'] . "</td>"; echo "<td>" . …

Member Avatar for rjusman90
0
318
Member Avatar for Angellore_1

Good Day. Call me Angel. I'm havng trouble with **Live Edit Table**. Appears not to be working for me. I have this system. A small rental system actually, that would save the details for the rented properties. Here's the actual table: <img src="https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-xpa1/t1.0-9/10314749_882248248457445_2787632760191268129_n.jpg"> (other columns are trimmed) The admin has …

Member Avatar for Angellore_1
0
210
Member Avatar for amit.chaudhari.71

dear friends m using strtotime () function to compare two dates , but it is not working for the date greater then '19-jan-2038'.my os is win 7 32 bit and php 5.2 and apache 2.2.plz if any body having any solution , kindly share it

Member Avatar for amit.chaudhari.71
0
390
Member Avatar for network18

Hello, I am installed php 5.3.28 with apache 2.2 and mysql 5.5.38 on windows 64 bit machine, despite configuring php correctly with apache and also enabled the extensions, its not able to recognise the mysql extension loaded. The connection attempt through adodb throws the error "call to undefined function mysql_connect() …

Member Avatar for network18
0
662
Member Avatar for emmaharward789

difference between the php and android and both which one best choice for career..

Member Avatar for shophiarajan47
-3
126
Member Avatar for minghags

I need to create 3-4 buttons that are colored when pressed, but when one button is pressed it turns for example red other ones become grey. But this must happen on the same site like selection for example. I didnt maanage to do anything till now, if someone could just …

Member Avatar for Benjamin_11
0
220
Member Avatar for filipgothic

I need command that will display error if var is not number I tried few examples but nothing seems to work, here is what I tried, one worked but it messed up my previous code, if its 0 display other msg, now when its 0 it displays like its string …

Member Avatar for filipgothic
0
514
Member Avatar for hanspeare

Hello everyone, I want to download an image which was uploaded from the database Here is my HTML codes for the download link <a href='download.php?id=<?php echo $data["LRCard"]; ?>'>Download</a> and here is my download.php code <?php include 'Connect.php'; mysql_select_db("student"); $id = $_GET['id']; $student_id = htmlentities($_REQUEST['id'], ENT_QUOTES); $result = mysql_query("SELECT LRCard FROM …

Member Avatar for hanspeare
0
338
Member Avatar for SimonIoa

hello i have a problem understanding how a function works for example i wrote this php code <?php $face = $Wall->Profilepic($profile_pic_path); $query = mysql_query("SELECT * FROM `messages` WHERE type ='A' AND uid_fk = '$uid'"); while($row=mysql_fetch_array($query)) { echo '<a href="'.$base_url.'roves/'.$row['msg_id'].'" ><img src="'.$face.'" class="small_face" original-title="'.$row['message'].'" ></a>'; } ?> and i named a …

Member Avatar for Borzoi
0
401
Member Avatar for ravi142

Hello everyone. Here just page refresh Counter++. $this->db->select('Counter_field'); $this->db->where('id', $id); $cnt = $this->db->get('Job_Description'); $new_cnt = $cnt+1; $data = array('Counter_field'=>$new_cnt); $this->db->where('id',$id); $query = $this->db->update('Job_Description',$data); What is wrong with above Query.. Every time i want increment and go to update results store in DB.

Member Avatar for cereal
0
132
Member Avatar for davy_yg

Hello, How to create paging for tables? I am having this database tables. I am afraid that the database will be too long so that I would like to limit the row number of the tables up to 5 rows for example and it has too go to the next …

Member Avatar for rpv_sen
0
116
Member Avatar for jacksantho

Hi, How to create a dynamic drop down list using php. My drop down list should be: Example: if manager logins : the manager should see only the manager list of a company. if employee logins: the employee should see only the employee list of a company. Please help me …

Member Avatar for tapananand
0
787

The End.