39,323 Topics

Member Avatar for
Member Avatar for phphp

Sir, I have this header.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" href="css/css3menu1.css" type="text/css" /> <style type="text/css"> #header1 { width: 100%; color: #FFC; background-image: url(images/header.gif); font-size: 28px; font-weight: bold; font-style: oblique; text-align: left; padding: 5px; position: fixed; } #header1 img { vertical-align: middle; } …

Member Avatar for gentlemedia
0
350
Member Avatar for Stefce

Hello i started learning php laravel framework today and as far as i learned i can say its great framework. My problem is declaring the links to other files. Here is the route for file `register.blade.php` web.php Route::group(['prefix' => 'auth'], function() { Route::get('register', [ 'as' => 'get_register', 'uses' => 'Auth\AuthController@getRegister' …

0
106
Member Avatar for davy_yg

What is the difference between main/index.php and main/ ? Can anyone help me figure that out? I have edit http://www.masterlink.co.id/index.php file yet when I checked it in http://www.masterlink.co.id the file does not load index.php. I thought it suppose to be automatic like http://www.masterlink.co.id/index.php = http://www.masterlink.co.id Can anyone help me figure …

Member Avatar for cereal
0
371
Member Avatar for blueguy777

How to store the following curl_exec output into mysql table? sent,success,114661698,709081462,+919900123456 sent,success,134707665,937687314,+917795987654 Eg: var1='sent' var2='success' var3='114661698' var4='709081462' var5='+919900123456' --------------------------------------------------- var1='sent' var2='success' var3='134707665' var4='937687314' var5='+917795987654' Thanks in advance

Member Avatar for cereal
0
2K
Member Avatar for Nunix

Hey guys, I am doing a friend list and it's not working very well. Well I tried to show all the user's friends but it's not working, it only shows one instead of all. In MySQL friends_request I have something like this: username1 -> username2 username1 -> username3 username2 -> …

Member Avatar for diafol
0
301
Member Avatar for Stefce

I want to make pagination for videos since i have much videos and i cannot load all in the same page, i have a function which displays all videos in the directory and than i limited it only to show first 6. How do i make the pagination so when …

Member Avatar for diafol
0
270
Member Avatar for phphp

Sir I have these codes <?php $stockdate=""; $queryx = "SELECT max(data.date)as date from ( select max(date)as date from crprp union all select max(date)as date from pouring union all select max(date)as date from product ) as data"; $resultx = sqlsrv_query($con,$queryx)or die ("Error". sqlsrv_errors($con)) ; while ($rowx = sqlsrv_fetch_array ($resultx)){ $stockdate=($rowx['date']); } …

Member Avatar for cereal
0
249
Member Avatar for reminem

Hello everybody, In an earlier post I created an bingocard with random numbers. The card should have 6 rows and 6 columns. I get 6 rows and 10 columns. I am trying to adjust the columns, but with my script now it prints on each row the first number till …

Member Avatar for reminem
0
203
Member Avatar for EMP01616

help please.. guys this is just the only problem in my program i cant print my data from sql..i need my thesis to finish soon..help please.. heres my code <?php require('fpdf.php'); $fullname = ""; echo $contractno = $_REQUEST['contractno']; echo $sname = $_REQUEST['sname']; echo $fname = $_REQUEST['fname']; echo $mi = $_REQUEST['mi']; …

Member Avatar for cereal
2
7K
Member Avatar for Joshua_18

Is there a way where there is a number on the screen, for example 100, and a form where you can insert a number in the form and that number will be deducted from the one displayed. So if i inserted 5, the number will become 100 and can there …

Member Avatar for brothman01
0
150
Member Avatar for Matthew_16

**Note: this project is being restarted after one year of in-action, using the most relevant files I am able to locate. All final code will be adapted to MySQLi.** Versions of this code functioned properly to the best of my knowlege; now, with a new host I am having issues …

Member Avatar for diafol
0
367
Member Avatar for phphp

Sir I have these codes <html> <head> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery-ui.js"></script> <link rel="stylesheet" href="css/jquery-ui.css"> <script type="text/javascript"> $(function() { $( "#coding_language" ).autocomplete({ source: 'autocomplete.php' }); }); </script> </head> <body> <div id="wrapper"> <div class="ui-widget"> <p>Code <input type="text" id="PT"></p> <p>Party <input type="text" size="40" id="coding_language"></p> </div> </div> </body> </html> and autocomplete.php has …

Member Avatar for phphp
0
1K
Member Avatar for reminem

Hello Everybody, I am trying to create a bingocard with 6 rows and on each row 10 numbers. Row 1 from 10 to 19 (randomly), row 2 from 20 to 29 etc. The code I have till now, displays only one long row from 10 till 69 randomly as supposed. …

Member Avatar for reminem
0
2K
Member Avatar for janicemurby

hi im attempting to update a script and i have come across the following error PHP Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in so here was the orginal $sql = "select * from chat where (chat.to = '".mysqli_real_escape_string($_SESSION['usernamechat'])."' AND recd = 0) order by id ASC"; …

Member Avatar for diafol
0
9K
Member Avatar for visualmonk

Hi Daniweb Community, I'm having a small problem. I am unable to get the size of an uploaded file from the server to run a max size check. When I use the following command as specified in any example of file upload I can find on the web: if ($_FILES["r_recommend"]["size"] …

Member Avatar for cereal
0
219
Member Avatar for Julian_5

Fiirst of all thanks in advance for any help. I uploaded a test page so you can see the problem: http://senoranabogados.com.ar/test1.html And this is the php code i'm using: <?php require_once('phpmailer/PHPMailerAutoload.php'); $toemails = array(); $toemails[] = array( 'email' => 'Your email', // Your Email Address 'name' => 'Your Name' // …

0
165
Member Avatar for phphp

Sir, I have these PHP codes while($res = sqlsrv_fetch_array($result)) { echo "<tr>"; $sno=$sno+1; echo "<td align='center'>$sno</td>"; echo "<td align='center'>".($res['acc_code'])."</td>"; $partycode=($res['acc_code']); $query1 = "select code,desc1 from master where code='".$partycode."'"; $result1 = sqlsrv_query($con,$query1) or die ("Error". sqlsrv_errors($con)) ; while($res1 = sqlsrv_fetch_array($result1)) { echo "<td align='left' class='color1'>".($res1['desc1'])."</td>"; } echo "<td align='right'>".($res['dr_amount'] != 0 …

Member Avatar for phphp
0
699
Member Avatar for chrisschristou

hello i'm just training myself on web development so i wanted to create a drop down menu wich i have post before about it! so i get the html code and css and the javascrip code of the bootstrap header menu and i want to customize it for my website …

0
212
Member Avatar for mark_59

/* initialize the calendar -----------------------------------------------------------------*/ var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); /* selects the events to load in the calendar -----------------------------------------------------------------*/ $.ajax({ url: 'process.php', type: 'POST', data: 'type=fetch', async: false, success: function(response){ json_events = response; } }); $('#calendar').fullCalendar({ //events: …

0
180
Member Avatar for Stefce

Hello, how do i escape passing parameters to page where you need to give two parameters `ID and category`? my sql is like this `SELECT ID, Image, imageID, Category FROM gallery WHERE imageID={$imageID} AND Category='$category'` but i have a button which should show all pictures no matter what category they …

Member Avatar for jkon
0
238
Member Avatar for Mayank_6

when i upload image in form using cakephp at that time the image is insert but other data will not inserted...??

Member Avatar for Mayank_6
0
254
Member Avatar for amvx86
Member Avatar for Miguel_6

I'm trying to do use X-editable to do inline editing instead of having textboxes and such, I'm editing labels that I would like to send in a post method to update the values in the database. Is there anyway to send any kind of data within the <form> besides using …

0
148
Member Avatar for Nollyvenon

My SQL query is: UPDATE REGISTRUDENT set qual=1 WHERE studentolevelsubjects AS sls INNER JOIN courserequirements AS csreq ON sls.subject_id = csreq.subject_id WHERE sls.stud_id = '$stud_id' AND sls.grade_id>=csreq.min_grade AND sls.examno = '$examno' AND csreq.course_id = '$course_id' I'm having issue comparing two different table to get if a registrant qualified based on …

Member Avatar for Nollyvenon
0
120
Member Avatar for phphp

Sir I have following codes <form name="form1" action="<?php $_PHP_SELF;?>" method="post"> <label> Code </label> <input type="text" size="7" name="ppcode" id="ppcode" onblur="myCall()" value="<?php echo $acc_code1;?>"/> </form> //function mycall() function myCall() { var data = $("#ppcode").val(); var request = $.ajax({ url: "party_search.php", type: "Get", data:{"code":data}, dataType: "html" }); request.done(function(msg) { var msg = msg.split("##"); …

Member Avatar for pritaeas
0
232
Member Avatar for iso_1

Hello, if any body can help me , why in the code bello the results is always null or 0? because when i want to change the password it always shows me this message "The current password you entered is not correct!" <?php @session_start(); include("./pg_connect/pgdb.class.php"); $db = new PQDatabase(); // …

Member Avatar for iso_1
0
243
Member Avatar for ogo'

Hi, I'm trying to insert some values to database based on how many values are clicked but currently it only takes the last clicked field. I have tried hard coding with mysql_real_escape_string and the dreamweaver way. Both still give me the same last picked value instead of several values separated …

Member Avatar for diafol
0
271
Member Avatar for Aeonix

I've been Googling this one, and I've come across solutions, but they don't seem to work for me. The code is as follows: <?php $name1 = "Jack Random"; // true $name2 = "JackRandom"; // true $name3 = "Jack;Random"; // false $name4 = "JackRand;om"; // false // Accept only A-Z, a-z, …

Member Avatar for pritaeas
0
372
Member Avatar for phphp

Sir I have these codes $string = ' ab'; echo (strlen($string))."<br>"; // returns 4 $count = mb_strlen($string); echo $count."<br/>"; // returns 4 $length = count(str_split($string)); echo $length."<br/>";// returns 4 All above method return 4 But I need 2 because there are TWO white spaces in the beginning of $string So …

Member Avatar for AndrisP
0
82
Member Avatar for Mayank_6

i try to redirect one controller page to another controller page using cakePHP but it not working so please help me to solve this query....

Member Avatar for cereal
0
329

The End.