335 Posted Topics

Member Avatar for fireburner29

Can we see the code you are working on? or Are you asking for someone to work on this for you? If so, send me PM and I can give you my rates. I am willing to spend time to help you fix any issue that I can, but I …

Member Avatar for gabrielcastillo
0
66
Member Avatar for grakovski

Try this: $jstring = file_get_contents('http://steamcommunity.com/id/spekat/inventory/json/730/2'); $jobject = json_decode($jstring); echo '<pre>'; print_r($jobject->rgInventory); echo '</pre>'; foreach($jobject->rgInventory as $k => $v){ echo $k . ": " .$v->classid . "<br />"; }

Member Avatar for gabrielcastillo
0
483
Member Avatar for prash21m

I believe you are missing a caret(^) sign in your rule `RewriteRule ^products/([0-9]+)/?$ show_a_product.php?product_id=$1 `

Member Avatar for prash21m
0
557
Member Avatar for Ali_41

Make sure the db user has permission to connect to the db.. Also check your host string and password. Sometime webhosts only need 'localhost' or 127.0.0.1 for the host string in your mysql connection

Member Avatar for minitauros
0
149
Member Avatar for chrisschristou

Well, if you are creating static html page for your website, all you need to do is create a template.html file and copy this file foreach new page you want to add. If you want to have a dynamic site, you can create an admin panel for your site to …

Member Avatar for gabrielcastillo
0
172
Member Avatar for zebnoon1
Member Avatar for computerbear

I always thought with a software raid 5 you need to install the OS on one disk then use disk manager to set up the raid.

Member Avatar for Issabeaber
0
226
Member Avatar for yavindu

It would be better for you to use php sessions, but you can accomplish this task with cookies.

Member Avatar for diafol
0
291
Member Avatar for Dani

I like the cheesy demo on the google page. B) I have never heard of this API or service before.. Its sounds interesting. Give's me some ideas to make a wp plugin or something.

Member Avatar for Dani
0
255
Member Avatar for veedeoo

Yeah, read this the other day, and was supprised that the university was teaching students to code with CI.. To me that was a reasurrance that, CI is a solid framework and should be used on a higher level. I find CI to be my goto framework on small projects, …

Member Avatar for veedeoo
4
434
Member Avatar for Thobby

What are you asking for? Do you want to upload and rename files to a wordpress site? What does your code look like? Can we see your code so we can help you fix the problem.

Member Avatar for Thobby
0
102
Member Avatar for ronelo

