Guys i read all the questions asked in site but there is no answer for me, please forgive me to ask new question. I need to fetch mysqli db. I did it but it has 18k rows and i'm using each row in a bot. It takes so long time and i took error for execution time. I need to do this in short time. Here is my solution for this problem but it didnt work any.
<?php
include "baglan2.php";
$q = mysqli_query($baglanti, "SELECT bolumlink FROM bolumler WHERE id=?");
$row = mysqli_fetch_assoc($q);
$r = $row['bolumlink'];
for($a=1; $a<=count($r); $a++){
for($b=1; $b<=count($r); $b+300) {
$statement = $baglanti->prepare($query);
$statement->bind_param("i", $id);
$statement->execute();
$statement->bind_result($bolumlink);
$statement->fetch();
$link_array($a) = array();
if ($query) {
while ($row = mysqli_fetch_assoc($query)) {
$link_array($a)[] = $row['bolumlink'];
}
}
}
$statement->close();
}
?>
this codes receipt is:
Fatal error: Can't use function return value in write context in C:\xampp\htdocs\xampp\dizipub\playerbaglan.php on line 15
i tried to delete ($a)
on link_array
s then it gives error:
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\xampp\dizipub\playerbaglan.php on line 5
Notice: Undefined variable: link_array1 in C:\xampp\htdocs\xampp\dizipub\playerlinkler.php on line 8
Warning: file_get_contents(): Filename cannot be empty in C:\xampp\htdocs\xampp\dizipub\playerlinkler.php on line 8
<html>
<p><font face=Arial color=Black size=2>
<?php
include "baglan.php";
include "playerbaglan.php";
$parcala = '@<iframe width="100%" height="300" src="(.*?)" frameborder="0" allowfullscreen></iframe></span></div><div id="2">@si';
$bot2ara = file_get_contents($link_array1);
preg_match_all($parcala,$bot2ara,$playerlar);
for($a=0; $a<count($playerlar[0]); $a++) {
foreach (array($playerlar[0][$a]) as $playerlar2);
$playerlar3 = explode('"', $playerlar2,-5);
echo "<pre/>"; print_r($playerlar3[5]);
}
}
?>
</font></p>
</html>
i'm trying to explode link_array
cause file_get_contents
cant work with 18k rows. I tried to share this 18k rows to 60 variables by using $a and for. but every method i tried is not working. I tried making 60 php for 60 variable also but it didnt work too and it is kind of a stupidity :)
Please help me guys :)