Search found 7 matches

by mash
Sun Oct 13, 2013 8:01 am
Forum: mySQL & php coding
Topic: mysqli prepared statements UPDATE throwing error message
Replies: 3
Views: 2833

Re: mysqli prepared statements UPDATE throwing error message

The problem is that there is actually missing one parameter. The array containing your bind params needs to have the first element set to the type of the variables in question. so: UPDATE customers set name=? where id=? requires an array of three fields for putting to bind_params a[0]='si';//for str...
by mash
Sat Oct 12, 2013 11:21 am
Forum: PHP & MySQL Security
Topic: do I need real_escape_string for parametrized queries ?
Replies: 1
Views: 3011

do I need real_escape_string for parametrized queries ?

Do I need real_escape_string for parametrized queries ? ... or even more? Well, I am maintaining a simple cms where i actually take care of user input - such as comments. The latter is stripped off from any harmful stuff (at least I hope so). But the administrators and moderators are able to publis...
by mash
Sat Oct 05, 2013 3:13 am
Forum: PHP coding => General
Topic: $arr[]=$data doesnt add the $data
Replies: 4
Views: 1930

Re: $arr[]=$data doesnt add the $data

yecho is just something like r_print (with more features) to debug contents.
sorry at the moment I can not post the full code at least not extract the essential parts to some working demo - due to lack of time... maybe tomorrow
by mash
Fri Oct 04, 2013 5:51 am
Forum: PHP coding => General
Topic: Recordset looping problem
Replies: 2
Views: 1695

Re: Recordset looping problem

You're not outputting anything that's why you don't see no text:

E.g. what is this supposed to do?
<?php $row_Recordset2['oire']; ?>

depending whats in the field 'oire' you should check your apache log files to see the error
by mash
Fri Oct 04, 2013 1:56 am
Forum: PHP coding => General
Topic: $arr[]=$data doesnt add the $data
Replies: 4
Views: 1930

Re: $arr[]=$data doesnt add the $data

you can do two things: 1). Initialize the array outside the while loop using $result = array() 2).Inside the while loop, please print what you storing..e.g. print_r($rows); 1.) I have initialized the array (just didn't have it in the example code). 2.) if I add e.g. the numbers from 1..10 the array...
by mash
Thu Oct 03, 2013 4:41 am
Forum: PHP coding => General
Topic: $arr[]=$data doesnt add the $data
Replies: 4
Views: 1930

$arr[]=$data doesnt add the $data

Hi, I am fetching rows from a table with a prepared statement and try to add the resulting rows into an array. Everything works fine - if I output the data of each fetch operation it shows the correct data. BUT I want to return the collected data in an array - like: $metaResults = $this->connlink->r...
by mash
Sat Jan 14, 2012 1:49 pm
Forum: PHP General
Topic: upload file does not work
Replies: 1
Views: 688

upload file does not work

Hi there, I am pretty new to php. But I did a lot with static pages, cold fusion and many other (non-script-) languages. So I am not a newbie at all. ------------PROBLEM I am realizing an upload via: <form action="./ylib/fileupload.php" method="post" enctype="multipart/form-data"> <label for="file">...