> <?php > require_once 'connect.php'; > $idz=$_POST['criteria_id']; > $wh=mysql_query("select * from criteria"); > while($loop=mysql_fetch_array($wh)){ > $ca=$loop['criteria_id']; I see you are trying to get a post value, but I don't see a form in your code? Sidenote: The way you are writing your code will make it really hard to debug …

Member Avatar for gabrielcastillo
0
265
Member Avatar for best4earn

You can also check you PHP error logs. This would be a better way to find errors than display them on a live site.

Member Avatar for matrixdevuk
0
159
Member Avatar for engrjd91

Dump your post variable and see what you are getting from the form. If you are getting the correct params, then you know its not the form. If you are getting incorrect params then the problem is with the form and post. By the looks of your code, your sha1 …

Member Avatar for toxicandy
0
231
Member Avatar for davy_yg

If you want to load your model and your helpers on the index, they need to be included within the index functions. Else, you can load them in the autoload.php or in the class construct. public function index() { //You can also autoload these in the autoload.php file in the …

Member Avatar for davy_yg
0
356
Member Avatar for mattsheets

So are you building this framework and run into a problem so your are looking for help or are you asking if anyone knows of a framework?

Member Avatar for Troy III
0
130
Member Avatar for Clarence Weldy

One thing I ask about a pre made wordpress themes is... How hard is this theme to customize.. I have had so many problems with customizing themes in the past, Im really picky now. For instance, when I need to add a new custom template or adjust the layout of …

Member Avatar for Methew
0
242
Member Avatar for destination0014

Like Adrian said.. We need to see code. How are we suppose to know what you are talking about or having problems with. Read the Posting rules. As for your question, try using a loop. Example: $rows = array($row1, $row2, $row3, $row4); foreach($rows as $row){ //insert new row to database. …

Member Avatar for gabrielcastillo
0
129
Member Avatar for dternity

If you want to build games I would recommend Unity. If you want to learn another programing language, I would recommend PHP because its easy to spot errors, it has some easy syntax to remember.. and you can create web based apps with html/css/javascript. The next lang I would recommend …

Member Avatar for vegaseat
0
295
Member Avatar for RonKevinT.Manuela

What about something linke this: $dir = scandir(dirname(realpath(__FILE__))); $pattern = "^\/(.+\/)*(.+)\/^"; foreach($dir as $file){ $file = preg_replace($pattern, '', $file); if( $file != '.' && $file != '..' ){ echo $file . '<br />'; } } This grabs all the files and folders in the current directory scripts out the file …

Member Avatar for diafol
0
279
Member Avatar for afaaro

Something like this. $connection = mysqli_connect("localhost", "my_user", "my_password", "world"); $sql = "UPDATE tablename SET 'table_record' = 'new_value'"; for($i=0, $i<4999;$i++) { mysqi_query($connection, $sql); }

Member Avatar for afaaro
0
176
Member Avatar for gabrielcastillo

Hello everyone from ZendCon 2014 ![9e84afce80dcd7667c2af44bbc522dc3](/attachments/large/3/9e84afce80dcd7667c2af44bbc522dc3.jpg "9e84afce80dcd7667c2af44bbc522dc3") ![8ae041cfc14bbbb44316d26d7226dea4](/attachments/large/3/8ae041cfc14bbbb44316d26d7226dea4.jpg "8ae041cfc14bbbb44316d26d7226dea4")

1
82
Member Avatar for razar63

You can accomplish this with ajax. Kind of like this: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"> <script type="text/javascript"> jQuery(document).ready(function($){ $('#button').on('click', function(e){ e.preventDefault(); $.ajax({ url: 'path/to/script.php', type: 'POST', data: {user_id: $_SESSION['user_id'], liked: true, url_slug: $(location).attr('href')}, cache: false, success: function(data){ alert(data); } }); }); }); </script>

Member Avatar for razar63
0
4K
Member Avatar for RodneyzPc

Change your connection to this: new mysqli($hostname, $username, $password, $dbname); Change your getenv to this: $query = $_SERVER['QUERY_STRING']; Change your update string to this: $update = "UPDATE shifts SET name1 = '$name1', name2 = '$name2', name3 = '$name3', name4 = '$name4', shift = '$shift' WHERE name1 = '$name1'";

Member Avatar for RodneyzPc
0
443
Member Avatar for HelenLF

Here is a good gallerys and sliders [Revolution](http://themepunch.com/revolution/) [NextGen](http://www.nextgen-gallery.com/basic-thumbnail-gallery/)

Member Avatar for pritaeas
0
185
Member Avatar for numus175

You can use [substr](http://php.net/manual/en/function.substr.php) $string = 'I want to buy a new car'; echo substr($string, 0, 9); The first param is the string, the second param is where to start and the third param is the length. This would be a more dynamic approache. You can set all params to …

Member Avatar for diafol
0
715
Member Avatar for HuePig

What type of timestamp(timestamp, datetime, current_time) is your column excepting Try using this" `date('Y-m-d H:i:s', strtotime($date2));`

Member Avatar for diafol
0
272
Member Avatar for missy_mi

This is wrong. `echo "1 record added` is breaking the code. if (!mysqli_query($con,$sql)) { die('Error: ' . mysqli_error($con)); } echo "1 record added"; } else { echo "Please fill in the form to register.Not Succesful<br>"; } Should be if( !mysqli_query($con, $sql) ){ die('Error: ' . mysqli_error($con)); }else{ echo "1 record …

Member Avatar for missy_mi
0
319
Member Avatar for sushant_1
Member Avatar for sushant_1
0
254
Member Avatar for patk570

This would something to handle your problem with jquery. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"> <script type="text/javascript"> jQuery(document).ready(function($){ $('#button').on('click', function(e){ e.preventDefault(); $.ajax({ url: 'path/to/script.php', type: 'POST', data: {user_id: $_SESSION['user_id'], liked: true, url_slug: $(location).attr('href')}, cache: false, success: function(data){ alert(data); } }); }); }); </script>

Member Avatar for matrixdevuk
0
3K
Member Avatar for gabrielcastillo

Hello everyone, just wanted to say hi from Wordcamp! ![bb34fc0164597d0abdf99d290b4739ae](/attachments/large/3/bb34fc0164597d0abdf99d290b4739ae.jpg "bb34fc0164597d0abdf99d290b4739ae")

Member Avatar for gabrielcastillo
0
86
Member Avatar for razar63
Member Avatar for shayan_doust

User firefox with firebug->console to see if any errors are shown. In your mysqli connection, try changing to localhost or 127.0.0.1

Member Avatar for matrixdevuk
0
2K
Member Avatar for humorousone

Its better to buy a product that has been already established, this way you can maximize on the the profits. I mean if MC has 1,000,000 users and your buy for 2.5billion.. You can create a mulitple upgrades for $20, and if everyone upgraded you will get 20million. Do that …

Member Avatar for DeanMSands3
0
371
Member Avatar for come_again

make sure session_start() function is the first line of code.. If this is true, than place ob_start() after session_start();

Member Avatar for come_again
0
145
Member Avatar for joshua_8

What do you mean string array? Do you mean: `json_decode([Apple, Orange]);`

Member Avatar for gabrielcastillo
0
97
Member Avatar for terryds
Member Avatar for gabrielcastillo
0
215
Member Avatar for Murphyv10

you should put your database functions or procedure in a model. Use the controller to handle the input and output. Example for your select dropdown. lecture_model.php <?php if( !defined('BASEPATH') ){exit("No direct script access allowed!");} class Lecture_Model extends CI_Controller { public function get_coarse_information() { $this->db->select('id, email'); $this->db->from('course_lecturers'); $query = $this->db->get(); if($query->num_rows() …

Member Avatar for Murphyv10
0
176
Member Avatar for come_again

Try this to see if you get the error $dbh = new PDO('mysql:host=localhost;dbname=qbank', 'registration', 'register'); if you get error, post error.. Godaddy used to have url's for the host string.. not sure if they are doing that anymore.. which means you would have to put : `database.host.securedserver.com` Something like this …

Member Avatar for come_again
0
668
Member Avatar for awahqn

you can try a couple of things like `ini_set('max_execution_time', '3000');` or in your htaccess file: <IfModule mod_php5.c> php_value max_execution_time 3000 </IfModule>

Member Avatar for gabrielcastillo
0
4K
Member Avatar for sammry

What does their API allow for? Can you send a json string the the server? If so, you could complie you dataset into a json string and send in one transaction.

Member Avatar for Isaac_4
0
2K
Member Avatar for berserk

Do a var_dump on your $row and session to see what you get? If you are not getting anything in the row var than you have a problem with your sql, if your session is empty then you have a problem with ini_set or session.

Member Avatar for berserk
0
348
Member Avatar for nadiam

you can do this with jquery.ajax [Ajax Docs](http://api.jquery.com/jquery.ajax/) <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"> <script type="text/javascript"> jQuery(document).ready(function($){ $('#button').on('click', function(e){ e.preventDefault(); $.ajax({ url: 'path/to/script.php', type: 'POST', //Change the data below to match the data you want to send or //You can send a serialized form data: {user_id: $_SESSION['user_id'], liked: true, url_slug: $(location).attr('href')}, cache: false, success: …

Member Avatar for gabrielcastillo
0
1K
Member Avatar for nadiam

I would convert everything to PHP, in your code above I see nothing that would prevent from changing to .html.. All I see is javascript and html. Now, the above code is out dated in my opinion, but it will still work. One thing you can do is copy and …

Member Avatar for diafol
0
1K
Member Avatar for Hims15

Why not join your two tables if the primay index is the username for both. I haven't tested this code out but in theroy it should work. if( $substr=="AC" ) { $query = "SELECT user_tb.*, pass_tb.Password FROM reg_ac, username WHERE user_tb.UserName = pass_tb.UserName AND user_tb.UserName = '$usrnm' AND user_tb.SecurityQues = …

Member Avatar for gabrielcastillo
0
282
Member Avatar for arafath077

Can we see the rest of your code? I'm pretty sure you don't need the change function, or you can try the keyup function.

Member Avatar for arafath077
0
144
Member Avatar for Idhar
Member Avatar for phfilly

Here is a good tutorial, for an alternative solution. [Here](http://www.html5rocks.com/en/tutorials/dnd/basics/)

Member Avatar for phfilly
0
127
Member Avatar for patk570

Where is your connection string? For your loop try this: while($row = mysqli_fetch_array($qry)){ echo '<a href="' . $row['slug'] . '">' . $row['slug_name'] . '</a>'; }

Member Avatar for patk570
0
120
Member Avatar for John_78

The End.